scinote-web/vendor/assets/javascripts/handsontable.full.min.js

15 lines
462 KiB
JavaScript
Raw Normal View History

2016-02-12 23:52:43 +08:00
window.Handsontable={version:"0.19.0",buildDate:"Fri Oct 02 2015 12:37:12 GMT+0200 (CEST)"},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(){var a;return function(a,b,c){return function d(a,b,c){function e(h,i){if(!b[h]){if(!a[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=b[h]={exports:{}};a[h][0].call(l.exports,function(b){var c=a[h][1][b];return e(c?c:b)},l,l.exports,d,a,b,c)}return b[h].exports}for(var f="function"==typeof require&&require,g=JSON.parse('{"zeroclipboard":"ZeroClipboard","moment":"moment","pikaday":"Pikaday"}')||{},h=0;h<c.length;h++)e(c[h]);return e}(a,b,c),function(){return Handsontable}}({1:[function(a,b,c){"use strict";window.jQuery&&!function(a,b,c){b.fn.handsontable=function(a){var b,d,e,f,g,h=this.first(),i=h.data("handsontable");if("string"!=typeof a)return g=a||{},i?i.updateSettings(g):(i=new c.Core(h[0],g),h.data("handsontable",i),i.init()),h;if(e=[],arguments.length>1)for(b=1,d=arguments.length;d>b;b++)e.push(arguments[b]);if(i){if("undefined"==typeof i[a])throw new Error("Handsontable do not provide action: "+a);f=i[a].apply(i,e),"destroy"===a&&h.removeData()}return f}}(window,jQuery,Handsontable)},{}],2:[function(a,b,c){"use strict";Object.defineProperties(c,{WalkontableBorder:{get:function(){return u}},__esModule:{value:!0}});var d,e,f,g,h,i=(d=a("helpers/dom/element"),d&&d.__esModule&&d||{"default":d}),j=i.getComputedStyle,k=i.getTrimmingContainer,l=i.innerWidth,m=i.innerHeight,n=i.offset,o=i.outerHeight,p=i.outerWidth,q=(e=a("helpers/dom/event"),e&&e.__esModule&&e||{"default":e}).stopImmediatePropagation,r=(f=a("eventManager"),f&&f.__esModule&&f||{"default":f}).EventManager,s=(g=a("cell/coords"),g&&g.__esModule&&g||{"default":g}).WalkontableCellCoords,t=(h=a("overlay/_base.js"),h&&h.__esModule&&h||{"default":h}).WalkontableOverlay,u=function(a,b){b&&(this.eventManager=new r(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(u,{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=0,c=this.main.childNodes.length;c>b;b++)this.eventManager.addEventListener(this.main.childNodes[b],"mouseenter",function(b){return a.onMouseEnter(b)})},onMouseDown:function(){this.mouseDown=!0},onMouseUp:function(){this.mouseDown=!1},onMouseEnter:function(a){function b(a){return a.clientY<Math.floor(e.top)?!0:a.clientY>Math.ceil(e.top+e.height)?!0:a.clientX<Math.floor(e.left)?!0:a.clientX>Math.ceil(e.left+e.width)?!0:void 0}function c(a){b(a)&&(d.eventManager.removeEventListener(document.body,"mousemove",c),d.style.display="block")}if(this.mouseDown&&this.wot.getSetting("hideBorderOnMouseDownOver")){a.preventDefault(),q(a);var d=this,e=this.getBoundingClientRect();this.style.display="none",this.eventManager.addEventListener(document.body,"mousemove",c)}},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,
}},{}),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.__esModule&&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.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.mainTableScrollableElement=h(this.wot.wtTable.TABLE),this.needFullRender=this.shouldBeRendered(),this.areElementSizesAdjusted=!1},n=m;$traceurRuntime.createClass(m,{shouldBeRendered:function(){return!0},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");return 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),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:40,"helpers/dom/element":44,"helpers/object":49}],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":44}],13:[function(a,b,c){"use strict";Object.defineProperties(c,{WalkontableLeftOverlay:{get:function(){return p}},__esModule:{value:!0}});var d,e,f=(d=a("helpers/dom/element"),d&&d.__esModule&&d||{"default":d}),g=f.addClass,
this.rowFilter=new t(c,b,this.wot.getSetting("columnHeaders").length),this.columnFilter=new s(d,this.wot.getSetting("totalColumns"),this.wot.getSetting("rowHeaders").length),this._doDraw(),this.alignOverlaysWithTrimmingContainer()}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 u(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)},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){var b=a.parentNode,c=n(b);c=b.parentNode===this.THEAD?this.rowFilter.visibleColHeadedRowToSourceRow(c):this.rowFilter.renderedToSource(c);var d=this.columnFilter.visibleRowHeadedColumnToSourceColumn(a.cellIndex);return new r(c,d)},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(){return WalkontableOverlay.isOverlayTypeOf(this.wot.cloneOverlay,WalkontableOverlay.CLONE_DEBUG)?this.wot.getSetting("to
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=Handsontable.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 Handsontable.hooks.run(p,"modifyRow",a)}function i(a){return Handsontable.hooks.run(p,"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=this,q=function(){},r=E(p);G(q.prototype,X.prototype),G(q.prototype,b),G(q.prototype,g(b)),this.rootElement=a,this.isHotTableEnv=z(this.rootElement),Handsontable.eventManager.isHotTableEnv=this.isHotTableEnv,this.container=document.createElement("DIV"),this.renderCall=!1,a.insertBefore(this.container,a.firstChild),this.guid="ht_"+N(),this.rootElement.id&&"ht_"!==this.rootElement.id.substring(0,3)||(this.rootElement.id=this.guid),k={cellSettings:[],columnSettings:[],columnsSettingConflicts:["data","width"],settings:new q,selRange:null,isPopulated:null,scrollable:null,firstRun:!0},m={alter:function(a,b,c,d,e){var f;switch(c=c||1,a){case"insert_row":if(p.getSettings().maxRows===p.countRows())return;f=l.createRow(b,c),f&&(n.isSelected()&&k.selRange.from.row>=b?(k.selRange.from.row=k.selRange.from.row+f,n.transformEnd(f,0)):n.refreshBorders());break;case"insert_col":if(f=l.createCol(b,c)){if(Array.isArray(p.getSettings().colHeaders)){var g=[b,0];g.length+=f,Array.prototype.splice.apply(p.getSettings().colHeaders,g)}n.isSelected()&&k.selRange.from.col>=b?(k.selRange.from.col=k.selRange.from.col+f,n.transformEnd(0,f)):n.refreshBorders()}break;case"remove_row":b=p.runHooks("modifyCol",b),l.removeRow(b,c),k.cellSettings.splice(b,c);var h=p.countRows(),i=p.getSettings().fixedRowsTop;i>=b+1&&(p.getSettings().fixedRowsTop-=Math.min(c,i-b));var j=p.getSettings().fixedRowsBottom;j&&b+1>=h-j&&(p.getSettings().fixedRowsBottom-=Math.min(c,j-b)),m.adjustRowsAndCols(),n.refreshBorders();break;case"remove_col":l.removeCol(b,c);for(var o=0,q=l.getAll().length;q>o;o++)o in k.cellSettings&&k.cellSettings[o].splice(b,c);var r=p.getSettings().fixedColumnsLeft;r>=b+1&&(p.getSettings().fixedColumnsLeft-=Math.min(c,r-b)),Array.isArray(p.getSettings().colHeaders)&&("undefined"==typeof b&&(b=-1),p.getSettings().colHeaders.splice(b,c)),m.adjustRowsAndCols(),n.refreshBorders();break;default:throw new Error('There is no such action "'+a+'"')}e||m.adjustRowsAndCols()},adjustRowsAndCols:function(){if(k.settings.minRows){var a=p.countRows();if(a<k.settings.minRows)for(var b=0,c=k.settings.minRows;c-a>b;b++)l.createRow(p.countRows(),1,!0)}if(k.settings.minSpareRows){var d=p.countEmptyRows(!0);if(d<k.settings.minSpareRows)for(;d<k.settings.minSpareRows&&p.countRows()<k.settings.maxRows;d++)l.createRow(p.countRows(),1,!0)}var e;if((k.settings.minCols||k.settings.minSpareCols)&&(e=p.countEmptyCols(!0)),k.settings.minCols&&!k.settings.columns&&p.countCols()<k.settings.minCols)for(;p.countCols()<k.settings.minCols;e++)l.createCol(p.countCols(),1,!0);if(k.settings.minSpareCols&&!k.settings.columns&&"array"===p.dataType&&e<k.settings.minSpareCols)for(;e<k.settings.minSpareCols&&p.countCols()<k.settings.maxCols;e++)l.createCol(p.countCols(),1,!0);var f=p.countRows(),g=p.countCols();if((0===f||0===g)&&n.deselect(),n.isSelected()){var h=!1,i=k.selRange.from.row,j=k.selRange.from.col,m=k.selRange.to.row,o=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,o>j&&(o=j)):o>g-1&&(o=g-1,h=!0,j>o&&(j=o)),h&&p.selectCell(i,j,m,o)}p.view&&p.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,q,r,s;({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,q=c?c.row-a.row+1:0,b=R(b),j=0
g[j].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 Handsontable.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.countRows()+a)%this.instance.countRows();var c=this.physicalRowsToLogical(a,b),d=Handsontable.hooks.run(this.instance,"beforeRemoveRow",a,b);if(d!==!1){var e=this.dataSource,f=e.filter(function(a,b){return-1==c.indexOf(b)});e.length=0,Array.prototype.push.apply(e,f),Handsontable.hooks.run(this.instance,"afterRemoveRow",a,b),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=Handsontable.hooks.run(this.instance,"beforeRemoveCol",a,b);if(c!==!1){for(var d=this.dataSource,e=0,f=this.instance.countRows();f>e;e++)d[e].splice(a,b);this.priv.columnSettings.splice(a,b),Handsontable.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);r(d,g);for(var h=0;c>h;)d.push(null),h++;return s(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);r(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){if(a=Handsontable.hooks.run(this.instance,"modifyRow",a),"string"==typeof b&&b.indexOf(".")>-1){var c=b.split("."),d=this.dataSource[a];if(!d)return null;for(var e=0,f=c.length;f>e;e++)if(d=d[c[e]],"undefined"==typeof d)return null;return d}return"function"==typeof b?b(this.dataSource.slice(a,a+1)[0]):this.dataSource[a]?this.dataSource[a][b]:null};var u=l("copyable",!1);d.prototype.getCopyable=function(a,b){return u.call(this.instance,a,this.propToCol(b))?this.get(a,b):""},d.prototype.set=function(a,b,c,d){if(a=Handsontable.hooks.run(this.instance,"modifyRow",a,d||"datamapGet"),"string"==typeof b&&b.indexOf(".")>-1){for(var e=b.split("."),f=this.dataSource[a],g=0,h=e.length-1;h>g;g++)"undefined"==typeof f[e[g]]&&(f[e[g]]={}),f=f[e[g]];f[e[g]]=c}else"function"==typeof b?b(this.dataSource.slice(a,a+1)[0],c):this.dataSource[a][b]=c},d.prototype.physicalRowsToLogical=function(a,b){for(var c,d=this.instance.countRows(),e=(d+a)%d,f=[],g=b;d>e&&g;)c=Handsontable.hooks.run(this.instance,"modifyRow",e),f.push(c),g--,e++;return f},d.prototype.clear=function(){for(var a=0;a<this.instance.countRows();a++)for(var b=0;b<this.instance.countCols();b++)this.set(a,this.colToProp(b),"")},d.prototype.getAll=function(){return this.dataSource},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++){for(h=[],f=Math.min(a.col,b.col);g>=f;f++)h.push(j.call(this,d,this.colToProp(f)));i.push(h)}return i},d.prototype.getText=function(a,b){return k.stringify(this.getRange(a,b,this.DESTINATION_RENDERER))},d.prototype.getCopyableText=function(a,b){return k.stringify(this.getRange(a,b,this.DESTINATION_CLIPBOARD_GENERATOR))},Handsontable.DataMap=d},{SheetClip:"SheetClip","helpers/array":41,"helpers/data":43,"helpers/object":49,"helpers/setting":50,multiMap:53}],27:[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.transf
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(D.cellPointer||(D.cellPointer={height:u(this.cellPointer),width:v(this.cellPointer)}),D.editorContainer||(D.editorContainer={width:v(this.editorContainer)}),void 0!==d){var e=this.instance.view.wt.wtOverlays.leftOverlay.trimmingContainer==window?0:p(this.instance.view.wt.wtOverlays.leftOverlay.holder),f=this.instance.view.wt.wtOverlays.topOverlay.trimmingContainer==window?0:q(this.instance.view.wt.wtOverlays.topOverlay.holder),g=t(d),h=v(d),i={x:e,y:f};this.editorContainer.style.top=parseInt(g.top+u(d)-i.y+D.cellPointer.height,10)+"px",this.editorContainer.style.left=parseInt(window.innerWidth/2-D.editorContainer.width/2,10)+"px",g.left+h/2>parseInt(this.editorContainer.style.left,10)+D.editorContainer.width?this.editorContainer.style.left=window.innerWidth-D.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-D.cellPointer.width/2-t(this.editorContainer).left+h/2-i.x,10)+"px"}}},C.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()},C.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},C.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){s(b.target,a.editorContainer)||s(b.target,a.instance.rootElement)||a.close()}),this.eventManager.addEventListener(this.instance.view.wt.wtOverlays.leftOverlay.holder,"scroll",function(b){a.instance.view.wt.wtOverlays.leftOverlay.trimmingContainer!=window&&a.hideCellPointer()}),this.eventManager.addEventListener(this.instance.view.wt.wtOverlays.topOverlay.holder,"scroll",function(b){a.instance.view.wt.wtOverlays.topOverlay.trimmingContainer!=window&&a.hideCellPointer()})},C.prototype.destroy=function(){this.eventManager.clear(),this.editorContainer.parentNode.removeChild(this.editorContainer)},z("mobile",C)},{_baseEditor:29,editors:28,eventManager:40,"helpers/dom/element":44,"helpers/dom/event":45,"helpers/unicode":52}],36:[function(a,b,c){"use strict";Object.defineProperties(c,{NumericEditor:{get:function(){return k}},__esModule:{value:!0}});var d,e,f,g=(d=a("numeral"),d&&d.__esModule&&d||{"default":d})["default"],h=(e=a("editors"),e&&e.__esModule&&e||{"default":e}),i=(h.getEditor,h.registerEditor),j=(f=a("textEditor"),f&&f.__esModule&&f||{"default":f}).TextEditor,k=function(){$traceurRuntime.superConstructor(l).apply(this,arguments)},l=k;$traceurRuntime.createClass(k,{beginEditing:function(a){if("undefined"==typeof a&&this.origi
closest:{get:function(){return d}},isChildOf:{get:function(){return e}},isChildOfWebComponentTable:{get:function(){return f}},polymerWrap:{get:function(){return g}},polymerUnwrap:{get:function(){return h}},index:{get:function(){return i}},overlayContainsElement:{get:function(){return j}},hasClass:{get:function(){return l}},addClass:{get:function(){return m}},removeClass:{get:function(){return n}},removeTextNodes:{get:function(){return o}},empty:{get:function(){return p}},HTML_CHARACTERS:{get:function(){return fa}},fastInnerHTML:{get:function(){return q}},fastInnerText:{get:function(){return r}},isVisible:{get:function(){return s}},offset:{get:function(){return t}},getWindowScrollTop:{get:function(){return u}},getWindowScrollLeft:{get:function(){return v}},getScrollTop:{get:function(){return w}},getScrollLeft:{get:function(){return x}},getScrollableElement:{get:function(){return y}},getTrimmingContainer:{get:function(){return z}},getStyle:{get:function(){return A}},getComputedStyle:{get:function(){return B}},outerWidth:{get:function(){return C}},outerHeight:{get:function(){return D}},innerHeight:{get:function(){return E}},innerWidth:{get:function(){return F}},addEvent:{get:function(){return G}},removeEvent:{get:function(){return H}},getCaretPosition:{get:function(){return I}},getSelectionEndPosition:{get:function(){return J}},setCaretPosition:{get:function(){return K}},getScrollbarWidth:{get:function(){return M}},setOverlayPosition:{get:function(){return N}},getCssTransform:{get:function(){return O}},resetCssTransform:{get:function(){return P}},isInput:{get:function(){return Q}},isOutsideInput:{get:function(){return R}},requestAnimationFrame:{get:function(){return S}},cancelAnimationFrame:{get:function(){return T}},__esModule:{value:!0}});var U,V,W,X,Y=(U=a("../browser"),U&&U.__esModule&&U||{"default":U}),Z=Y.isIE8,$=Y.isIE9,_=Y.isSafari,aa=Y.hasCaptionProblem,ba=document.documentElement.classList?!0:!1;if(ba){var ca=function(){var a=document.createElement("div");return a.classList.add("test","test2"),a.classList.contains("test2")}();V=function(a,b){return""===b?!1:a.classList.contains(b)},W=function(a,b){var c=0;if("string"==typeof b&&(b=b.split(" ")),b=k(b),ca)a.classList.add.apply(a.classList,b);else for(;b&&b[c];)a.classList.add(b[c]),c++},X=function(a,b){var c=0;if("string"==typeof b&&(b=b.split(" ")),b=k(b),ca)a.classList.remove.apply(a.classList,b);else for(;b&&b[c];)a.classList.remove(b[c]),c++}}else{var da=function(a){return new RegExp("(\\s|^)"+a+"(\\s|$)")};V=function(a,b){return a.className.match(da(b))?!0:!1},W=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];)da(b[c]).test(d)||(d+=" "+b[c]),c++;a.className=d},X=function(a,b){var c=0,d=a.className;for("string"==typeof b&&(b=b.split(" "));b&&b[c];)d=d.replace(da(b[c])," ").trim(),c++;a.className!==d&&(a.className=d)}}for(var ea,fa=/(<(.*)>|&(.*);)/,ga=document.createTextNode("test").textContent?!0:!1,ha=0,ia=["ms","moz","webkit","o"],ja=window.requestAnimationFrame,ka=window.cancelAnimationFrame,la=0;la<ia.length&&!ja;++la)ja=window[ia[la]+"RequestAnimationFrame"],ka=window[ia[la]+"CancelAnimationFrame"]||window[ia[la]+"CancelRequestAnimationFrame"];ja||(ja=function(a){var b=(new Date).getTime(),c=Math.max(0,16-(b-ha)),d=window.setTimeout(function(){a(b+c)},c);return ha=b+c,d}),ka||(ka=function(a){clearTimeout(a)})},{"../browser":42}],45:[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){if(a.pageX)return a.pageX;var b=getWindowScrollLeft(),c=a.clientX+b;return c}function h(a){if(a.pageY)return a.pageY;var b=getWindowScrollTop(),c=a.clientY+b;return c}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}}
},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()}}Object.defineProperties(c,{Autofill:{get:function(){return e}},__esModule:{value:!0}});var f,g,h,i,j=(f=a("helpers/dom/element"),f&&f.__esModule&&f||{"default":f}),k=j.offset,l=j.outerHeight,m=j.outerWidth,n=(g=a("eventManager"),g&&g.__esModule&&g||{"default":g}).eventManager,o=((h=a("plugins"),h&&h.__esModule&&h||{"default":h}).registerPlugin,(i=a("3rdparty/walkontable/src/cell/coords"),i&&i.__esModule&&i||{"default":i}).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 o(a[0],a[1])),this.instance.view.wt.selections.fill.add(new o(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(),Handsontable.hooks.run(this.instance,"afterAutofillApplyValues",b,a),a[0]===b[0]&&a[1]<b[1]?(g="left",c=new o(a[0],a[1]),e=new o(a[2],b[1]-1)):a[0]===b[0]&&a[3]>b[3]?(g="right",c=new o(a[0],b[3]+1),e=new o(a[2],a[3])):a[0]<b[0]&&a[1]===b[1]?(g="up",c=new o(a[0],a[1]),e=new o(b[0]-1,a[3])):a[2]>b[2]&&a[1]===b[1]&&(g="down",c=new o(b[2]+1,a[1]),e=new o(a[2],a[3])),c&&c.row>-1&&c.col>-1?(i={from: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),Handsontable.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 o(a[0],a[1])),this.instance.selection.setRangeEnd(new o(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"!==this.instance.getSettings().fillHandle&&(c.row<a.row||b.row>a.row))a=new o(a.row,c.col);else{if("vertical"===this.instance.getSettings().fillHandle)return;a=new o(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&&(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))))},Handsontable.hooks.add("afterInit",function(){var a=new e(this);"undefined"!=typeof this.getSettings().fillHandle&&(a.handle&&this.getSettings().fillHandle===!1?a.disable():a.handle||this.getSettings().fillHandle===!1||(this.autofill=a,this.autofill.init()))}),Handsontable.Autofill=e},{"3rdparty/walkontable/src/cell/coords":5,eventManager:40,"hel
},setPositionAboveCursor:function(a){var b=a.top-this.container.offsetHeight;this.isSubMenu()&&(b=window.scrollY+a.top+a.cellHeight-this.container.offsetHeight+3),this.container.style.top=b+"px"},setPositionBelowCursor:function(a){var b=a.top-1;this.isSubMenu()&&(b=a.top+window.scrollY-1),this.container.style.top=b+"px"},setPositionOnRightOfCursor:function(a){var b;b=this.isSubMenu()?window.scrollX+1+a.left+a.cellWidth:1+a.left,this.container.style.left=b+"px"},setPositionOnLeftOfCursor:function(a){this.container.style.left=a.left-this.container.offsetWidth+r()+4+"px"},selectFirstCell:function(){var a=this.hotMenu.getCell(0,0);A(a)||B(a)||C(a)?this.selectNextCell(0,0):this.hotMenu.selectCell(0,0)},selectLastCell:function(){var a=this.hotMenu.countRows()-1,b=this.hotMenu.getCell(a,0);A(b)||B(b)||C(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&&(A(d)||B(d)||C(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&&(A(d)||B(d)||C(d)?this.selectPrevCell(c,b):this.hotMenu.selectCell(c,b))},menuItemRenderer:function(a,b,c,d,e,f){var g=this,h=a.getData()[c],i=document.createElement("div"),j=function(a){return a.hasOwnProperty("submenu")},k=function(a){return new RegExp(I,"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)),p(b),o(i,"htItemWrapper"),b.appendChild(i),k(h)?o(b,"htSeparator"):"function"==typeof h.renderer?(o(b,"htCustomMenuRenderer"),b.appendChild(h.renderer(a,i,c,d,e,f))):q(i,f),l(h)?(o(b,"htDisabled"),this.eventManager.addEventListener(i,"mouseenter",function(){return a.deselectCell()})):m(h)?(o(b,"htSelectionDisabled"),this.eventManager.addEventListener(i,"mouseenter",function(){return a.deselectCell()})):j(h)?(o(b,"htSubmenu"),m(h)?this.eventManager.addEventListener(i,"mouseenter",function(){return a.deselectCell()}):this.eventManager.addEventListener(i,"mouseenter",function(){return a.selectCell(c,d)})):(t(b,"htSubmenu"),t(b,"htDisabled"),m(h)?this.eventManager.addEventListener(i,"mouseenter",function(){return a.deselectCell()}):this.eventManager.addEventListener(i,"mouseenter",function(){return a.selectCell(c,d)}))},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=a?document.querySelector("."+this.options.className+"."+a):document.querySelector("."+this.options.className),b||(b=document.createElement("div"),o(b,"htMenu "+this.options.className),a&&o(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 F.ESCAPE:this.close(),c=!0;break;case F.ENTER:b&&(this.hotMenu.getData()[b[0]].submenu?c=!0:(this.executeCommand(a),this.close(!0)));break;case F.ARROW_DOWN:b?this.selectNextCell(b[0],b[1]):this.selectFirstCell(),c=!0;break;case F.ARROW_UP:b?this.selectPrevCell(b[0],b[1]):this.selectLastCell(),c=!0;break;case F.ARROW_RIGHT:if(b){var d=this.openSubMenu(b[0]);d&&d.selectFirstCell()}c=!0;break;case F.ARROW_LEFT:b&&this.isSubMenu()&&(this.close(),this.parentMenu&&this.parentMenu.hotMenu.listen(),c=!0)}c&&(a.preventDefault(),K(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=0;u(a,function(a){return e+=a.name
},modifyColumnOrder:function(a,b,c,d){null==c&&(c=a),"freeze"===d?this.hot.manualColumnPositions.splice(this.fixedColumnsCount,0,this.hot.manualColumnPositions.splice(b,1)[0]):"unfreeze"===d&&this.hot.manualColumnPositions.splice(c,0,this.hot.manualColumnPositions.splice(b,1)[0])},getBestColumnReturnPosition:function(a){for(var b=this.fixedColumnsCount,c=this.getModifiedColumnIndex(b),d=this.getModifiedColumnIndex(a);d>c;)b++,c=this.getModifiedColumnIndex(b);return b-1}},{},f),g("manualColumnFreeze",h)},{_base:56,plugins:55}],75:[function(a,b,c){"use strict";function d(){function a(a){p=this,q=a;var b=this.view.wt.wtTable.getCoords(a).col;if(b>=0){n=b;var c=q.getBoundingClientRect();i=c.left,r.style.top=c.top+"px",r.style.left=i+"px",p.rootElement.appendChild(r)}}function b(a,b){var c=a.getBoundingClientRect(),d=6;b>0?r.style.left=c.left+c.width-d+"px":r.style.left=c.left+"px"}function c(){var a=this;j(r,"active"),j(s,"active");var b=q.getBoundingClientRect();s.style.width=b.width+"px",s.style.height=a.view.maximumVisibleElementHeight(0)+"px",s.style.top=r.style.top,s.style.left=i+"px",a.rootElement.appendChild(s)}function d(a){s.style.left=i+a+"px"}function e(){l(r,"active"),l(s,"active")}var f,g,h,i,n,p,q,r=document.createElement("DIV"),s=document.createElement("DIV"),t=m(this);r.className="manualColumnMover",s.className="manualColumnMoverGuide";var u=function(){var a=this;Handsontable.hooks.run(a,"persistentStateSave","manualColumnPositions",a.manualColumnPositions)},v=function(){var a=this,b={};return Handsontable.hooks.run(a,"persistentStateLoad","manualColumnPositions",b),b.value},w=function(a){return"BODY"!=a.tagName?"THEAD"==a.parentNode.tagName?!0:(a=a.parentNode,w(a)):!1},x=function(a){return"TABLE"!=a.tagName?"TH"==a.tagName?a:x(a.parentNode):null},y=function(){var i,j=this;t.addEventListener(j.rootElement,"mouseover",function(c){if(w(c.target)){var d=x(c.target);if(d)if(i){var e=j.view.wt.wtTable.getCoords(d).col;e>=0&&(g=e,b(c.target,g-f))}else a.call(j,d)}}),t.addEventListener(j.rootElement,"mousedown",function(a){k(a.target,"manualColumnMover")&&(h=o(a),c.call(j),i=j,f=n,g=n)}),t.addEventListener(window,"mousemove",function(a){i&&d(o(a)-h)}),t.addEventListener(window,"mouseup",function(b){i&&(e(),i=!1,A(j.manualColumnPositions,j.countCols()),j.manualColumnPositions.splice(g,0,j.manualColumnPositions.splice(f,1)[0]),Handsontable.hooks.run(j,"beforeColumnMove",f,g),j.forceFullRender=!0,j.view.render(),u.call(j),Handsontable.hooks.run(j,"afterColumnMove",f,g),a.call(j,q))}),j.addHook("afterDestroy",z)},z=function(){t.clear()},A=function(a,b){if(a.length<b)for(var c=a.length;b>c;c++)a[c]=c};this.beforeInit=function(){this.manualColumnPositions=[]},this.init=function(a){var b=this,c=!!this.getSettings().manualColumnMove;if(c){var d=this.getSettings().manualColumnMove,e=v.call(b);"undefined"!=typeof e?this.manualColumnPositions=e:Array.isArray(d)?this.manualColumnPositions=d:this.manualColumnPositions=[],("afterInit"===a||"afterUpdateSettings"===a&&0===t.context.eventListeners.length)&&("undefined"==typeof b.manualColumnPositionsPluginUsages?b.manualColumnPositionsPluginUsages=["manualColumnMove"]:b.manualColumnPositionsPluginUsages.push("manualColumnMove"),y.call(this),this.manualColumnPositions.length>0&&(this.forceFullRender=!0,this.render()))}else{var f=b.manualColumnPositionsPluginUsages?b.manualColumnPositionsPluginUsages.indexOf("manualColumnMove"):-1;f>-1&&(z.call(this),this.manualColumnPositions=[],b.manualColumnPositionsPluginUsages[f]=void 0)}},this.modifyCol=function(a){return this.getSettings().manualColumnMove?("undefined"==typeof this.manualColumnPositions[a]&&A(this.manualColumnPositions,a+1),this.manualColumnPositions[a]):a},this.afterRemoveCol=function(a,b){if(this.getSettings().manualColumnMove){var c,d=this.manualColumnPositions;c=d.splice(a,b),d=d.map(function(a){var b,d=a;for(b=0;b<c.length;b++)a>c[b]&&d--;return d}),this.manualColumnPositions=d}},this.afterCreateCol=function(a,b){if(this.getSettings().manualColumnMove){var c=this.manualColumnPositions;if(c.length){for(var d=[],e=0;b>e;e++
var c;return j(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):j(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 j(c.target,"topLeftSelectionHandle-HitArea")?(a.call(b,"topLeft"),b.touchStartRange=void 0,c.preventDefault(),!1):j(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,j,l=i(),m=k();0!==b.dragged.length&&(c=document.elementFromPoint(a.touches[0].screenX-m,a.touches[0].screenY-l),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),j=b.getCurrentRangeCoords(e,d,b.touchStartRange.direction,h,b.dragged[0]),null!==j.start&&b.hot.selection.setRangeStart(j.start),b.hot.selection.setRangeEnd(j.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}},{},l),n("multipleSelectionHandles",o)},{_base:56,eventManager:40,"helpers/dom/element":44,plugins:55}],81:[function(a,b,c){"use strict";function d(){}function e(){var a=this,b=a.getSettings().observeChanges;b?(a.observer&&h.call(a),f.call(a),j.call(a)):b||h.call(a)}function f(){var a=this;a.observeChangesActive=!0,a.pauseObservingChanges=function(){a.observeChangesActive=!1},a.resumeObservingChanges=function(){a.observeChangesActive=!0},a.observedData=a.getData(),a.observer=o.observe(a.observedData,function(b){a.observeChangesActive&&(g.call(a,b),a.render()),a.runHooks("afterChangesObserved")})}function g(a){function b(a){var b;return b=d(a),b=c(b)}function c(a){var b=[];return a.filter(function(a){var c=e(a.path);if(-1!=["add","remove"].indexOf(a.op)&&!isNaN(c.col)){if(-1!=b.indexOf(c.col))return!1;b.push(c.col)}return!0})}function d(a){return a.filter(function(a){return!/[/]length/gi.test(a.path)})}function e(a){var b=a.match(/^\/(\d+)\/?(.*)?$/);return{row:parseInt(b[1],10),col:/^\d*$/.test(b[2])?parseInt(b[2
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}()},{}],95:[function(a,b,c){"use strict";function d(a){var b=this;this.eventManager=u(a),this.instance=a,this.settings=a.getSettings();var c=a.rootElement.getAttribute("style");c&&a.rootElement.setAttribute("data-originalstyle",c),l(a.rootElement,"handsontable");var d=document.createElement("TABLE");l(d,"htCore"),a.getSettings().tableClassName&&l(d,a.getSettings().tableClassName),this.THEAD=document.createElement("THEAD"),d.appendChild(this.THEAD),this.TBODY=document.createElement("TBODY"),d.appendChild(this.TBODY),a.table=d,a.container.insertBefore(d,a.container.firstChild),this.eventManager.addEventListener(a.rootElement,"mousedown",function(a){b.isTextSelectionAllowed(a.target)||(f(),a.preventDefault(),window.focus())}),this.eventManager.addEventListener(document.documentElement,"keyup",function(b){a.selection.isInProgress()&&!b.shiftKey&&a.selection.finish()});var e;this.isMouseDown=function(){return e},this.eventManager.addEventListener(document.documentElement,"mouseup",function(b){a.selection.isInProgress()&&1===b.which&&a.selection.finish(),e=!1,t(document.activeElement)&&a.unlisten()}),this.eventManager.addEventListener(document.documentElement,"mousedown",function(c){var d=c.target,f=c.x||c.clientX,g=c.y||c.clientY;if(!e&&a.rootElement){if(d===a.view.wt.wtTable.holder){var h=p();if(document.elementFromPoint(f+h,g)!==a.view.wt.wtTable.holder||document.elementFromPoint(f,g+h)!==a.view.wt.wtTable.holder)return}else for(;d!==document.documentElement;){if(null===d){if(c.isTargetWebComponent)break;return}if(d===a.rootElement)return;d=d.parentNode}b.settings.outsideClickDeselects?a.deselectCell():a.destroyEditor()}}),this.eventManager.addEventListener(d,"selectstart",function(a){b.settings.fragmentSelection||a.preventDefault()});var f=function(){window.getSelection?window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().removeAllRanges():document.selection&&document.selection.empty()},g=[new z({className:"current",border:{width:2,color:"#5292F7",cornerVisible:function(){return b.settings.fillHandle&&!b.isCellEdited()&&!a.selection.isMultiple()},multipleSelectionHandlesVisible:function(){return!b.isCellEdited()&&!a.selection.isMultiple()}}}),new z({className:"area",border:{width:1,color:"#89AFF9",cornerVisible:function(){return b.settings.fillHandle&&!b.isCellEdited()&&a.selection.isMultiple()},multipleSelectionHandlesVisible:function(){return!b.isCellEdited()&&a.selection.isMultiple()}}}),new z({className:"highlight",highlightRowClassName:b.settings.currentRowClassName,highlightColumnClassName:b.settings.currentColClassName}),new z({className:"fill",border:{width:1,colo
a.hasOwnProperty(k)||(d.push({op:"add",path:e+"/"+b(k),value:c[k]}),a[k]=JSON.parse(JSON.stringify(c[k])))}}function o(a,b){for(var c,d=!1,e=0,f=b.length;f>e;){c=b[e];for(var g=c.path.split("/"),h=a,i=1,j=g.length;;)if(w(h)){var k=parseInt(g[i],10);if(i++,i>=j){d=q[c.op].call(c,h,k,a);break}h=h[k]}else{var l=g[i];if(-1!=l.indexOf("~")&&(l=l.replace(/~1/g,"/").replace(/~0/g,"~")),i++,i>=j){d=p[c.op].call(c,h,l,a);break}h=h[l]}e++}return d}var p={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,b){return JSON.stringify(a[b])===JSON.stringify(this.value)},_get:function(a,b){this.value=a[b]}},q={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:p.move,copy:p.copy,test:p.test,_get:p._get},r={add:function(a,c){var d={op:"add",path:c+b(this.name),value:this.object[this.name]};a.push(d)},"delete":function(a,c){var d={op:"remove",path:c+b(this.name)};a.push(d)},update:function(a,c){var d={op:"replace",path:c+b(this.name),value:this.object[this.name]};a.push(d)}},s=[];a.intervals;var t=function(){function a(a){this.observers=[],this.obj=a}return a}(),u=function(){function a(a,b){this.callback=a,this.observer=b}return a}();a.unobserve=i,a.observe=j,a.generate=m;var v;v=Object.keys?Object.keys:function(a){var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(c);return b};var w;w=Array.isArray?Array.isArray:function(a){return a.push&&"number"==typeof a.length},a.apply=o}(d||(d={})),"undefined"!=typeof c&&(c.apply=d.apply,c.observe=d.observe,c.unobserve=d.unobserve,c.generate=d.generate)},{}],moment:[function(b,c,d){!function(b,e){"object"==typeof d&&"undefined"!=typeof c?c.exports=e():"function"==typeof a&&a.amd?a(e):b.moment=e()}(this,function(){"use strict";function a(){return Jc.apply(null,arguments)}function d(a){Jc=a}function e(a){return"[object Array]"===Object.prototype.toString.call(a)}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 Ea(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}}function l(a){return null==a._pf&&(a._pf=k()),a._pf}function m(a){if(null==a._isValid){var b=l(a);a._isValid=!(isNaN(a._d.getTime())||!(b.overflow<0)||b.empty||b.invalidMonth||b.invalidWeekday||b.nullInput||b.invalidFormat||b.userInvalidated),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(NaN);return null!=a?i(l(b),a):l(b).userInvalidated=!0,b}function o(a,b){var c,d,e;if("undefined"!=typeof b._isAMomentObject&&(a._isAMomentObject=b._isAMomentObject),"undefined"!=typeof b._i&&(a._i=b._i),"undefined"!=typeof b._f&&(a._f=b._f),"undefined"!=typeof b._l&&(a._l=b._l),"undefined"!=typeof b._strict&&(a._strict=b._strict),"undefined"!=typeof b._tzm&&(a._tzm=b._tzm),"undefined"!=typeof b._isUTC&&(a._isUTC=b._isUTC),"undefined"!=typeof b._offset&&(a._offset=b._offset),"undefined"!=typeof b._pf&&(a._pf=l(b)),"undefined"!=typeof b._locale&&(a._locale=b._locale),Lc.length>0)for(c in Lc)d=Lc[c],e=b[d],"undefined"!=typeof e&&(a[d]=e);return a}function p(b){o(this,b),this._d=new Date(null!=b._d?b._d.getTime():NaN),Mc===!1&&(Mc=!0,a.updateOffset(this),Mc=!1)}function q(a){return a instanceof p||null!=a&&null!=a._isAMo
P("hh",Yc,Uc),S(["H","HH"],kd),S(["a","A"],function(a,b,c){c._isPm=c._locale.isPM(a),c._meridiem=a}),S(["h","hh"],function(a,b,c){b[kd]=s(a),l(c).bigHour=!0});var Jd=/[ap]\.?m?\.?/i,Kd=E("Hours",!0);J("m",["mm",2],0,"minute"),B("minute","m"),P("m",Yc),P("mm",Yc,Uc),S(["m","mm"],ld);var Ld=E("Minutes",!1);J("s",["ss",2],0,"second"),B("second","s"),P("s",Yc),P("ss",Yc,Uc),S(["s","ss"],md);var Md=E("Seconds",!1);J("S",0,0,function(){return~~(this.millisecond()/100)}),J(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),J(0,["SSS",3],0,"millisecond"),J(0,["SSSS",4],0,function(){return 10*this.millisecond()}),J(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),J(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),J(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),J(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),J(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),B("millisecond","ms"),P("S",Zc,Tc),P("SS",Zc,Uc),P("SSS",Zc,Vc);var Nd;for(Nd="SSSS";Nd.length<=9;Nd+="S")P(Nd,ad);for(Nd="S";Nd.length<=9;Nd+="S")S(Nd,Yb);var Od=E("Milliseconds",!1);J("z",0,0,"zoneAbbr"),J("zz",0,0,"zoneName");var Pd=p.prototype;Pd.add=Cd,Pd.calendar=eb,Pd.clone=fb,Pd.diff=kb,Pd.endOf=wb,Pd.format=ob,Pd.from=pb,Pd.fromNow=qb,Pd.to=rb,Pd.toNow=sb,Pd.get=H,Pd.invalidAt=Eb,Pd.isAfter=gb,Pd.isBefore=hb,Pd.isBetween=ib,Pd.isSame=jb,Pd.isValid=Cb,Pd.lang=Ed,Pd.locale=tb,Pd.localeData=ub,Pd.max=yd,Pd.min=xd,Pd.parsingFlags=Db,Pd.set=H,Pd.startOf=vb,Pd.subtract=Dd,Pd.toArray=Ab,Pd.toObject=Bb,Pd.toDate=zb,Pd.toISOString=nb,Pd.toJSON=nb,Pd.toString=mb,Pd.unix=yb,Pd.valueOf=xb,Pd.year=vd,Pd.isLeapYear=ka,Pd.weekYear=Hb,Pd.isoWeekYear=Ib,Pd.quarter=Pd.quarters=Lb,Pd.month=$,Pd.daysInMonth=_,Pd.week=Pd.weeks=pa,Pd.isoWeek=Pd.isoWeeks=qa,Pd.weeksInYear=Kb,Pd.isoWeeksInYear=Jb,Pd.date=Fd,Pd.day=Pd.days=Rb,Pd.weekday=Sb,Pd.isoWeekday=Tb,Pd.dayOfYear=sa,Pd.hour=Pd.hours=Kd,Pd.minute=Pd.minutes=Ld,Pd.second=Pd.seconds=Md,Pd.millisecond=Pd.milliseconds=Od,Pd.utcOffset=Pa,Pd.utc=Ra,Pd.local=Sa,Pd.parseZone=Ta,Pd.hasAlignedHourOffset=Ua,Pd.isDST=Va,Pd.isDSTShifted=Wa,Pd.isLocal=Xa,Pd.isUtcOffset=Ya,Pd.isUtc=Za,Pd.isUTC=Za,Pd.zoneAbbr=Zb,Pd.zoneName=$b,Pd.dates=ca("dates accessor is deprecated. Use date instead.",Fd),Pd.months=ca("months accessor is deprecated. Use month instead",$),Pd.years=ca("years accessor is deprecated. Use year instead",vd),Pd.zone=ca("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",Qa);var Qd=Pd,Rd={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Sd={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"},Td="Invalid date",Ud="%d",Vd=/\d{1,2}/,Wd={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"},Xd=u.prototype;Xd._calendar=Rd,Xd.calendar=bc,Xd._longDateFormat=Sd,Xd.longDateFormat=cc,Xd._invalidDate=Td,Xd.invalidDate=dc,Xd._ordinal=Ud,Xd.ordinal=ec,Xd._ordinalParse=Vd,Xd.preparse=fc,Xd.postformat=fc,Xd._relativeTime=Wd,Xd.relativeTime=gc,Xd.pastFuture=hc,Xd.set=ic,Xd.months=W,Xd._months=od,Xd.monthsShort=X,Xd._monthsShort=pd,Xd.monthsParse=Y,Xd.week=ma,Xd._week=wd,Xd.firstDayOfYear=oa,Xd.firstDayOfWeek=na,Xd.weekdays=Nb,Xd._weekdays=Gd,Xd.weekdaysMin=Pb,Xd._weekdaysMin=Id,Xd.weekdaysShort=Ob,Xd._weekdaysShort=Hd,Xd.weekdaysParse=Qb,Xd.isPM=Wb,Xd._meridiemParse=Jd,Xd.meridiem=Xb,y("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(a){var b=a%10,c=1===s(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th";return a+c}}),a.lang=ca("moment.lang is deprecated. Use moment.locale instead.",y),a.langData=ca("moment.langData is deprecated. Use moment.localeData instead.",A);var Yd=Math.abs,Zd=Ac("ms"),$d=Ac("s"),_d=Ac("m"),ae=Ac("h"),be=Ac("d"),ce=Ac("w"),de=Ac("M"),ee=Ac("y"),fe=Cc("milliseconds"),ge=Cc("seconds"),he=Cc("minutes"),ie=Cc("
_[b]=a[b]}else _[b]=a[b];{if("string"!=typeof a||!a)return D(_);if(y.call(_,a))return _[a]}},ba=function(){return Va(),{browser:E(j,["userAgent","platform","appName"]),flash:F(P,["bridge"]),zeroclipboard:{version:Xa.version,config:Xa.config()}}},ca=function(){return!!(P.disabled||P.outdated||P.sandboxed||P.unavailable||P.degraded||P.deactivated)},da=function(a,b){var c,f,g,h={};if("string"==typeof a&&a)g=a.toLowerCase().split(/\s+/);else if("object"==typeof a&&a&&"undefined"==typeof b)for(c in a)y.call(a,c)&&"string"==typeof c&&c&&"function"==typeof a[c]&&Xa.on(c,a[c]);if(g&&g.length){for(c=0,f=g.length;f>c;c++)a=g[c].replace(/^on/,""),h[a]=!0,R[a]||(R[a]=[]),R[a].push(b);if(h.ready&&P.ready&&Xa.emit({type:"ready"}),h.error){for(c=0,f=Y.length;f>c;c++)if(P[Y[c].replace(/^flash-/,"")]===!0){Xa.emit({type:"error",name:Y[c]});break}e!==d&&Xa.version!==e&&Xa.emit({type:"error",name:"version-mismatch",jsVersion:Xa.version,swfVersion:e})}}return Xa},ea=function(a,b){var c,d,e,f,g;if(0===arguments.length)f=w(R);else if("string"==typeof a&&a)f=a.split(/\s+/);else if("object"==typeof a&&a&&"undefined"==typeof b)for(c in a)y.call(a,c)&&"string"==typeof c&&c&&"function"==typeof a[c]&&Xa.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=R[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 Xa},fa=function(a){var b;return b="string"==typeof a&&a?D(R[a])||null:D(R)},ga=function(a){var b,c,d;return a=qa(a),a&&!xa(a)?"ready"===a.type&&P.overdue===!0?Xa.emit({type:"error",name:"flash-overdue"}):(b=C({},a),va.call(this,b),"copy"===a.type&&(d=Fa(S),c=d.data,T=d.formatMap),c):void 0},ha=function(){var a=P.sandboxed;if(Va(),"boolean"!=typeof P.ready&&(P.ready=!1),P.sandboxed!==a&&P.sandboxed===!0)P.ready=!1,Xa.emit({type:"error",name:"flash-sandboxed"});else if(!Xa.isFlashUnusable()&&null===P.bridge){var b=_.flashLoadTimeout;"number"==typeof b&&b>=0&&(U=k(function(){"boolean"!=typeof P.deactivated&&(P.deactivated=!0),P.deactivated===!0&&Xa.emit({type:"error",name:"flash-deactivated"})},b)),P.overdue=!1,Da()}},ia=function(){Xa.clearData(),Xa.blur(),Xa.emit("destroy"),Ea(),Xa.off()},ja=function(a,b){var c;if("object"==typeof a&&a&&"undefined"==typeof b)c=a,Xa.clearData();else{if("string"!=typeof a||!a)return;c={},c[a]=b}for(var d in c)"string"==typeof d&&d&&y.call(c,d)&&"string"==typeof c[d]&&c[d]&&(S[d]=c[d])},ka=function(a){"undefined"==typeof a?(G(S),T=null):"string"==typeof a&&y.call(S,a)&&delete S[a]},la=function(a){return"undefined"==typeof a?D(S):"string"==typeof a&&y.call(S,a)?S[a]:void 0},ma=function(a){if(a&&1===a.nodeType){f&&(Na(f,_.activeClass),f!==a&&Na(f,_.hoverClass)),f=a,Ma(a,_.hoverClass);var b=a.getAttribute("title")||_.title;if("string"==typeof b&&b){var c=Ca(P.bridge);c&&c.setAttribute("title",b)}var d=_.forceHandCursor===!0||"pointer"===Oa(a,"cursor");Ta(d),Sa()}},na=function(){var a=Ca(P.bridge);a&&(a.removeAttribute("title"),a.style.left="0px",a.style.top="-9999px",a.style.width="1px",a.style.height="1px"),f&&(Na(f,_.hoverClass),Na(f,_.activeClass),f=null)},oa=function(){return f||null},pa=function(a){return"string"==typeof a&&a&&/^[A-Za-z][A-Za-z0-9_:\-\.]*$/.test(a)},qa=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=g),C(a,{type:b,target:a.target||f||null,relatedTarget:a.relatedTarget||null,currentTarget:P&&P.bridge||null,timeStamp:a.timeStamp||v()||null});var c=W[a.type];return"error"===a.type&&a.name&&c&&(c=c[a.name]),c&&(a.message=c),"ready"===a.type&&C(a,{target:null,version:P.version}),"error"===a.type&&(Z.test(a.name)&&C(a,{target:null,minimumVersion:Q}),$.test(a.name)&&C(a,{version:P.version})),"copy"===a.type&&(a.clipboardData={setData:Xa.setData,clearData:Xa.clearData}),"aftercopy"===a.type&&(a=Ga(a,T)),a.target&&!a.relatedTarget&&(a.relatedTarget=ra(a.target)),sa(a)}},ra=function(a){var b=a&&a.getAttribute&&a.getAttribu