diff --git a/examples/bundle.js.map b/examples/bundle.js.map index 092315d..c18e63b 100644 --- a/examples/bundle.js.map +++ b/examples/bundle.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///bundle.js","webpack:///webpack/bootstrap 81f8c7abe755aba165bc","webpack:///./index.js","webpack:///../src/index.js","webpack:///../src/infinite-tree.js","webpack:///../~/webpack/~/node-libs-browser/~/events/events.js","webpack:///../~/clusterize.js/clusterize.js","webpack:///../~/flattree/lib/index.js","webpack:///../~/flattree/lib/flatten.js","webpack:///../~/flattree/lib/extend.js","webpack:///../~/flattree/lib/node.js","webpack:///../src/lookup-table.js","webpack:///../src/renderer.js","webpack:///../src/helper.js","webpack:///./renderer.js","webpack:///../src/index.styl?cdde","webpack:///../src/index.styl","webpack:///../~/css-loader/lib/css-base.js","webpack:///../~/style-loader/addStyles.js"],"names":["modules","__webpack_require__","moduleId","installedModules","exports","module","id","loaded","call","m","c","p","_interopRequireDefault","obj","__esModule","default","_src","_src2","_renderer","_renderer2","_helper","data","source","i","push","JSON","parse","replace","updatePreview","node","el","document","querySelector","innerHTML","stringify","label","children","length","parent","state","tree","autoOpen","droppable","rowRenderer","selectable","shouldSelectNode","getSelectedNode","on","progress","style","width","console","log","e","dataTransfer","getData","quoteattr","loadData","selectNode","getChildNodes","draggableElement","addEventListener","preventDefault","stopPropagation","dragDrop","effectAllowed","target","srcElement","setData","window","_infiniteTree","_infiniteTree2","_classCallCheck","instance","Constructor","TypeError","_possibleConstructorReturn","self","ReferenceError","_inherits","subClass","superClass","prototype","Object","create","constructor","value","enumerable","writable","configurable","setPrototypeOf","__proto__","_typeof","Symbol","iterator","_events","_events2","_clusterize","_clusterize2","_flattree","_lookupTable","_lookupTable2","ensureNodeInstance","Node","Error","extend","_len","arguments","sources","Array","_key","undefined","output","index","key","hasOwnProperty","InfiniteTree","_events$EventEmitter","options","this","_this","defaultRowRenderer","openNodes","rootNode","selectedNode","clusterize","nodeTable","nodes","rows","scrollElement","contentElement","dragoverElement","contentListener","click","itemTarget","handleToggler","currentTarget","parentElement","className","indexOf","getAttribute","getNodeById","toggleNode","dragenter","removeClass","hasAttribute","canDrop","match","addClass","dragend","dragover","dropEffect","drop","emit","error","_this2","createElement","classNames","appendChild","tag","scrollElem","contentElem","no_data_class","callbacks","clusterWillChange","clusterChanged","scrollingProgress","destroy","removeEventListener","clear","firstChild","removeChild","containerElement","addChildNodeAt","newNode","parentNode","_this3","Number","splice","deleteCount","total","flatten","getChildAt","map","parentOffset","apply","concat","flattenNode","forEach","set","update","appendChildNode","closeNode","nodeIndex","selectedIndex","rangeFrom","rangeTo","open","filter","hasChildren","flattenChildNodes","list","getFirstChild","getNextSibling","getParent","get","getOpenNodes","slice","getRootNode","insertNodeAfter","referenceNode","insertNodeBefore","_this4","openAllNodes","openNode","_this5","removeChildNodes","_this6","parentNodeIndex","childNodes","unset","removeNode","_this7","getPreviousSibling","scrollToNode","querySelectorAll","rowHeight","offsetHeight","scrollTop","_options","selected","_selectedNode","_selectedIndex","toString","traverse","s","_loop","keys","join","updateNode","_node","EventEmitter","_maxListeners","isFunction","arg","isNumber","isObject","isUndefined","defaultMaxListeners","setMaxListeners","n","isNaN","type","er","handler","len","args","listeners","addListener","listener","newListener","warned","trace","once","g","removeListener","fired","position","removeAllListeners","ret","listenerCount","evlistener","emitter","name","definition","evt","element","fnc","attachEvent","off","detachEvent","isArray","arr","getStyle","prop","elem","getComputedStyle","currentStyle","ie","v","all","documentMode","is_mac","navigator","platform","toLowerCase","Clusterize","defaults","item_height","block_height","rows_in_block","rows_in_cluster","cluster_height","blocks_in_cluster","content_tag","show_no_data_row","no_data_text","keep_parity","scroll_top","option","elems","getElementById","content_elem","setAttribute","fetchMarkup","cache","bottom","scroll_elem","exploreEnvironment","insertToDOM","last_cluster","scroll_debounce","pointer_events_set","scrollEv","pointerEvents","clearTimeout","setTimeout","getClusterNum","getScrollProgress","resize_debounce","resizeEv","refresh","clean","html","generateEmptyRow","getRowsHeight","new_rows","getRowsAmount","add","where","_new_rows","append","prepend","rows_nodes","shift","outerHTML","opts","tagName","prev_item_height","Math","floor","parseInt","td","empty_row","no_data_content","createTextNode","generate","cluster_num","rows_len","top_offset","bottom_offset","rows_above","items_start","max","items_end","this_cluster_rows","renderExtraTag","class_name","height","clusterize_prefix","this_cluster_content_changed","checkChanges","only_bottom_offset_changed","layout","lastChild","last","div","child_nodes","ii","changed","_flatten","_flatten2","_node2","_extend","_extend2","stack","pool","throwOnError","firstNode","depth","path","prefixMask","subtotal","_p$state","_p$state$total","isLastChild","_stack$pop","pop","current","prefix","mask","parentDidOpen","_p","_p2","getChildren","getLastChild","hasNextSibling","LookupTable","has","treeOptions","_state$selected","childrenLength","more","togglerContent","toggler","buildHTML","class","title","treeNode","aria-id","aria-expanded","aria-depth","aria-path","aria-selected","aria-children","aria-total","tree-selected","returnValue","cancelBubble","dispatchEvent","eventType","createEvent","initEvent","hasClass","classes","split","toggleClass","ok","preserveCR","attrs","h","attr","props","icon","glyphicon-folder-open","glyphicon-folder-close","glyphicon-file","count","treeNodeAttributes","content","locals","result","item","mediaQuery","alreadyImportedModules","addStylesToDom","styles","domStyle","stylesInDom","refs","j","parts","addStyle","listToStyles","newStyles","css","media","sourceMap","part","insertStyleElement","styleElement","head","getHeadElement","lastStyleElementInsertedAtTop","styleElementsInsertedAtTop","insertAt","nextSibling","insertBefore","removeStyleElement","idx","createStyleElement","createLinkElement","linkElement","rel","remove","singleton","styleIndex","singletonCounter","singletonElement","applyToSingletonTag","bind","URL","createObjectURL","revokeObjectURL","Blob","btoa","updateLink","href","applyToTag","newObj","styleSheet","cssText","replaceText","cssNode","unescape","encodeURIComponent","blob","oldSrc","memoize","fn","memo","isOldIE","test","userAgent","getElementsByTagName","newList","mayRemove","textStore","replacement","Boolean"],"mappings":"CAAS,SAAUA,SCInB,QAAAC,qBAAAC,UAGA,GAAAC,iBAAAD,UACA,MAAAC,kBAAAD,UAAAE,OAGA,IAAAC,QAAAF,iBAAAD,WACAE,WACAE,GAAAJ,S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A,WACA,MAAA7d,UAAAwb,MAAAxb,SAAAme,qBAAA,aAEA1B,iBAAA,KACAD,iBAAA,EACAb,6BAEArd,QAAAD,QAAA,SAAAqM,KAAAnF,SAEA,mBAAAvF,UAAA,SAAAyE,OAAA,+DAGAc,qBAGA,mBAAAA,SAAA+W,YAAA/W,QAAA+W,UAAA0B,WAGA,mBAAAzY,SAAAqW,WAAArW,QAAAqW,SAAA,SAEA,IAAAnB,QAAAO,aAAAtQ,KAGA,OAFA8P,gBAAAC,OAAAlV,SAEA,SAAA6Y,SAEA,OADAC,cACA7e,EAAA,EAAgBA,EAAAib,OAAAna,OAAmBd,IAAA,CACnC,GAAA6a,MAAAI,OAAAjb,GACAkb,SAAAC,YAAAN,KAAA9b,GACAmc,UAAAE,OACAyD,UAAA5e,KAAAib,UAEA,GAAA0D,QAAA,CACA,GAAAnD,WAAAD,aAAAoD,QACA5D,gBAAAS,UAAA1V,SAEA,OAAA/F,GAAA,EAAgBA,EAAA6e,UAAA/d,OAAsBd,IAAA,CACtC,GAAAkb,UAAA2D,UAAA7e,EACA,QAAAkb,SAAAE,KAAA,CACA,OAAAC,GAAA,EAAkBA,EAAAH,SAAAI,MAAAxa,OAA2Bua,IAC7CH,SAAAI,MAAAD,WACAF,aAAAD,SAAAnc,OAiIA,IAAAgf,aAAA,WACA,GAAAe,aAEA,iBAAApZ,MAAAqZ,aAEA,MADAD,WAAApZ,OAAAqZ,YACAD,UAAA/T,OAAAiU,SAAAzR,KAAA","file":"bundle.js","sourcesContent":["/******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId])\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\texports: {},\n/******/ \t\t\tid: moduleId,\n/******/ \t\t\tloaded: false\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.loaded = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar _src = __webpack_require__(1);\n\t\n\tvar _src2 = _interopRequireDefault(_src);\n\t\n\tvar _renderer = __webpack_require__(12);\n\t\n\tvar _renderer2 = _interopRequireDefault(_renderer);\n\t\n\t__webpack_require__(13);\n\t\n\tvar _helper = __webpack_require__(11);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\tvar data = [];\n\tvar source = '{\"id\":\"\",\"label\":\"\",\"props\":{\"droppable\":true},\"children\":[{\"id\":\"alpha\",\"label\":\"Alpha\",\"props\":{\"droppable\":true}},{\"id\":\"bravo\",\"label\":\"Bravo\",\"props\":{\"droppable\":true},\"children\":[{\"id\":\"charlie\",\"label\":\"Charlie\",\"props\":{\"droppable\":true},\"children\":[{\"id\":\"delta\",\"label\":\"Delta\",\"props\":{\"droppable\":true},\"children\":[{\"id\":\"echo\",\"label\":\"Echo\",\"props\":{\"droppable\":true}},{\"id\":\"foxtrot\",\"label\":\"Foxtrot\",\"props\":{\"droppable\":true}}]},{\"id\":\"golf\",\"label\":\"Golf\",\"props\":{\"droppable\":true}}]},{\"id\":\"hotel\",\"label\":\"Hotel\",\"props\":{\"droppable\":true},\"children\":[{\"id\":\"india\",\"label\":\"India\",\"props\":{\"droppable\":true},\"children\":[{\"id\":\"juliet\",\"label\":\"Juliet\",\"props\":{\"droppable\":true}}]}]},{\"id\":\"kilo\",\"label\":\"Kilo\",\"props\":{\"droppable\":true}}]}]}';\n\t\n\tfor (var i = 0; i < 1000; ++i) {\n\t data.push(JSON.parse(source.replace(/\"(id|label)\":\"([^\"]*)\"/g, '\"$1\": \"$2.' + i + '\"')));\n\t}\n\t\n\tvar updatePreview = function updatePreview(node) {\n\t var el = document.querySelector('#preview');\n\t if (node) {\n\t el.innerHTML = JSON.stringify({\n\t id: node.id,\n\t label: node.label,\n\t children: node.children ? node.children.length : 0,\n\t parent: node.parent ? node.parent.id : null,\n\t state: node.state\n\t }, null, 2).replace(/\\n/g, '
').replace(/\\s/g, ' ');\n\t } else {\n\t el.innerHTML = '';\n\t }\n\t};\n\t\n\tvar tree = new _src2['default']({\n\t autoOpen: true, // Defaults to false\n\t droppable: true, // Defaults to false\n\t el: document.querySelector('#tree'),\n\t rowRenderer: _renderer2['default'],\n\t selectable: true, // Defaults to true\n\t shouldSelectNode: function shouldSelectNode(node) {\n\t // Defaults to null\n\t if (!node || node === tree.getSelectedNode()) {\n\t return false; // Return false to prevent from deselection\n\t }\n\t return true;\n\t }\n\t});\n\t\n\ttree.on('scrollProgress', function (progress) {\n\t document.querySelector('#scrolling-progress').style.width = progress + '%';\n\t});\n\ttree.on('update', function () {\n\t var node = tree.getSelectedNode();\n\t updatePreview(node);\n\t});\n\ttree.on('openNode', function (node) {\n\t console.log('openNode', node);\n\t});\n\ttree.on('closeNode', function (node) {\n\t console.log('closeNode', node);\n\t});\n\ttree.on('dropNode', function (node, e) {\n\t var source = e.dataTransfer.getData('text');\n\t console.log('Dragged an element ' + JSON.stringify(source) + ' and dropped to ' + JSON.stringify(node.label));\n\t document.querySelector('#dropped-result').innerHTML = 'Dropped to ' + (0, _helper.quoteattr)(node.label) + '';\n\t});\n\ttree.on('selectNode', function (node) {\n\t updatePreview(node);\n\t});\n\t\n\ttree.loadData(data);\n\t\n\t// Select the first node\n\ttree.selectNode(tree.getChildNodes()[0]);\n\t\n\t// Draggable Element\n\tvar draggableElement = document.querySelector('#draggable-element');\n\t\n\t// http://stackoverflow.com/questions/5500615/internet-explorer-9-drag-and-drop-dnd\n\t(0, _helper.addEventListener)(draggableElement, 'selectstart', function (e) {\n\t (0, _helper.preventDefault)(e);\n\t (0, _helper.stopPropagation)(e);\n\t draggableElement.dragDrop();\n\t return false;\n\t});\n\t\n\t(0, _helper.addEventListener)(draggableElement, 'dragstart', function (e) {\n\t e.dataTransfer.effectAllowed = 'move';\n\t var target = e.target || e.srcElement;\n\t e.dataTransfer.setData('text', target.id);\n\t document.querySelector('#dropped-result').innerHTML = '';\n\t});\n\t\n\t(0, _helper.addEventListener)(draggableElement, 'dragend', function (e) {});\n\t\n\twindow.tree = tree;\n\n/***/ },\n/* 1 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar _infiniteTree = __webpack_require__(2);\n\t\n\tvar _infiniteTree2 = _interopRequireDefault(_infiniteTree);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\tmodule.exports = _infiniteTree2['default'];\n\n/***/ },\n/* 2 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\texports.__esModule = true;\n\t\n\tvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol ? \"symbol\" : typeof obj; };\n\t\n\tvar _events = __webpack_require__(3);\n\t\n\tvar _events2 = _interopRequireDefault(_events);\n\t\n\tvar _clusterize = __webpack_require__(4);\n\t\n\tvar _clusterize2 = _interopRequireDefault(_clusterize);\n\t\n\tvar _flattree = __webpack_require__(5);\n\t\n\tvar _lookupTable = __webpack_require__(9);\n\t\n\tvar _lookupTable2 = _interopRequireDefault(_lookupTable);\n\t\n\tvar _renderer = __webpack_require__(10);\n\t\n\tvar _helper = __webpack_require__(11);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\tvar ensureNodeInstance = function ensureNodeInstance(node) {\n\t if (!(node instanceof _flattree.Node)) {\n\t throw new Error('The node must be a Node object.');\n\t }\n\t return true;\n\t};\n\t\n\tvar extend = function extend(target) {\n\t for (var _len = arguments.length, sources = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n\t sources[_key - 1] = arguments[_key];\n\t }\n\t\n\t if (target === undefined || target === null) {\n\t throw new TypeError('Cannot convert undefined or null to object');\n\t }\n\t\n\t var output = Object(target);\n\t for (var index = 0; index < sources.length; index++) {\n\t var source = sources[index];\n\t if (source !== undefined && source !== null) {\n\t for (var key in source) {\n\t if (source.hasOwnProperty(key)) {\n\t output[key] = source[key];\n\t }\n\t }\n\t }\n\t }\n\t return output;\n\t};\n\t\n\tvar InfiniteTree = function (_events$EventEmitter) {\n\t _inherits(InfiniteTree, _events$EventEmitter);\n\t\n\t // Creates new InfiniteTree object.\n\t\n\t function InfiniteTree() {\n\t var options = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0];\n\t\n\t _classCallCheck(this, InfiniteTree);\n\t\n\t // Assign options\n\t\n\t var _this = _possibleConstructorReturn(this, _events$EventEmitter.call(this));\n\t\n\t _this.options = {\n\t autoOpen: false,\n\t droppable: false,\n\t el: null,\n\t rowRenderer: _renderer.defaultRowRenderer,\n\t selectable: true,\n\t shouldSelectNode: null\n\t };\n\t _this.state = {\n\t openNodes: [],\n\t rootNode: null,\n\t selectedNode: null\n\t };\n\t _this.clusterize = null;\n\t _this.nodeTable = new _lookupTable2['default']();\n\t _this.nodes = [];\n\t _this.rows = [];\n\t _this.scrollElement = null;\n\t _this.contentElement = null;\n\t _this.dragoverElement = null;\n\t _this.contentListener = {\n\t 'click': function click(e) {\n\t var itemTarget = null;\n\t var handleToggler = false;\n\t\n\t (0, _helper.stopPropagation)(e);\n\t\n\t if (e.target && e.currentTarget) {\n\t itemTarget = e.target !== e.currentTarget ? e.target : null;\n\t } else if (e.srcElement) {\n\t // IE8\n\t itemTarget = e.srcElement;\n\t }\n\t\n\t while (itemTarget && itemTarget.parentElement !== _this.contentElement) {\n\t if (itemTarget.className.indexOf('tree-toggler') >= 0) {\n\t handleToggler = true;\n\t }\n\t itemTarget = itemTarget.parentElement;\n\t }\n\t\n\t if (!itemTarget) {\n\t return;\n\t }\n\t\n\t var id = itemTarget.getAttribute('aria-id');\n\t var node = _this.getNodeById(id);\n\t\n\t if (!node) {\n\t return;\n\t }\n\t\n\t // Click on the toggler to open/close a tree node\n\t if (handleToggler) {\n\t _this.toggleNode(node);\n\t return;\n\t }\n\t\n\t _this.selectNode(node);\n\t },\n\t // https://developer.mozilla.org/en-US/docs/Web/Events/dragenter\n\t // The dragenter event is fired when a dragged element or text selection enters a valid drop target.\n\t 'dragenter': function dragenter(e) {\n\t var itemTarget = null;\n\t\n\t if (e.target && e.currentTarget) {\n\t itemTarget = e.target !== e.currentTarget ? e.target : null;\n\t } else if (e.srcElement) {\n\t // IE8\n\t itemTarget = e.srcElement;\n\t }\n\t\n\t while (itemTarget && itemTarget.parentElement !== _this.contentElement) {\n\t itemTarget = itemTarget.parentElement;\n\t }\n\t\n\t if (!itemTarget) {\n\t return;\n\t }\n\t\n\t if (_this.dragoverElement !== itemTarget) {\n\t (0, _helper.removeClass)(_this.dragoverElement, 'highlight'); // remove 'highlight' class\n\t _this.dragoverElement = null;\n\t\n\t if (!itemTarget.hasAttribute('droppable')) {\n\t return;\n\t }\n\t\n\t var canDrop = !itemTarget.getAttribute('droppable').match(/false/i);\n\t if (canDrop) {\n\t (0, _helper.addClass)(itemTarget, 'highlight');\n\t _this.dragoverElement = itemTarget;\n\t }\n\t }\n\t },\n\t // https://developer.mozilla.org/en-US/docs/Web/Events/dragend\n\t // The dragend event is fired when a drag operation is being ended (by releasing a mouse button or hitting the escape key).\n\t 'dragend': function dragend(e) {\n\t if (_this.dragoverElement) {\n\t (0, _helper.removeClass)(_this.dragoverElement, 'highlight'); // remove 'highlight' class\n\t _this.dragoverElement = null;\n\t }\n\t },\n\t // https://developer.mozilla.org/en-US/docs/Web/Events/dragover\n\t // The dragover event is fired when an element or text selection is being dragged over a valid drop target (every few hundred milliseconds).\n\t 'dragover': function dragover(e) {\n\t (0, _helper.preventDefault)(e);\n\t e.dataTransfer.dropEffect = 'move';\n\t return false;\n\t },\n\t // https://developer.mozilla.org/en-US/docs/Web/Events/drop\n\t // The drop event is fired when an element or text selection is dropped on a valid drop target.\n\t 'drop': function drop(e) {\n\t // prevent default action (open as link for some elements)\n\t (0, _helper.preventDefault)(e);\n\t\n\t if (_this.dragoverElement) {\n\t var id = _this.dragoverElement.getAttribute('aria-id');\n\t var node = _this.getNodeById(id);\n\t\n\t (0, _helper.removeClass)(_this.dragoverElement, 'highlight');\n\t _this.dragoverElement = null;\n\t\n\t _this.emit('dropNode', node, e);\n\t }\n\t }\n\t };\n\t _this.options = extend({}, _this.options, options);\n\t\n\t if (!_this.options.el) {\n\t console.error('Failed to initialize infinite-tree: el is not specified.', options);\n\t return _possibleConstructorReturn(_this);\n\t }\n\t\n\t _this.create();\n\t\n\t // Load tree data if it's provided\n\t if (options.data) {\n\t _this.loadData(options.data);\n\t }\n\t return _this;\n\t }\n\t\n\t InfiniteTree.prototype.create = function create() {\n\t var _this2 = this;\n\t\n\t if (!this.options.el) {\n\t throw new Error('The element option is not specified.');\n\t }\n\t\n\t var scrollElement = document.createElement('div');\n\t scrollElement.className = (0, _helper.classNames)('infinite-tree', 'infinite-tree-scroll');\n\t var contentElement = document.createElement('div');\n\t contentElement.className = (0, _helper.classNames)('infinite-tree', 'infinite-tree-content');\n\t\n\t scrollElement.appendChild(contentElement);\n\t this.options.el.appendChild(scrollElement);\n\t\n\t this.clusterize = new _clusterize2['default']({\n\t tag: 'div',\n\t rows: [],\n\t scrollElem: scrollElement,\n\t contentElem: contentElement,\n\t no_data_class: 'infinite-tree-no-data',\n\t callbacks: {\n\t // Will be called right before replacing previous cluster with new one.\n\t clusterWillChange: function clusterWillChange() {},\n\t // Will be called right after replacing previous cluster with new one.\n\t clusterChanged: function clusterChanged() {},\n\t // Will be called on scrolling. Returns progress position.\n\t scrollingProgress: function scrollingProgress(progress) {\n\t _this2.emit('scrollProgress', progress);\n\t }\n\t }\n\t });\n\t\n\t this.scrollElement = scrollElement;\n\t this.contentElement = contentElement;\n\t\n\t (0, _helper.addEventListener)(this.contentElement, 'click', this.contentListener.click);\n\t if (this.options.droppable) {\n\t (0, _helper.addEventListener)(document, 'dragend', this.contentListener.dragend);\n\t (0, _helper.addEventListener)(this.contentElement, 'dragenter', this.contentListener.dragenter);\n\t (0, _helper.addEventListener)(this.contentElement, 'dragover', this.contentListener.dragover);\n\t (0, _helper.addEventListener)(this.contentElement, 'drop', this.contentListener.drop);\n\t }\n\t };\n\t\n\t InfiniteTree.prototype.destroy = function destroy() {\n\t (0, _helper.removeEventListener)(this.contentElement, 'click', this.contentListener);\n\t if (this.options.droppable) {\n\t (0, _helper.removeEventListener)(document, 'dragend', this.contentListener.dragend);\n\t (0, _helper.removeEventListener)(this.contentElement, 'dragenter', this.contentListener.dragenter);\n\t (0, _helper.removeEventListener)(this.contentElement, 'dragover', this.contentListener.dragover);\n\t (0, _helper.removeEventListener)(this.contentElement, 'drop', this.contentListener.drop);\n\t }\n\t\n\t this.clear();\n\t\n\t if (this.clusterize) {\n\t this.clusterize.destroy(true); // True to remove all data from the list\n\t this.clusterize = null;\n\t }\n\t\n\t // Remove all child nodes\n\t while (this.contentElement.firstChild) {\n\t this.contentElement.removeChild(this.contentElement.firstChild);\n\t }\n\t while (this.scrollElement.firstChild) {\n\t this.scrollElement.removeChild(this.scrollElement.firstChild);\n\t }\n\t if (this.options.el) {\n\t var containerElement = this.options.el;\n\t while (containerElement.firstChild) {\n\t containerElement.removeChild(containerElement.firstChild);\n\t }\n\t }\n\t this.contentElement = null;\n\t this.scrollElement = null;\n\t };\n\t // Inserts a new child node to a parent node at the specified index.\n\t // * If the parent is null or undefined, inserts the child at the specified index in the top-level.\n\t // * If the parent has children, the method adds the child to it at the specified index.\n\t // * If the parent does not have children, the method adds the child to the parent.\n\t // * If the index value is greater than or equal to the number of children in the parent, the method adds the child at the end of the children.\n\t // @param {Object} newNode The new child node.\n\t // @param {number} index The 0-based index of where to insert the child node. Defaults to 0 for negative index.\n\t // @param {Node} parentNode The Node object that defines the parent node.\n\t // @return {boolean} Returns true on success, false otherwise.\n\t\n\t\n\t InfiniteTree.prototype.addChildNodeAt = function addChildNodeAt(newNode, index, parentNode) {\n\t var _this3 = this;\n\t\n\t // Defaults to rootNode if the parentNode is not specified\n\t parentNode = parentNode || this.state.rootNode;\n\t\n\t ensureNodeInstance(parentNode);\n\t\n\t if (!newNode) {\n\t return false;\n\t }\n\t index = Number(index) || 0;\n\t if (index < 0) {\n\t index = 0;\n\t }\n\t\n\t // Inserts the new child at the specified index\n\t newNode.parent = parentNode;\n\t parentNode.children.splice(index, 0, newNode);\n\t\n\t var deleteCount = parentNode.state.total;\n\t\n\t // Update index\n\t index = parentNode.children.indexOf(newNode);\n\t\n\t var nodes = (0, _flattree.flatten)(parentNode.children, { openNodes: this.state.openNodes });\n\t\n\t // Update newNode\n\t newNode = parentNode.getChildAt(index);\n\t\n\t var rows = nodes.map(function (node) {\n\t return _this3.options.rowRenderer(node, _this3.options);\n\t });\n\t var parentOffset = this.nodes.indexOf(parentNode);\n\t\n\t // Update nodes & rows\n\t this.nodes.splice.apply(this.nodes, [parentOffset + 1, deleteCount].concat(nodes));\n\t this.rows.splice.apply(this.rows, [parentOffset + 1, deleteCount].concat(rows));\n\t\n\t // Update the lookup table with newly added nodes\n\t this.flattenNode(newNode).forEach(function (node) {\n\t if (node.id !== undefined) {\n\t _this3.nodeTable.set(node.id, node);\n\t }\n\t });\n\t\n\t // Update the row corresponding to the parent node\n\t this.rows[parentOffset] = this.options.rowRenderer(parentNode, this.options);\n\t\n\t // Updates list with new data\n\t this.update();\n\t\n\t return true;\n\t };\n\t // Adds a node to the end of the list of children of a specified parent node.\n\t // * If the parent is null or undefined, inserts the child at the specified index in the top-level.\n\t // * If the parent has children, the method adds the child as the last child.\n\t // * If the parent does not have children, the method adds the child to the parent.\n\t // @param {Object} newNode The new child node.\n\t // @param {Node} parentNode The Node object that defines the parent node.\n\t // @return {boolean} Returns true on success, false otherwise.\n\t\n\t\n\t InfiniteTree.prototype.appendChildNode = function appendChildNode(newNode, parentNode) {\n\t // Defaults to rootNode if the parentNode is not specified\n\t parentNode = parentNode || this.state.rootNode;\n\t\n\t ensureNodeInstance(parentNode);\n\t\n\t var index = parentNode.children.length;\n\t return this.addChildNodeAt(newNode, index, parentNode);\n\t };\n\t // Clears the tree.\n\t\n\t\n\t InfiniteTree.prototype.clear = function clear() {\n\t this.clusterize.clear();\n\t this.nodeTable.clear();\n\t this.nodes = [];\n\t this.rows = [];\n\t this.state.openNodes = [];\n\t this.state.rootNode = null;\n\t this.state.selectedNode = null;\n\t };\n\t // Closes a node to hide its children.\n\t // @param {Node} node The Node object.\n\t // @return {boolean} Returns true on success, false otherwise.\n\t\n\t\n\t InfiniteTree.prototype.closeNode = function closeNode(node) {\n\t ensureNodeInstance(node);\n\t\n\t // Retrieve node index\n\t var nodeIndex = this.nodes.indexOf(node);\n\t if (nodeIndex < 0) {\n\t throw new Error('Invalid node index');\n\t }\n\t\n\t // Check if the closeNode action can be performed\n\t if (this.state.openNodes.indexOf(node) < 0) {\n\t return false;\n\t }\n\t\n\t // Keep selected node unchanged if \"node\" is equal to \"this.state.selectedNode\"\n\t if (this.state.selectedNode && this.state.selectedNode !== node) {\n\t // row #0 - node.0 => parent node (total=4)\n\t // row #1 - node.0.0 => close this node; next selected node (total=2)\n\t // row #2 node.0.0.0 => selected node (total=0)\n\t // row #3 node.0.0.1\n\t // row #4 node.0.1\n\t var selectedIndex = this.nodes.indexOf(this.state.selectedNode);\n\t var rangeFrom = nodeIndex + 1;\n\t var rangeTo = nodeIndex + node.state.total;\n\t\n\t if (rangeFrom <= selectedIndex && selectedIndex <= rangeTo) {\n\t this.selectNode(node);\n\t }\n\t }\n\t\n\t node.state.open = false; // Set the open state to false\n\t var openNodes = this.state.openNodes.filter(function (node) {\n\t return node.hasChildren() && node.state.open;\n\t });\n\t this.state.openNodes = openNodes;\n\t\n\t var deleteCount = node.state.total;\n\t\n\t // Subtract the deleteCount for all ancestors (parent, grandparent, etc.) of the current node\n\t for (var p = node; p !== null; p = p.parent) {\n\t p.state.total = p.state.total - deleteCount;\n\t }\n\t\n\t // Update nodes & rows\n\t this.nodes.splice(nodeIndex + 1, deleteCount);\n\t this.rows.splice(nodeIndex + 1, deleteCount);\n\t\n\t // Update the row corresponding to the node\n\t this.rows[nodeIndex] = this.options.rowRenderer(node, this.options);\n\t\n\t // Emit the 'closeNode' event\n\t this.emit('closeNode', node);\n\t\n\t // Updates list with new data\n\t this.update();\n\t\n\t return true;\n\t };\n\t // Flattens all child nodes of a parent node by performing full tree traversal using child-parent link.\n\t // No recursion or stack is involved.\n\t // @param {Node} parentNode The Node object that defines the parent node.\n\t // @return {array} Returns an array of Node objects containing all the child nodes of the parent node.\n\t\n\t\n\t InfiniteTree.prototype.flattenChildNodes = function flattenChildNodes(parentNode) {\n\t // Defaults to rootNode if the parentNode is not specified\n\t parentNode = parentNode || this.state.rootNode;\n\t\n\t ensureNodeInstance(parentNode);\n\t\n\t var list = [];\n\t\n\t // Ignore parent node\n\t var node = parentNode.getFirstChild();\n\t while (node) {\n\t list.push(node);\n\t if (node.hasChildren()) {\n\t node = node.getFirstChild();\n\t } else {\n\t // find the parent level\n\t while (node.getNextSibling() === null && node.parent !== parentNode) {\n\t // use child-parent link to get to the parent level\n\t node = node.getParent();\n\t }\n\t\n\t // Get next sibling\n\t node = node.getNextSibling();\n\t }\n\t }\n\t\n\t return list;\n\t };\n\t // Flattens a node by performing full tree traversal using child-parent link.\n\t // No recursion or stack is involved.\n\t // @param {Node} node The Node object.\n\t // @return {array} Returns a flattened list of Node objects.\n\t\n\t\n\t InfiniteTree.prototype.flattenNode = function flattenNode(node) {\n\t return [node].concat(this.flattenChildNodes(node));\n\t };\n\t // Gets a list of child nodes.\n\t // @param {Node} [parentNode] The Node object that defines the parent node. If null or undefined, returns a list of top level nodes.\n\t // @return {array} Returns an array of Node objects containing all the child nodes of the parent node.\n\t\n\t\n\t InfiniteTree.prototype.getChildNodes = function getChildNodes(parentNode) {\n\t // Defaults to rootNode if the parentNode is not specified\n\t parentNode = parentNode || this.state.rootNode;\n\t\n\t ensureNodeInstance(parentNode);\n\t\n\t return parentNode.children;\n\t };\n\t // Gets a node by its unique id. This assumes that you have given the nodes in the data a unique id.\n\t // @param {string|number} id An unique node id. A null value will be returned if the id doesn't match.\n\t // @return {Node} Returns a node the matches the id, null otherwise.\n\t\n\t\n\t InfiniteTree.prototype.getNodeById = function getNodeById(id) {\n\t var node = this.nodeTable.get(id);\n\t if (!node) {\n\t // Find the first node that matches the id\n\t node = this.nodes.filter(function (node) {\n\t return node.id === id;\n\t })[0];\n\t if (!node) {\n\t return null;\n\t }\n\t this.nodeTable.set(node.id, node);\n\t }\n\t return node;\n\t };\n\t // Gets an array of open nodes.\n\t // @return {array} Returns an array of Node objects containing open nodes.\n\t\n\t\n\t InfiniteTree.prototype.getOpenNodes = function getOpenNodes() {\n\t // returns a shallow copy of an array into a new array object.\n\t return this.state.openNodes.slice();\n\t };\n\t // Gets the root node.\n\t // @return {Node} Returns the root node, or null if empty.\n\t\n\t\n\t InfiniteTree.prototype.getRootNode = function getRootNode() {\n\t return this.state.rootNode;\n\t };\n\t // Gets the selected node.\n\t // @return {Node} Returns the selected node, or null if not selected.\n\t\n\t\n\t InfiniteTree.prototype.getSelectedNode = function getSelectedNode() {\n\t return this.state.selectedNode;\n\t };\n\t // Inserts the specified node after the reference node.\n\t // @param {Object} newNode The new sibling node.\n\t // @param {Node} referenceNode The Node object that defines the reference node.\n\t // @return {boolean} Returns true on success, false otherwise.\n\t\n\t\n\t InfiniteTree.prototype.insertNodeAfter = function insertNodeAfter(newNode, referenceNode) {\n\t ensureNodeInstance(referenceNode);\n\t var parentNode = referenceNode.getParent();\n\t var index = parentNode.children.indexOf(referenceNode) + 1;\n\t return this.addChildNodeAt(newNode, index, parentNode);\n\t };\n\t // Inserts the specified node before the reference node.\n\t // @param {Object} newNode The new sibling node.\n\t // @param {Node} referenceNode The Node object that defines the reference node.\n\t // @return {boolean} Returns true on success, false otherwise.\n\t\n\t\n\t InfiniteTree.prototype.insertNodeBefore = function insertNodeBefore(newNode, referenceNode) {\n\t ensureNodeInstance(referenceNode);\n\t var parentNode = referenceNode.getParent();\n\t var index = parentNode.children.indexOf(referenceNode);\n\t return this.addChildNodeAt(newNode, index, parentNode);\n\t };\n\t // Loads data in the tree.\n\t // @param {object|array} data The data is an object or array of objects that defines the node.\n\t\n\t\n\t InfiniteTree.prototype.loadData = function loadData() {\n\t var _this4 = this;\n\t\n\t var data = arguments.length <= 0 || arguments[0] === undefined ? [] : arguments[0];\n\t\n\t this.nodes = (0, _flattree.flatten)(data, { openAllNodes: this.options.autoOpen });\n\t\n\t // Clear lookup table\n\t this.nodeTable.clear();\n\t\n\t this.state.openNodes = this.nodes.filter(function (node) {\n\t return node.hasChildren() && node.state.open;\n\t });\n\t this.state.rootNode = function () {\n\t var node = arguments.length <= 0 || arguments[0] === undefined ? null : arguments[0];\n\t\n\t // Finding the root node\n\t while (node && node.parent !== null) {\n\t node = node.parent;\n\t }\n\t return node;\n\t }(this.nodes[0]);\n\t this.state.selectedNode = null;\n\t\n\t // Update the lookup table with newly added nodes\n\t this.flattenChildNodes(this.state.rootNode).forEach(function (node) {\n\t if (node.id !== undefined) {\n\t _this4.nodeTable.set(node.id, node);\n\t }\n\t });\n\t\n\t // Update rows\n\t this.rows = this.nodes.map(function (node) {\n\t return _this4.options.rowRenderer(node, _this4.options);\n\t });\n\t\n\t // Updates list with new data\n\t this.update();\n\t };\n\t // Opens a node to display its children.\n\t // @param {Node} node The Node object.\n\t // @return {boolean} Returns true on success, false otherwise.\n\t\n\t\n\t InfiniteTree.prototype.openNode = function openNode(node) {\n\t var _this5 = this;\n\t\n\t ensureNodeInstance(node);\n\t\n\t // Retrieve node index\n\t var nodeIndex = this.nodes.indexOf(node);\n\t if (nodeIndex < 0) {\n\t throw new Error('Invalid node index');\n\t }\n\t\n\t // Check if the openNode action can be performed\n\t if (this.state.openNodes.indexOf(node) >= 0) {\n\t return false;\n\t }\n\t\n\t node.state.open = true; // Set node.state.open to true\n\t var openNodes = [node].concat(this.state.openNodes); // the most recently used items first\n\t this.state.openNodes = openNodes;\n\t\n\t var nodes = (0, _flattree.flatten)(node.children, { openNodes: this.state.openNodes });\n\t var rows = nodes.map(function (node) {\n\t return _this5.options.rowRenderer(node, _this5.options);\n\t });\n\t\n\t // Update nodes & rows\n\t this.nodes.splice.apply(this.nodes, [nodeIndex + 1, 0].concat(nodes));\n\t this.rows.splice.apply(this.rows, [nodeIndex + 1, 0].concat(rows));\n\t\n\t // Update the row corresponding to the node\n\t this.rows[nodeIndex] = this.options.rowRenderer(node, this.options);\n\t\n\t // Add all child nodes to the lookup table if the first child does not exist in the lookup table\n\t if (nodes.length > 0 && !this.nodeTable.get(nodes[0])) {\n\t nodes.forEach(function (node) {\n\t if (node.id !== undefined) {\n\t _this5.nodeTable.set(node.id, node);\n\t }\n\t });\n\t }\n\t\n\t // Emit the 'openNode' event\n\t this.emit('openNode', node);\n\t\n\t // Updates list with new data\n\t this.update();\n\t\n\t return true;\n\t };\n\t // Removes all child nodes from a parent node.\n\t // @param {Node} parentNode The Node object that defines the parent node.\n\t // @return {boolean} Returns true on success, false otherwise.\n\t\n\t\n\t InfiniteTree.prototype.removeChildNodes = function removeChildNodes(parentNode) {\n\t var _this6 = this;\n\t\n\t ensureNodeInstance(parentNode);\n\t\n\t if (parentNode.children.length === 0) {\n\t return false;\n\t }\n\t\n\t var parentNodeIndex = this.nodes.indexOf(parentNode);\n\t\n\t // Update selected node\n\t if (parentNodeIndex >= 0 && this.state.selectedNode) {\n\t // row #0 - node.0 => parent node (total=4)\n\t // row #1 - node.0.0\n\t // row #2 node.0.0.0 => current selected node\n\t // row #3 node.0.0.1\n\t // row #4 node.0.1\n\t var selectedIndex = this.nodes.indexOf(this.state.selectedNode);\n\t var rangeFrom = parentNodeIndex + 1;\n\t var rangeTo = parentNodeIndex + parentNode.state.total;\n\t\n\t if (rangeFrom <= selectedIndex && selectedIndex <= rangeTo) {\n\t this.selectNode(parentNode);\n\t }\n\t }\n\t\n\t // Update parent node\n\t parentNode.children = [];\n\t parentNode.state.open = parentNode.state.open && parentNode.children.length > 0;\n\t\n\t // Get the number of nodes to be removed\n\t var deleteCount = parentNode.state.total;\n\t\n\t // Subtract the deleteCount for all ancestors (parent, grandparent, etc.) of the current node\n\t for (var p = parentNode; p !== null; p = p.parent) {\n\t p.state.total = p.state.total - deleteCount;\n\t }\n\t\n\t if (parentNodeIndex >= 0) {\n\t // Update nodes & rows\n\t this.nodes.splice(parentNodeIndex + 1, deleteCount);\n\t this.rows.splice(parentNodeIndex + 1, deleteCount);\n\t\n\t // Update the row corresponding to the parent node\n\t this.rows[parentNodeIndex] = this.options.rowRenderer(parentNode, this.options);\n\t }\n\t\n\t {\n\t (function () {\n\t // Update open nodes and lookup table\n\t var childNodes = _this6.flattenChildNodes(parentNode);\n\t\n\t _this6.state.openNodes = _this6.state.openNodes.filter(function (node) {\n\t return childNodes.indexOf(node) < 0;\n\t });\n\t\n\t childNodes.forEach(function (node) {\n\t _this6.nodeTable.unset(node.id);\n\t });\n\t })();\n\t }\n\t\n\t // Updates list with new data\n\t this.update();\n\t\n\t return true;\n\t };\n\t // Removes a node and all of its child nodes.\n\t // @param {Node} node The Node object.\n\t // @return {boolean} Returns true on success, false otherwise.\n\t\n\t\n\t InfiniteTree.prototype.removeNode = function removeNode(node) {\n\t var _this7 = this;\n\t\n\t ensureNodeInstance(node);\n\t\n\t var parentNode = node.parent;\n\t if (!parentNode) {\n\t return false;\n\t }\n\t\n\t // Retrieve node index\n\t var nodeIndex = this.nodes.indexOf(node);\n\t var parentNodeIndex = this.nodes.indexOf(parentNode);\n\t\n\t // Update selected node\n\t if (nodeIndex >= 0 && this.state.selectedNode) {\n\t // row #0 - node.0 => parent node (total=4)\n\t // row #1 - node.0.0 => remove this node (total=2)\n\t // row #2 node.0.0.0 => current selected node (total=0)\n\t // row #3 node.0.0.1\n\t // row #4 node.0.1 => next selected node (total=0)\n\t var selectedIndex = this.nodes.indexOf(this.state.selectedNode);\n\t var rangeFrom = nodeIndex;\n\t var rangeTo = nodeIndex + node.state.total + 1;\n\t\n\t if (rangeFrom <= selectedIndex && selectedIndex <= rangeTo) {\n\t // Change the selected node in the following order:\n\t // 1. next sibling node\n\t // 2. previous sibling node\n\t // 3. parent node\n\t var selectedNode = node.getNextSibling() || node.getPreviousSibling() || node.getParent();\n\t this.selectNode(selectedNode);\n\t }\n\t }\n\t\n\t // Update parent node\n\t parentNode.children.splice(parentNode.children.indexOf(node), 1);\n\t parentNode.state.open = parentNode.state.open && parentNode.children.length > 0;\n\t\n\t // Get the number of nodes to be removed\n\t var deleteCount = node.state.total + 1;\n\t\n\t // Subtract the deleteCount for all ancestors (parent, grandparent, etc.) of the current node\n\t for (var p = parentNode; p !== null; p = p.parent) {\n\t p.state.total = p.state.total - deleteCount;\n\t }\n\t\n\t if (nodeIndex >= 0) {\n\t // Update nodes & rows\n\t this.nodes.splice(nodeIndex, deleteCount);\n\t this.rows.splice(nodeIndex, deleteCount);\n\t }\n\t\n\t // Update the row corresponding to the parent node\n\t if (parentNodeIndex >= 0) {\n\t this.rows[parentNodeIndex] = this.options.rowRenderer(parentNode, this.options);\n\t }\n\t\n\t {\n\t (function () {\n\t // Update open nodes and lookup table\n\t var nodes = _this7.flattenNode(node);\n\t\n\t _this7.state.openNodes = _this7.state.openNodes.filter(function (node) {\n\t return nodes.indexOf(node) < 0;\n\t });\n\t\n\t nodes.forEach(function (node) {\n\t _this7.nodeTable.unset(node.id);\n\t });\n\t })();\n\t }\n\t\n\t // Updates list with new data\n\t this.update();\n\t\n\t return true;\n\t };\n\t // Sets the current scroll position to this node.\n\t // @param {Node} node The Node object.\n\t // @return {number} Returns the vertical scroll position, or -1 on error.\n\t\n\t\n\t InfiniteTree.prototype.scrollToNode = function scrollToNode(node) {\n\t ensureNodeInstance(node);\n\t\n\t // Retrieve node index\n\t var nodeIndex = this.nodes.indexOf(node);\n\t if (nodeIndex < 0) {\n\t return -1;\n\t }\n\t if (!this.contentElement) {\n\t return -1;\n\t }\n\t // Get the offset height of the first child element that contains the \"tree-item\" class\n\t var firstChild = this.contentElement.querySelectorAll('.tree-item')[0];\n\t var rowHeight = firstChild && firstChild.offsetHeight || 0;\n\t return this.scrollTop(nodeIndex * rowHeight);\n\t };\n\t // Gets (or sets) the current vertical position of the scroll bar.\n\t // @param {number} [value] An integer that indicates the new position to set the scroll bar to.\n\t // @return {number} Returns the vertical scroll position.\n\t\n\t\n\t InfiniteTree.prototype.scrollTop = function scrollTop(value) {\n\t if (!this.scrollElement) {\n\t return 0;\n\t }\n\t if (value !== undefined) {\n\t this.scrollElement.scrollTop = Number(value);\n\t }\n\t return this.scrollElement.scrollTop;\n\t };\n\t // Selects a node.\n\t // @param {Node} node The Node object. If null or undefined, deselects the current node.\n\t // @return {boolean} Returns true on success, false otherwise.\n\t\n\t\n\t InfiniteTree.prototype.selectNode = function selectNode() {\n\t var node = arguments.length <= 0 || arguments[0] === undefined ? null : arguments[0];\n\t var _options = this.options;\n\t var selectable = _options.selectable;\n\t var shouldSelectNode = _options.shouldSelectNode;\n\t\n\t\n\t if (!selectable) {\n\t return false;\n\t }\n\t if (typeof shouldSelectNode === 'function' && !shouldSelectNode(node)) {\n\t return false;\n\t }\n\t\n\t if (node === null) {\n\t // Deselect the current node\n\t if (this.state.selectedNode) {\n\t var selectedNode = this.state.selectedNode;\n\t var selectedIndex = this.nodes.indexOf(selectedNode);\n\t\n\t selectedNode.state.selected = false;\n\t this.rows[selectedIndex] = this.options.rowRenderer(selectedNode, this.options);\n\t this.state.selectedNode = null;\n\t\n\t // Emit the 'selectNode' event\n\t this.emit('selectNode', null);\n\t\n\t // Updates list with new data\n\t this.update();\n\t\n\t return true;\n\t }\n\t\n\t return false;\n\t }\n\t\n\t ensureNodeInstance(node);\n\t\n\t // Retrieve node index\n\t var nodeIndex = this.nodes.indexOf(node);\n\t if (nodeIndex < 0) {\n\t throw new Error('Invalid node index');\n\t }\n\t\n\t // Select this node\n\t if (this.state.selectedNode !== node) {\n\t node.state.selected = true;\n\t\n\t // Update the row corresponding to the node\n\t this.rows[nodeIndex] = this.options.rowRenderer(node, this.options);\n\t }\n\t\n\t // Deselect the current node\n\t if (this.state.selectedNode) {\n\t var _selectedNode = this.state.selectedNode;\n\t var _selectedIndex = this.nodes.indexOf(_selectedNode);\n\t _selectedNode.state.selected = false;\n\t this.rows[_selectedIndex] = this.options.rowRenderer(_selectedNode, this.options);\n\t }\n\t\n\t if (this.state.selectedNode !== node) {\n\t this.state.selectedNode = node;\n\t\n\t // Emit the 'selectNode' event\n\t this.emit('selectNode', node);\n\t } else {\n\t this.state.selectedNode = null;\n\t\n\t // Emit the 'selectNode' event\n\t this.emit('selectNode', null);\n\t }\n\t\n\t // Updates list with new data\n\t this.update();\n\t\n\t return true;\n\t };\n\t // Toggles a node to display or hide its children.\n\t // @param {Node} node The Node object.\n\t\n\t\n\t InfiniteTree.prototype.toggleNode = function toggleNode(node) {\n\t if (this.state.openNodes.indexOf(node) >= 0) {\n\t // close node\n\t this.closeNode(node);\n\t } else {\n\t // open node\n\t this.openNode(node);\n\t }\n\t };\n\t // Serializes the current state of a node to a JSON string.\n\t // @param {Node} node The Node object. If null, returns the whole tree.\n\t // @return {string} Returns a JSON string represented the tree.\n\t\n\t\n\t InfiniteTree.prototype.toString = function toString() {\n\t var node = arguments.length <= 0 || arguments[0] === undefined ? null : arguments[0];\n\t\n\t var traverse = function traverse(node) {\n\t var s = '[';\n\t if (node && node.children) {\n\t var _loop = function _loop(i) {\n\t var list = [];\n\t s = s + '{';\n\t Object.keys(node).forEach(function (key) {\n\t var value = node[key];\n\t if (key === 'parent') {\n\t // ignore parent\n\t return;\n\t }\n\t if (key === 'children') {\n\t // traverse child nodes\n\t list.push('\"' + key + '\":' + traverse(node.children[i]));\n\t return;\n\t }\n\t if (typeof value === 'string' || (typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object') {\n\t list.push('\"' + key + '\":' + JSON.stringify(value));\n\t } else {\n\t // primitive types\n\t list.push('\"' + key + '\":' + value);\n\t }\n\t });\n\t s = s + list.join(',');\n\t s = s + '}' + (i === node.children.length - 1 ? '' : ',');\n\t };\n\t\n\t for (var i = 0; i < node.children.length; ++i) {\n\t _loop(i);\n\t }\n\t }\n\t s = s + ']';\n\t return s;\n\t };\n\t\n\t if (!node) {\n\t node = this.state.rootNode;\n\t }\n\t\n\t return traverse(node);\n\t };\n\t // Updates the tree.\n\t\n\t\n\t InfiniteTree.prototype.update = function update() {\n\t // Update the list with new data\n\t this.clusterize.update(this.rows);\n\t\n\t // Emit the 'update' event\n\t this.emit('update');\n\t };\n\t // Updates the data of a node.\n\t // @param {Node} node The Node object.\n\t // @param {Object} data The data object.\n\t\n\t\n\t InfiniteTree.prototype.updateNode = function updateNode(node, data) {\n\t ensureNodeInstance(node);\n\t\n\t // The static attributes (i.e. children, parent, and state) are being protected\n\t var _node = node;\n\t var children = _node.children;\n\t var parent = _node.parent;\n\t var state = _node.state;\n\t\n\t node = extend(node, data, { children: children, parent: parent, state: state });\n\t\n\t // Retrieve node index\n\t var nodeIndex = this.nodes.indexOf(node);\n\t if (nodeIndex >= 0) {\n\t // Update the row corresponding to the node\n\t this.rows[nodeIndex] = this.options.rowRenderer(node, this.options);\n\t\n\t // Updates list with new data\n\t this.update();\n\t }\n\t };\n\t\n\t return InfiniteTree;\n\t}(_events2['default'].EventEmitter);\n\t\n\texports['default'] = InfiniteTree;\n\n/***/ },\n/* 3 */\n/***/ function(module, exports) {\n\n\t// Copyright Joyent, Inc. and other Node contributors.\n\t//\n\t// Permission is hereby granted, free of charge, to any person obtaining a\n\t// copy of this software and associated documentation files (the\n\t// \"Software\"), to deal in the Software without restriction, including\n\t// without limitation the rights to use, copy, modify, merge, publish,\n\t// distribute, sublicense, and/or sell copies of the Software, and to permit\n\t// persons to whom the Software is furnished to do so, subject to the\n\t// following conditions:\n\t//\n\t// The above copyright notice and this permission notice shall be included\n\t// in all copies or substantial portions of the Software.\n\t//\n\t// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n\t// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n\t// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n\t// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n\t// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n\t// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n\t// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\t\n\tfunction EventEmitter() {\n\t this._events = this._events || {};\n\t this._maxListeners = this._maxListeners || undefined;\n\t}\n\tmodule.exports = EventEmitter;\n\t\n\t// Backwards-compat with node 0.10.x\n\tEventEmitter.EventEmitter = EventEmitter;\n\t\n\tEventEmitter.prototype._events = undefined;\n\tEventEmitter.prototype._maxListeners = undefined;\n\t\n\t// By default EventEmitters will print a warning if more than 10 listeners are\n\t// added to it. This is a useful default which helps finding memory leaks.\n\tEventEmitter.defaultMaxListeners = 10;\n\t\n\t// Obviously not all Emitters should be limited to 10. This function allows\n\t// that to be increased. Set to zero for unlimited.\n\tEventEmitter.prototype.setMaxListeners = function(n) {\n\t if (!isNumber(n) || n < 0 || isNaN(n))\n\t throw TypeError('n must be a positive number');\n\t this._maxListeners = n;\n\t return this;\n\t};\n\t\n\tEventEmitter.prototype.emit = function(type) {\n\t var er, handler, len, args, i, listeners;\n\t\n\t if (!this._events)\n\t this._events = {};\n\t\n\t // If there is no 'error' event listener then throw.\n\t if (type === 'error') {\n\t if (!this._events.error ||\n\t (isObject(this._events.error) && !this._events.error.length)) {\n\t er = arguments[1];\n\t if (er instanceof Error) {\n\t throw er; // Unhandled 'error' event\n\t }\n\t throw TypeError('Uncaught, unspecified \"error\" event.');\n\t }\n\t }\n\t\n\t handler = this._events[type];\n\t\n\t if (isUndefined(handler))\n\t return false;\n\t\n\t if (isFunction(handler)) {\n\t switch (arguments.length) {\n\t // fast cases\n\t case 1:\n\t handler.call(this);\n\t break;\n\t case 2:\n\t handler.call(this, arguments[1]);\n\t break;\n\t case 3:\n\t handler.call(this, arguments[1], arguments[2]);\n\t break;\n\t // slower\n\t default:\n\t args = Array.prototype.slice.call(arguments, 1);\n\t handler.apply(this, args);\n\t }\n\t } else if (isObject(handler)) {\n\t args = Array.prototype.slice.call(arguments, 1);\n\t listeners = handler.slice();\n\t len = listeners.length;\n\t for (i = 0; i < len; i++)\n\t listeners[i].apply(this, args);\n\t }\n\t\n\t return true;\n\t};\n\t\n\tEventEmitter.prototype.addListener = function(type, listener) {\n\t var m;\n\t\n\t if (!isFunction(listener))\n\t throw TypeError('listener must be a function');\n\t\n\t if (!this._events)\n\t this._events = {};\n\t\n\t // To avoid recursion in the case that type === \"newListener\"! Before\n\t // adding it to the listeners, first emit \"newListener\".\n\t if (this._events.newListener)\n\t this.emit('newListener', type,\n\t isFunction(listener.listener) ?\n\t listener.listener : listener);\n\t\n\t if (!this._events[type])\n\t // Optimize the case of one listener. Don't need the extra array object.\n\t this._events[type] = listener;\n\t else if (isObject(this._events[type]))\n\t // If we've already got an array, just append.\n\t this._events[type].push(listener);\n\t else\n\t // Adding the second element, need to change to array.\n\t this._events[type] = [this._events[type], listener];\n\t\n\t // Check for listener leak\n\t if (isObject(this._events[type]) && !this._events[type].warned) {\n\t if (!isUndefined(this._maxListeners)) {\n\t m = this._maxListeners;\n\t } else {\n\t m = EventEmitter.defaultMaxListeners;\n\t }\n\t\n\t if (m && m > 0 && this._events[type].length > m) {\n\t this._events[type].warned = true;\n\t console.error('(node) warning: possible EventEmitter memory ' +\n\t 'leak detected. %d listeners added. ' +\n\t 'Use emitter.setMaxListeners() to increase limit.',\n\t this._events[type].length);\n\t if (typeof console.trace === 'function') {\n\t // not supported in IE 10\n\t console.trace();\n\t }\n\t }\n\t }\n\t\n\t return this;\n\t};\n\t\n\tEventEmitter.prototype.on = EventEmitter.prototype.addListener;\n\t\n\tEventEmitter.prototype.once = function(type, listener) {\n\t if (!isFunction(listener))\n\t throw TypeError('listener must be a function');\n\t\n\t var fired = false;\n\t\n\t function g() {\n\t this.removeListener(type, g);\n\t\n\t if (!fired) {\n\t fired = true;\n\t listener.apply(this, arguments);\n\t }\n\t }\n\t\n\t g.listener = listener;\n\t this.on(type, g);\n\t\n\t return this;\n\t};\n\t\n\t// emits a 'removeListener' event iff the listener was removed\n\tEventEmitter.prototype.removeListener = function(type, listener) {\n\t var list, position, length, i;\n\t\n\t if (!isFunction(listener))\n\t throw TypeError('listener must be a function');\n\t\n\t if (!this._events || !this._events[type])\n\t return this;\n\t\n\t list = this._events[type];\n\t length = list.length;\n\t position = -1;\n\t\n\t if (list === listener ||\n\t (isFunction(list.listener) && list.listener === listener)) {\n\t delete this._events[type];\n\t if (this._events.removeListener)\n\t this.emit('removeListener', type, listener);\n\t\n\t } else if (isObject(list)) {\n\t for (i = length; i-- > 0;) {\n\t if (list[i] === listener ||\n\t (list[i].listener && list[i].listener === listener)) {\n\t position = i;\n\t break;\n\t }\n\t }\n\t\n\t if (position < 0)\n\t return this;\n\t\n\t if (list.length === 1) {\n\t list.length = 0;\n\t delete this._events[type];\n\t } else {\n\t list.splice(position, 1);\n\t }\n\t\n\t if (this._events.removeListener)\n\t this.emit('removeListener', type, listener);\n\t }\n\t\n\t return this;\n\t};\n\t\n\tEventEmitter.prototype.removeAllListeners = function(type) {\n\t var key, listeners;\n\t\n\t if (!this._events)\n\t return this;\n\t\n\t // not listening for removeListener, no need to emit\n\t if (!this._events.removeListener) {\n\t if (arguments.length === 0)\n\t this._events = {};\n\t else if (this._events[type])\n\t delete this._events[type];\n\t return this;\n\t }\n\t\n\t // emit removeListener for all listeners on all events\n\t if (arguments.length === 0) {\n\t for (key in this._events) {\n\t if (key === 'removeListener') continue;\n\t this.removeAllListeners(key);\n\t }\n\t this.removeAllListeners('removeListener');\n\t this._events = {};\n\t return this;\n\t }\n\t\n\t listeners = this._events[type];\n\t\n\t if (isFunction(listeners)) {\n\t this.removeListener(type, listeners);\n\t } else if (listeners) {\n\t // LIFO order\n\t while (listeners.length)\n\t this.removeListener(type, listeners[listeners.length - 1]);\n\t }\n\t delete this._events[type];\n\t\n\t return this;\n\t};\n\t\n\tEventEmitter.prototype.listeners = function(type) {\n\t var ret;\n\t if (!this._events || !this._events[type])\n\t ret = [];\n\t else if (isFunction(this._events[type]))\n\t ret = [this._events[type]];\n\t else\n\t ret = this._events[type].slice();\n\t return ret;\n\t};\n\t\n\tEventEmitter.prototype.listenerCount = function(type) {\n\t if (this._events) {\n\t var evlistener = this._events[type];\n\t\n\t if (isFunction(evlistener))\n\t return 1;\n\t else if (evlistener)\n\t return evlistener.length;\n\t }\n\t return 0;\n\t};\n\t\n\tEventEmitter.listenerCount = function(emitter, type) {\n\t return emitter.listenerCount(type);\n\t};\n\t\n\tfunction isFunction(arg) {\n\t return typeof arg === 'function';\n\t}\n\t\n\tfunction isNumber(arg) {\n\t return typeof arg === 'number';\n\t}\n\t\n\tfunction isObject(arg) {\n\t return typeof arg === 'object' && arg !== null;\n\t}\n\t\n\tfunction isUndefined(arg) {\n\t return arg === void 0;\n\t}\n\n\n/***/ },\n/* 4 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/*! Clusterize.js - v0.16.0 - 2016-03-12\r\n\t* http://NeXTs.github.com/Clusterize.js/\r\n\t* Copyright (c) 2015 Denis Lukov; Licensed GPLv3 */\r\n\t\r\n\t;(function(name, definition) {\r\n\t if (true) module.exports = definition();\r\n\t else if (typeof define == 'function' && typeof define.amd == 'object') define(definition);\r\n\t else this[name] = definition();\r\n\t}('Clusterize', function() {\r\n\t \"use strict\"\r\n\t\r\n\t // detect ie9 and lower\r\n\t // https://gist.github.com/padolsey/527683#comment-786682\r\n\t var ie = (function(){\r\n\t for( var v = 3,\r\n\t el = document.createElement('b'),\r\n\t all = el.all || [];\r\n\t el.innerHTML = '',\r\n\t all[0];\r\n\t ){}\r\n\t return v > 4 ? v : document.documentMode;\r\n\t }()),\r\n\t is_mac = navigator.platform.toLowerCase().indexOf('mac') + 1;\r\n\t var Clusterize = function(data) {\r\n\t if( ! (this instanceof Clusterize))\r\n\t return new Clusterize(data);\r\n\t var self = this;\r\n\t\r\n\t var defaults = {\r\n\t item_height: 0,\r\n\t block_height: 0,\r\n\t rows_in_block: 50,\r\n\t rows_in_cluster: 0,\r\n\t cluster_height: 0,\r\n\t blocks_in_cluster: 4,\r\n\t tag: null,\r\n\t content_tag: null,\r\n\t show_no_data_row: true,\r\n\t no_data_class: 'clusterize-no-data',\r\n\t no_data_text: 'No data',\r\n\t keep_parity: true,\r\n\t callbacks: {},\r\n\t scroll_top: 0\r\n\t }\r\n\t\r\n\t // public parameters\r\n\t self.options = {};\r\n\t var options = ['rows_in_block', 'blocks_in_cluster', 'show_no_data_row', 'no_data_class', 'no_data_text', 'keep_parity', 'tag', 'callbacks'];\r\n\t for(var i = 0, option; option = options[i]; i++) {\r\n\t self.options[option] = typeof data[option] != 'undefined' && data[option] != null\r\n\t ? data[option]\r\n\t : defaults[option];\r\n\t }\r\n\t\r\n\t var elems = ['scroll', 'content'];\r\n\t for(var i = 0, elem; elem = elems[i]; i++) {\r\n\t self[elem + '_elem'] = data[elem + 'Id']\r\n\t ? document.getElementById(data[elem + 'Id'])\r\n\t : data[elem + 'Elem'];\r\n\t if( ! self[elem + '_elem'])\r\n\t throw new Error(\"Error! Could not find \" + elem + \" element\");\r\n\t }\r\n\t\r\n\t // tabindex forces the browser to keep focus on the scrolling list, fixes #11\r\n\t if( ! self.content_elem.hasAttribute('tabindex'))\r\n\t self.content_elem.setAttribute('tabindex', 0);\r\n\t\r\n\t // private parameters\r\n\t var rows = isArray(data.rows)\r\n\t ? data.rows\r\n\t : self.fetchMarkup(),\r\n\t cache = {data: '', bottom: 0},\r\n\t scroll_top = self.scroll_elem.scrollTop;\r\n\t\r\n\t // get row height\r\n\t self.exploreEnvironment(rows);\r\n\t\r\n\t // append initial data\r\n\t self.insertToDOM(rows, cache);\r\n\t\r\n\t // restore the scroll position\r\n\t self.scroll_elem.scrollTop = scroll_top;\r\n\t\r\n\t // adding scroll handler\r\n\t var last_cluster = false,\r\n\t scroll_debounce = 0,\r\n\t pointer_events_set = false,\r\n\t scrollEv = function() {\r\n\t // fixes scrolling issue on Mac #3\r\n\t if (is_mac) {\r\n\t if( ! pointer_events_set) self.content_elem.style.pointerEvents = 'none';\r\n\t pointer_events_set = true;\r\n\t clearTimeout(scroll_debounce);\r\n\t scroll_debounce = setTimeout(function () {\r\n\t self.content_elem.style.pointerEvents = 'auto';\r\n\t pointer_events_set = false;\r\n\t }, 50);\r\n\t }\r\n\t if (last_cluster != (last_cluster = self.getClusterNum()))\r\n\t self.insertToDOM(rows, cache);\r\n\t if (self.options.callbacks.scrollingProgress)\r\n\t self.options.callbacks.scrollingProgress(self.getScrollProgress());\r\n\t },\r\n\t resize_debounce = 0,\r\n\t resizeEv = function() {\r\n\t clearTimeout(resize_debounce);\r\n\t resize_debounce = setTimeout(self.refresh, 100);\r\n\t }\r\n\t on('scroll', self.scroll_elem, scrollEv);\r\n\t on('resize', window, resizeEv);\r\n\t\r\n\t // public methods\r\n\t self.destroy = function(clean) {\r\n\t off('scroll', self.scroll_elem, scrollEv);\r\n\t off('resize', window, resizeEv);\r\n\t self.html((clean ? self.generateEmptyRow() : rows).join(''));\r\n\t }\r\n\t self.refresh = function() {\r\n\t self.getRowsHeight(rows) && self.update(rows);\r\n\t }\r\n\t self.update = function(new_rows) {\r\n\t rows = isArray(new_rows)\r\n\t ? new_rows\r\n\t : [];\r\n\t var scroll_top = self.scroll_elem.scrollTop;\r\n\t // fixes #39\r\n\t if(rows.length * self.options.item_height < scroll_top) {\r\n\t self.scroll_elem.scrollTop = 0;\r\n\t last_cluster = 0;\r\n\t }\r\n\t self.insertToDOM(rows, cache);\r\n\t self.scroll_elem.scrollTop = scroll_top;\r\n\t }\r\n\t self.clear = function() {\r\n\t self.update([]);\r\n\t }\r\n\t self.getRowsAmount = function() {\r\n\t return rows.length;\r\n\t }\r\n\t self.getScrollProgress = function() {\r\n\t return this.options.scroll_top / (rows.length * this.options.item_height) * 100 || 0;\r\n\t }\r\n\t\r\n\t var add = function(where, _new_rows) {\r\n\t var new_rows = isArray(_new_rows)\r\n\t ? _new_rows\r\n\t : [];\r\n\t if( ! new_rows.length) return;\r\n\t rows = where == 'append'\r\n\t ? rows.concat(new_rows)\r\n\t : new_rows.concat(rows);\r\n\t self.insertToDOM(rows, cache);\r\n\t }\r\n\t self.append = function(rows) {\r\n\t add('append', rows);\r\n\t }\r\n\t self.prepend = function(rows) {\r\n\t add('prepend', rows);\r\n\t }\r\n\t }\r\n\t\r\n\t Clusterize.prototype = {\r\n\t constructor: Clusterize,\r\n\t // fetch existing markup\r\n\t fetchMarkup: function() {\r\n\t var rows = [], rows_nodes = this.getChildNodes(this.content_elem);\r\n\t while (rows_nodes.length) {\r\n\t rows.push(rows_nodes.shift().outerHTML);\r\n\t }\r\n\t return rows;\r\n\t },\r\n\t // get tag name, content tag name, tag height, calc cluster height\r\n\t exploreEnvironment: function(rows) {\r\n\t var opts = this.options;\r\n\t opts.content_tag = this.content_elem.tagName.toLowerCase();\r\n\t if( ! rows.length) return;\r\n\t if(ie && ie <= 9 && ! opts.tag) opts.tag = rows[0].match(/<([^>\\s/]*)/)[1].toLowerCase();\r\n\t if(this.content_elem.children.length <= 1) this.html(rows[0] + rows[0] + rows[0]);\r\n\t if( ! opts.tag) opts.tag = this.content_elem.children[0].tagName.toLowerCase();\r\n\t this.getRowsHeight(rows);\r\n\t },\r\n\t getRowsHeight: function(rows) {\r\n\t var opts = this.options,\r\n\t prev_item_height = opts.item_height;\r\n\t opts.cluster_height = 0\r\n\t if( ! rows.length) return;\r\n\t var nodes = this.content_elem.children;\r\n\t opts.item_height = nodes[Math.floor(nodes.length / 2)].offsetHeight;\r\n\t // consider table's border-spacing\r\n\t if(opts.tag == 'tr' && getStyle('borderCollapse', this.content_elem) != 'collapse')\r\n\t opts.item_height += parseInt(getStyle('borderSpacing', this.content_elem)) || 0;\r\n\t opts.block_height = opts.item_height * opts.rows_in_block;\r\n\t opts.rows_in_cluster = opts.blocks_in_cluster * opts.rows_in_block;\r\n\t opts.cluster_height = opts.blocks_in_cluster * opts.block_height;\r\n\t return prev_item_height != opts.item_height;\r\n\t },\r\n\t // get current cluster number\r\n\t getClusterNum: function () {\r\n\t this.options.scroll_top = this.scroll_elem.scrollTop;\r\n\t return Math.floor(this.options.scroll_top / (this.options.cluster_height - this.options.block_height)) || 0;\r\n\t },\r\n\t // generate empty row if no data provided\r\n\t generateEmptyRow: function() {\r\n\t var opts = this.options;\r\n\t if( ! opts.tag || ! opts.show_no_data_row) return [];\r\n\t var empty_row = document.createElement(opts.tag),\r\n\t no_data_content = document.createTextNode(opts.no_data_text), td;\r\n\t empty_row.className = opts.no_data_class;\r\n\t if(opts.tag == 'tr') {\r\n\t td = document.createElement('td');\r\n\t td.appendChild(no_data_content);\r\n\t }\r\n\t empty_row.appendChild(td || no_data_content);\r\n\t return [empty_row.outerHTML];\r\n\t },\r\n\t // generate cluster for current scroll position\r\n\t generate: function (rows, cluster_num) {\r\n\t var opts = this.options,\r\n\t rows_len = rows.length;\r\n\t if (rows_len < opts.rows_in_block) {\r\n\t return {\r\n\t top_offset: 0,\r\n\t bottom_offset: 0,\r\n\t rows_above: 0,\r\n\t rows: rows_len ? rows : this.generateEmptyRow()\r\n\t }\r\n\t }\r\n\t if( ! opts.cluster_height) {\r\n\t this.exploreEnvironment(rows);\r\n\t }\r\n\t var items_start = Math.max((opts.rows_in_cluster - opts.rows_in_block) * cluster_num, 0),\r\n\t items_end = items_start + opts.rows_in_cluster,\r\n\t top_offset = Math.max(items_start * opts.item_height, 0),\r\n\t bottom_offset = Math.max((rows_len - items_end) * opts.item_height, 0),\r\n\t this_cluster_rows = [],\r\n\t rows_above = items_start;\r\n\t if(top_offset < 1) {\r\n\t rows_above++;\r\n\t }\r\n\t for (var i = items_start; i < items_end; i++) {\r\n\t rows[i] && this_cluster_rows.push(rows[i]);\r\n\t }\r\n\t return {\r\n\t top_offset: top_offset,\r\n\t bottom_offset: bottom_offset,\r\n\t rows_above: rows_above,\r\n\t rows: this_cluster_rows\r\n\t }\r\n\t },\r\n\t renderExtraTag: function(class_name, height) {\r\n\t var tag = document.createElement(this.options.tag),\r\n\t clusterize_prefix = 'clusterize-';\r\n\t tag.className = [clusterize_prefix + 'extra-row', clusterize_prefix + class_name].join(' ');\r\n\t height && (tag.style.height = height + 'px');\r\n\t return tag.outerHTML;\r\n\t },\r\n\t // if necessary verify data changed and insert to DOM\r\n\t insertToDOM: function(rows, cache) {\r\n\t var data = this.generate(rows, this.getClusterNum()),\r\n\t this_cluster_rows = data.rows.join(''),\r\n\t this_cluster_content_changed = this.checkChanges('data', this_cluster_rows, cache),\r\n\t only_bottom_offset_changed = this.checkChanges('bottom', data.bottom_offset, cache),\r\n\t callbacks = this.options.callbacks,\r\n\t layout = [];\r\n\t\r\n\t if(this_cluster_content_changed) {\r\n\t if(data.top_offset) {\r\n\t this.options.keep_parity && layout.push(this.renderExtraTag('keep-parity'));\r\n\t layout.push(this.renderExtraTag('top-space', data.top_offset));\r\n\t }\r\n\t layout.push(this_cluster_rows);\r\n\t data.bottom_offset && layout.push(this.renderExtraTag('bottom-space', data.bottom_offset));\r\n\t callbacks.clusterWillChange && callbacks.clusterWillChange();\r\n\t this.html(layout.join(''));\r\n\t this.options.content_tag == 'ol' && this.content_elem.setAttribute('start', data.rows_above);\r\n\t callbacks.clusterChanged && callbacks.clusterChanged();\r\n\t } else if(only_bottom_offset_changed) {\r\n\t this.content_elem.lastChild.style.height = data.bottom_offset + 'px';\r\n\t }\r\n\t },\r\n\t // unfortunately ie <= 9 does not allow to use innerHTML for table elements, so make a workaround\r\n\t html: function(data) {\r\n\t var content_elem = this.content_elem;\r\n\t if(ie && ie <= 9 && this.options.tag == 'tr') {\r\n\t var div = document.createElement('div'), last;\r\n\t div.innerHTML = '' + data + '
';\r\n\t while((last = content_elem.lastChild)) {\r\n\t content_elem.removeChild(last);\r\n\t }\r\n\t var rows_nodes = this.getChildNodes(div.firstChild.firstChild);\r\n\t while (rows_nodes.length) {\r\n\t content_elem.appendChild(rows_nodes.shift());\r\n\t }\r\n\t } else {\r\n\t content_elem.innerHTML = data;\r\n\t }\r\n\t },\r\n\t getChildNodes: function(tag) {\r\n\t var child_nodes = tag.children, nodes = [];\r\n\t for (var i = 0, ii = child_nodes.length; i < ii; i++) {\r\n\t nodes.push(child_nodes[i]);\r\n\t }\r\n\t return nodes;\r\n\t },\r\n\t checkChanges: function(type, value, cache) {\r\n\t var changed = value != cache[type];\r\n\t cache[type] = value;\r\n\t return changed;\r\n\t }\r\n\t }\r\n\t\r\n\t // support functions\r\n\t function on(evt, element, fnc) {\r\n\t return element.addEventListener ? element.addEventListener(evt, fnc, false) : element.attachEvent(\"on\" + evt, fnc);\r\n\t }\r\n\t function off(evt, element, fnc) {\r\n\t return element.removeEventListener ? element.removeEventListener(evt, fnc, false) : element.detachEvent(\"on\" + evt, fnc);\r\n\t }\r\n\t function isArray(arr) {\r\n\t return Object.prototype.toString.call(arr) === '[object Array]';\r\n\t }\r\n\t function getStyle(prop, elem) {\r\n\t return window.getComputedStyle ? window.getComputedStyle(elem)[prop] : elem.currentStyle[prop];\r\n\t }\r\n\t\r\n\t return Clusterize;\r\n\t}));\n\n/***/ },\n/* 5 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\texports.__esModule = true;\n\texports.Node = exports.flatten = undefined;\n\t\n\tvar _flatten = __webpack_require__(6);\n\t\n\tvar _flatten2 = _interopRequireDefault(_flatten);\n\t\n\tvar _node = __webpack_require__(8);\n\t\n\tvar _node2 = _interopRequireDefault(_node);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\t// IE8 compatibility output\n\texports.flatten = _flatten2['default'];\n\texports.Node = _node2['default'];\n\n/***/ },\n/* 6 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\texports.__esModule = true;\n\t\n\tvar _extend = __webpack_require__(7);\n\t\n\tvar _extend2 = _interopRequireDefault(_extend);\n\t\n\tvar _node = __webpack_require__(8);\n\t\n\tvar _node2 = _interopRequireDefault(_node);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\t// @param {object|array} nodes The tree nodes\n\t// @param {object} [options] The options object\n\t// @param {boolean} [options.openAllNodes] True to open all nodes. Defaults to false.\n\t// @param {array} [options.openNodes] An array that contains the ids of open nodes\n\t// @return {array}\n\tvar flatten = function flatten() {\n\t var nodes = arguments.length <= 0 || arguments[0] === undefined ? [] : arguments[0];\n\t var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\t\n\t nodes = [].concat(nodes);\n\t\n\t var flatten = [];\n\t var stack = [];\n\t var pool = {\n\t lastChild: {}\n\t };\n\t\n\t options.openAllNodes = !!options.openAllNodes;\n\t options.openNodes = options.openNodes || [];\n\t options.throwOnError = !!options.throwOnError;\n\t\n\t {\n\t // root node\n\t var firstNode = nodes.length > 0 ? nodes[0] : null;\n\t var parentNode = firstNode ? firstNode.parent : null;\n\t if (parentNode && !(parentNode instanceof _node2['default'])) {\n\t parentNode = new _node2['default'](parentNode);\n\t }\n\t var rootNode = parentNode || new _node2['default']({ // defaults\n\t label: '',\n\t parent: null,\n\t children: nodes,\n\t state: {\n\t depth: -1,\n\t open: true, // always open\n\t path: '',\n\t prefixMask: '',\n\t total: 0\n\t }\n\t });\n\t\n\t if (rootNode === parentNode) {\n\t var subtotal = rootNode.state.total || 0;\n\t\n\t // Traversing up through its ancestors\n\t var p = rootNode;\n\t while (p) {\n\t var _p$state = p.state;\n\t var path = _p$state.path;\n\t var _p$state$total = _p$state.total;\n\t var total = _p$state$total === undefined ? 0 : _p$state$total;\n\t\n\t // Rebuild the lastChild pool\n\t\n\t if (p.isLastChild() && path) {\n\t pool.lastChild[path] = true;\n\t }\n\t\n\t // Subtract the number 'subtotal' from the total of the root node and all its ancestors\n\t p.state.total = total - subtotal;\n\t if (p.state.total < 0) {\n\t if (options.throwOnError) {\n\t throw new Error('The node might have been corrupted: id=' + JSON.stringify(p.id) + ', state=' + JSON.stringify(p.state));\n\t } else {\n\t console && console.log('Error: The node might have been corrupted: id=%s, label=%s, parent=%s, children=%s, state=%s', JSON.stringify(p.id), JSON.stringify(p.label), p.parent, p.children, JSON.stringify(p.state));\n\t }\n\t }\n\t\n\t p = p.parent;\n\t }\n\t }\n\t\n\t stack.push([rootNode, rootNode.state.depth, 0]);\n\t }\n\t\n\t while (stack.length > 0) {\n\t var _stack$pop = stack.pop();\n\t\n\t var current = _stack$pop[0];\n\t var depth = _stack$pop[1];\n\t var index = _stack$pop[2];\n\t\n\t var _loop = function _loop() {\n\t var node = current.children[index];\n\t if (!(node instanceof _node2['default'])) {\n\t node = new _node2['default'](node);\n\t }\n\t node.parent = current;\n\t node.children = node.children || [];\n\t\n\t // Ensure parent.children[index] is equal to the current node\n\t node.parent.children[index] = node;\n\t\n\t var path = current.state.path + '.' + index;\n\t var open = node.hasChildren() && function () {\n\t var openAllNodes = options.openAllNodes;\n\t var openNodes = options.openNodes;\n\t\n\t if (openAllNodes) {\n\t return true;\n\t }\n\t // determine by node object\n\t if (openNodes.indexOf(node) >= 0) {\n\t return true;\n\t }\n\t // determine by node id\n\t if (openNodes.indexOf(node.id) >= 0) {\n\t return true;\n\t }\n\t return false;\n\t }();\n\t var prefixMask = function (prefix) {\n\t var mask = '';\n\t while (prefix.length > 0) {\n\t prefix = prefix.replace(/\\.\\d+$/, '');\n\t if (!prefix || pool.lastChild[prefix]) {\n\t mask = '0' + mask;\n\t } else {\n\t mask = '1' + mask;\n\t }\n\t }\n\t return mask;\n\t }(path);\n\t\n\t if (node.isLastChild()) {\n\t pool.lastChild[path] = true;\n\t }\n\t\n\t // This allows you to put extra information to node.state\n\t node.state = (0, _extend2['default'])({}, node.state, {\n\t depth: depth + 1,\n\t open: open,\n\t path: path,\n\t prefixMask: prefixMask,\n\t total: 0\n\t });\n\t\n\t var parentDidOpen = true;\n\t\n\t {\n\t // Check the open state from its ancestors\n\t var _p = node;\n\t while (_p.parent !== null) {\n\t if (_p.parent.state.open === false) {\n\t parentDidOpen = false;\n\t break;\n\t }\n\t _p = _p.parent;\n\t }\n\t }\n\t\n\t if (parentDidOpen) {\n\t // Push the node to flatten list only if all of its parent nodes have the open state set to true\n\t flatten.push(node);\n\t\n\t // Update the total number of visible child nodes\n\t var _p2 = node;\n\t while (_p2.parent !== null) {\n\t _p2.parent.state.total++;\n\t _p2 = _p2.parent;\n\t }\n\t }\n\t\n\t ++index;\n\t\n\t if (node.hasChildren()) {\n\t // Push back parent node to the stack that will be able to continue\n\t // the next iteration once all the child nodes of the current node\n\t // have been completely explored.\n\t stack.push([current, depth, index]);\n\t\n\t index = 0;\n\t depth = depth + 1;\n\t current = node;\n\t }\n\t };\n\t\n\t while (index < current.children.length) {\n\t _loop();\n\t }\n\t }\n\t\n\t return flatten;\n\t};\n\t\n\texports['default'] = flatten;\n\n/***/ },\n/* 7 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\texports.__esModule = true;\n\tvar extend = function extend(target) {\n\t for (var _len = arguments.length, sources = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n\t sources[_key - 1] = arguments[_key];\n\t }\n\t\n\t if (target === undefined || target === null) {\n\t throw new TypeError('Cannot convert undefined or null to object');\n\t }\n\t\n\t var output = Object(target);\n\t for (var index = 0; index < sources.length; index++) {\n\t var source = sources[index];\n\t if (source !== undefined && source !== null) {\n\t for (var key in source) {\n\t if (source.hasOwnProperty(key)) {\n\t output[key] = source[key];\n\t }\n\t }\n\t }\n\t }\n\t return output;\n\t};\n\t\n\texports['default'] = extend;\n\n/***/ },\n/* 8 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\texports.__esModule = true;\n\t\n\tvar _extend = __webpack_require__(7);\n\t\n\tvar _extend2 = _interopRequireDefault(_extend);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tvar Node = function () {\n\t function Node(node) {\n\t _classCallCheck(this, Node);\n\t\n\t this.id = null;\n\t this.label = '';\n\t this.parent = null;\n\t this.children = [];\n\t this.state = {};\n\t\n\t (0, _extend2['default'])(this, node);\n\t\n\t this.children = this.children || [];\n\t }\n\t // Gets a child node at the specified index.\n\t // @param {number} The index of the child node.\n\t // @return {object} Returns an object that defines the node, null otherwise.\n\t\n\t\n\t Node.prototype.getChildAt = function getChildAt(index) {\n\t var node = null;\n\t if (this.children.length > 0 && index >= 0 && index < this.children.length) {\n\t node = this.children[index];\n\t }\n\t return node;\n\t };\n\t // Gets the child nodes.\n\t // @return {array} Returns an array of objects that define the nodes.\n\t\n\t\n\t Node.prototype.getChildren = function getChildren() {\n\t return this.children;\n\t };\n\t // Gets the first child node.\n\t // @return {object} Returns an object that defines the node, null otherwise.\n\t\n\t\n\t Node.prototype.getFirstChild = function getFirstChild() {\n\t var node = null;\n\t if (this.children.length > 0) {\n\t node = this.children[0];\n\t }\n\t return node;\n\t };\n\t // Gets the last child node.\n\t // @return {object} Returns an object that defines the node, null otherwise.\n\t\n\t\n\t Node.prototype.getLastChild = function getLastChild() {\n\t var node = null;\n\t if (this.children.length > 0) {\n\t node = this.children[this.children.length - 1];\n\t }\n\t return node;\n\t };\n\t // Gets the next sibling node.\n\t // @return {object} Returns an object that defines the node, null otherwise.\n\t\n\t\n\t Node.prototype.getNextSibling = function getNextSibling() {\n\t var node = null;\n\t if (this.parent) {\n\t var index = this.parent.children.indexOf(this);\n\t if (index >= 0 && index < this.parent.children.length - 1) {\n\t node = this.parent.children[index + 1];\n\t }\n\t }\n\t return node;\n\t };\n\t // Gets the parent node.\n\t // @return {object} Returns an object that defines the node, null otherwise.\n\t\n\t\n\t Node.prototype.getParent = function getParent() {\n\t return this.parent;\n\t };\n\t // Gets the previous sibling node.\n\t // @return {object} Returns an object that defines the node, null otherwise.\n\t\n\t\n\t Node.prototype.getPreviousSibling = function getPreviousSibling() {\n\t var node = null;\n\t if (this.parent) {\n\t var index = this.parent.children.indexOf(this);\n\t if (index > 0 && index < this.parent.children.length) {\n\t node = this.parent.children[index - 1];\n\t }\n\t }\n\t return node;\n\t };\n\t // Checks whether this node has children.\n\t // @return {boolean} Returns true if the node has children, false otherwise.\n\t\n\t\n\t Node.prototype.hasChildren = function hasChildren() {\n\t return this.children.length > 0;\n\t };\n\t // Checks whether this node is the last child of its parent.\n\t // @return {boolean} Returns true if the node is the last child of its parent, false otherwise.\n\t\n\t\n\t Node.prototype.isLastChild = function isLastChild() {\n\t var hasNextSibling = this.getNextSibling();\n\t return !hasNextSibling;\n\t };\n\t\n\t return Node;\n\t}();\n\t\n\texports['default'] = Node;\n\n/***/ },\n/* 9 */\n/***/ function(module, exports) {\n\n\t\"use strict\";\n\t\n\texports.__esModule = true;\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tvar LookupTable = function () {\n\t function LookupTable() {\n\t _classCallCheck(this, LookupTable);\n\t\n\t this.data = {};\n\t }\n\t\n\t LookupTable.prototype.clear = function clear() {\n\t this.data = {};\n\t };\n\t\n\t LookupTable.prototype.get = function get(key) {\n\t return this.data[key];\n\t };\n\t\n\t LookupTable.prototype.has = function has(key) {\n\t return this.data[key] !== undefined;\n\t };\n\t\n\t LookupTable.prototype.set = function set(key, value) {\n\t this.data[key] = value;\n\t return value;\n\t };\n\t\n\t LookupTable.prototype.unset = function unset(key) {\n\t if (this.data[key] !== undefined) {\n\t delete this.data[key];\n\t }\n\t };\n\t\n\t return LookupTable;\n\t}();\n\t\n\texports[\"default\"] = LookupTable;\n\n/***/ },\n/* 10 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\texports.__esModule = true;\n\texports.defaultRowRenderer = undefined;\n\t\n\tvar _helper = __webpack_require__(11);\n\t\n\tvar defaultRowRenderer = function defaultRowRenderer(node, treeOptions) {\n\t var id = node.id;\n\t var label = node.label;\n\t var children = node.children;\n\t var state = node.state;\n\t var depth = state.depth;\n\t var open = state.open;\n\t var path = state.path;\n\t var total = state.total;\n\t var _state$selected = state.selected;\n\t var selected = _state$selected === undefined ? false : _state$selected;\n\t\n\t var childrenLength = Object.keys(children).length;\n\t var more = node.hasChildren();\n\t\n\t var togglerContent = '';\n\t if (more && open) {\n\t togglerContent = '▼';\n\t }\n\t if (more && !open) {\n\t togglerContent = '►';\n\t }\n\t var toggler = (0, _helper.buildHTML)('a', togglerContent, {\n\t 'class': function () {\n\t if (more && open) {\n\t return (0, _helper.classNames)('tree-toggler');\n\t }\n\t if (more && !open) {\n\t return (0, _helper.classNames)('tree-toggler', 'tree-closed');\n\t }\n\t return '';\n\t }()\n\t });\n\t var title = (0, _helper.buildHTML)('span', (0, _helper.quoteattr)(label), {\n\t 'class': (0, _helper.classNames)('tree-title')\n\t });\n\t var treeNode = (0, _helper.buildHTML)('div', toggler + title, {\n\t 'class': 'tree-node',\n\t 'style': 'margin-left: ' + depth * 18 + 'px'\n\t });\n\t\n\t return (0, _helper.buildHTML)('div', treeNode, {\n\t 'aria-id': id,\n\t 'aria-expanded': more && open,\n\t 'aria-depth': depth,\n\t 'aria-path': path,\n\t 'aria-selected': selected,\n\t 'aria-children': childrenLength,\n\t 'aria-total': total,\n\t 'class': (0, _helper.classNames)('tree-item', { 'tree-selected': selected }),\n\t 'droppable': true\n\t });\n\t};\n\t\n\texports.defaultRowRenderer = defaultRowRenderer;\n\n/***/ },\n/* 11 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\texports.__esModule = true;\n\t\n\tvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol ? \"symbol\" : typeof obj; };\n\t\n\tvar preventDefault = function preventDefault(e) {\n\t if (typeof e.preventDefault !== 'undefined') {\n\t e.preventDefault();\n\t } else {\n\t e.returnValue = false;\n\t }\n\t};\n\t\n\tvar stopPropagation = function stopPropagation(e) {\n\t if (typeof e.stopPropagation !== 'undefined') {\n\t e.stopPropagation();\n\t } else {\n\t e.cancelBubble = true;\n\t }\n\t};\n\t\n\t// http://blog.garstasio.com/you-dont-need-jquery/events/#sending-custom-events\n\tvar dispatchEvent = function dispatchEvent(el, eventType) {\n\t var evt = document.createEvent('Event');\n\t evt.initEvent(eventType, true, true); // can bubble, and is cancellable\n\t el.dispatchEvent(evt);\n\t};\n\t\n\t// https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Compatibility\n\tvar addEventListener = function addEventListener(target, type, listener) {\n\t if (target.addEventListener) {\n\t // Standard\n\t target.addEventListener(type, listener, false);\n\t } else if (target.attachEvent) {\n\t // IE8\n\t // In Internet Explorer versions before IE 9, you have to use attachEvent rather than the standard addEventListener.\n\t target.attachEvent('on' + type, listener);\n\t }\n\t};\n\t\n\t// https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener\n\tvar removeEventListener = function removeEventListener(target, type, listener) {\n\t if (target.removeEventListener) {\n\t // Standard\n\t target.removeEventListener(type, listener, false);\n\t } else if (target.detachEvent) {\n\t // IE8\n\t // In Internet Explorer versions before IE 9, you have to use detachEvent rather than the standard removeEventListener.\n\t target.detachEvent('on' + type, listener);\n\t }\n\t};\n\t\n\tvar hasClass = function hasClass(el, className) {\n\t if (!el) {\n\t return false;\n\t }\n\t var classes = el.className.split(' ');\n\t return classes.indexOf(className) >= 0;\n\t};\n\t\n\tvar addClass = function addClass(el, className) {\n\t if (!el) {\n\t return '';\n\t }\n\t if (!hasClass(el, className)) {\n\t var classes = el.className.split(' ');\n\t el.className = classes.concat(className).join(' ');\n\t }\n\t return el.className;\n\t};\n\t\n\tvar removeClass = function removeClass(el, className) {\n\t if (!el) {\n\t return '';\n\t }\n\t if (hasClass(el, className)) {\n\t var classes = el.className.split(' ');\n\t el.className = classes.filter(function (c) {\n\t return c !== className;\n\t }).join(' ');\n\t }\n\t return el.className;\n\t};\n\t\n\tvar toggleClass = function toggleClass(el, className) {\n\t if (!el) {\n\t return;\n\t }\n\t if (hasClass(el, className)) {\n\t removeClass(el, className);\n\t } else {\n\t addClass(el, className);\n\t }\n\t};\n\t\n\tvar classNames = function classNames() {\n\t for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n\t args[_key] = arguments[_key];\n\t }\n\t\n\t var classNames = [];\n\t args.forEach(function (arg) {\n\t if (Array.isArray(arg)) {\n\t classNames = classNames.concat(arg);\n\t } else if ((typeof arg === 'undefined' ? 'undefined' : _typeof(arg)) === 'object') {\n\t Object.keys(arg).forEach(function (className) {\n\t var ok = arg[className];\n\t if (!!ok) {\n\t classNames.push(className);\n\t }\n\t });\n\t } else {\n\t classNames.push(arg);\n\t }\n\t });\n\t return classNames.join(' ');\n\t};\n\t\n\tvar quoteattr = function quoteattr(s, preserveCR) {\n\t preserveCR = preserveCR ? ' ' : '\\n';\n\t return ('' + s). /* Forces the conversion to string. */\n\t replace(/&/g, '&') /* This MUST be the 1st replacement. */\n\t .replace(/'/g, ''') /* The 4 other predefined entities, required. */\n\t .replace(/\"/g, '"').replace(//g, '>')\n\t /*\n\t * You may add other replacements here for HTML only\n\t * (but it's not necessary).\n\t * Or for XML, only if the named entities are defined in its DTD.\n\t */\n\t .replace(/\\r\\n/g, preserveCR) /* Must be before the next replacement. */\n\t .replace(/[\\r\\n]/g, preserveCR);\n\t};\n\t\n\t/**\n\t * Example #1:\n\t * =========================================================================\n\t * My Mail\n\t *\n\t * buildHTML('a', 'My Mail', {\n\t * id: 'mymail',\n\t * href: 'http://mymail.example.com'\n\t * });\n\t *\n\t * Example #2:\n\t * =========================================================================\n\t * \n\t *\n\t * buildHTML('input', {\n\t * id: 'myinput',\n\t * type: 'text',\n\t * value: 'myvalue'\n\t * });\n\t *\n\t */\n\tvar buildHTML = function buildHTML(tag, html, attrs) {\n\t switch (tag) {\n\t case 'select':\n\t if ((typeof html === 'undefined' ? 'undefined' : _typeof(html)) === 'object') {\n\t var options = html || {};\n\t html = '';\n\t for (var value in options) {\n\t if (!options.hasOwnProperty(value)) {\n\t continue;\n\t }\n\t html += buildHTML('option', options[value] || '', { value: value });\n\t }\n\t }\n\t break;\n\t\n\t default:\n\t if ((typeof html === 'undefined' ? 'undefined' : _typeof(html)) === 'object') {\n\t attrs = html;\n\t html = undefined;\n\t }\n\t break;\n\t }\n\t\n\t var h = '<' + tag;\n\t for (var attr in attrs) {\n\t if (!attrs.hasOwnProperty(attr)) {\n\t continue;\n\t }\n\t if (typeof attrs[attr] !== 'undefined') {\n\t h += ' ' + attr + '=\"' + quoteattr(attrs[attr]) + '\"';\n\t }\n\t }\n\t h += typeof html !== 'undefined' ? '>' + html + '' : '/>';\n\t\n\t return h;\n\t};\n\t\n\texports.preventDefault = preventDefault;\n\texports.stopPropagation = stopPropagation;\n\texports.dispatchEvent = dispatchEvent;\n\texports.addEventListener = addEventListener;\n\texports.removeEventListener = removeEventListener;\n\texports.hasClass = hasClass;\n\texports.addClass = addClass;\n\texports.removeClass = removeClass;\n\texports.toggleClass = toggleClass;\n\texports.classNames = classNames;\n\texports.quoteattr = quoteattr;\n\texports.buildHTML = buildHTML;\n\n/***/ },\n/* 12 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\texports.__esModule = true;\n\t\n\tvar _helper = __webpack_require__(11);\n\t\n\tvar rowRenderer = function rowRenderer(node, treeOptions) {\n\t var id = node.id;\n\t var label = node.label;\n\t var children = node.children;\n\t var state = node.state;\n\t var props = node.props;\n\t\n\t var droppable = treeOptions.droppable && props.droppable;\n\t var depth = state.depth;\n\t var open = state.open;\n\t var path = state.path;\n\t var total = state.total;\n\t var _state$selected = state.selected;\n\t var selected = _state$selected === undefined ? false : _state$selected;\n\t\n\t var childrenLength = Object.keys(children).length;\n\t var more = node.hasChildren();\n\t\n\t var toggler = '';\n\t if (more) {\n\t var togglerContent = '';\n\t if (open) {\n\t togglerContent = (0, _helper.buildHTML)('i', '', {\n\t 'class': (0, _helper.classNames)('glyphicon', 'glyphicon-triangle-bottom')\n\t });\n\t }\n\t if (!open) {\n\t togglerContent = (0, _helper.buildHTML)('i', '', {\n\t 'class': (0, _helper.classNames)('glyphicon', 'glyphicon-triangle-right')\n\t });\n\t }\n\t toggler = (0, _helper.buildHTML)('a', togglerContent, {\n\t 'class': function () {\n\t if (more && open) {\n\t return (0, _helper.classNames)('tree-toggler');\n\t }\n\t if (more && !open) {\n\t return (0, _helper.classNames)('tree-toggler', 'tree-closed');\n\t }\n\t return '';\n\t }()\n\t });\n\t }\n\t\n\t var icon = (0, _helper.buildHTML)('i', '', {\n\t 'class': (0, _helper.classNames)('tree-folder-icon', 'glyphicon', { 'glyphicon-folder-open': more && open }, { 'glyphicon-folder-close': more && !open }, { 'glyphicon-file': !more })\n\t });\n\t var title = (0, _helper.buildHTML)('span', (0, _helper.quoteattr)(label), {\n\t 'class': (0, _helper.classNames)('tree-title')\n\t });\n\t var count = (0, _helper.buildHTML)('span', childrenLength, {\n\t 'class': 'count'\n\t });\n\t var treeNode = (0, _helper.buildHTML)('div', toggler + icon + title + count, {\n\t 'class': 'tree-node',\n\t 'style': 'margin-left: ' + depth * 18 + 'px'\n\t });\n\t\n\t var treeNodeAttributes = {\n\t 'aria-id': id,\n\t 'aria-expanded': more && open,\n\t 'aria-depth': depth,\n\t 'aria-path': path,\n\t 'aria-selected': selected,\n\t 'aria-children': childrenLength,\n\t 'aria-total': total,\n\t 'class': (0, _helper.classNames)('tree-item', { 'tree-selected': selected })\n\t };\n\t if (droppable) {\n\t treeNodeAttributes['droppable'] = true;\n\t }\n\t\n\t return (0, _helper.buildHTML)('div', treeNode, treeNodeAttributes);\n\t};\n\t\n\texports['default'] = rowRenderer;\n\n/***/ },\n/* 13 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// style-loader: Adds some css to the DOM by adding a