{"version":3,"sources":["../node_modules/events/events.js","cjs/index.js"],"names":["ReflectOwnKeys","R","Reflect","ReflectApply","apply","target","receiver","args","Function","prototype","call","ownKeys","Object","getOwnPropertySymbols","getOwnPropertyNames","concat","NumberIsNaN","Number","isNaN","value","EventEmitter","init","this","events","_events","undefined","_eventsCount","_maxListeners","defaultMaxListeners","$getMaxListeners","that","_addListener","type","listener","prepend","m","existing","warning","TypeError","create","newListener","emit","unshift","push","length","warned","w","Error","String","name","emitter","count","console","warn","_onceWrap","state","fired","wrapFn","wrapped","i","arguments","removeListener","bind","_listeners","unwrap","evlistener","arr","ret","Array","unwrapListeners","arrayClone","listenerCount","n","copy","defineProperty","enumerable","get","set","arg","RangeError","getPrototypeOf","setMaxListeners","getMaxListeners","doError","error","er","err","message","context","handler","len","listeners","on","addListener","prependListener","once","prependOnceListener","off","list","position","originalListener","shift","index","pop","spliceOne","removeAllListeners","key","keys","rawListeners","eventNames","Default","_EventEmitter","subClass","superClass","MetisMenu","element","options","_this","document","querySelector","cacheEl","config","source","filter","sym","getOwnPropertyDescriptor","forEach","obj","_objectSpread","cacheConfig","disposed","ulArr","liArr","aArr","listenerOb","constructor","__proto__","_proto","update","dispose","_iterator","_isArray","isArray","_i","Symbol","iterator","_ref","next","done","lo","hasOwnProperty","el","removeEventListener","slice","querySelectorAll","subMenu","_iterator2","entries","_isArray2","_i2","_ref2","_ref3","ul","li","parentNode","getAttribute","setAttribute","ulId","classList","add","collapseClass","contains","activeClass","show","hide","a","triggerElement","clickEvent","addEventListener","ev","currentTarget","tagName","preventDefault","toggle","_this2","isTransitioning","collapseInClass","style","height","remove","collapsingClass","eleParentSiblins","children","c","_iterator3","_isArray3","_i3","_ref4","sibUl","setTransitioning","scrollHeight","complete","_this3","getBoundingClientRect","offsetHeight","comp"],"mappings":";;;;;;;;qLAuBA,IAOIA,EAPAC,EAAuB,iBAAZC,QAAuBA,QAAU,KAC5CC,EAAeF,GAAwB,mBAAZA,EAAEG,MAC7BH,EAAEG,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B,MACnBjC,UAAUqB,OAAOL,EAAO/D,OAAOqE,mBAC/BH,MAAMC,OAAS,KACfpC,oBAAoB,gBAAiBiD,KAEjCF,kBAAiB,UAyCrB9J,KAAK,kBAAmByH,OAGxBY,KAAO,SAAcZ,OACtBwC,EAASpL,SAETA,KAAKmK,iBAAoBvB,EAAGM,UAAUG,SAASrJ,KAAKmG,OAAOiE,sBAI3DvB,EAAKD,EAAGE,gBACP3H,KAAK,iBAAkB0H,KACzBK,UAAUqB,OAAOvK,KAAKmG,OAAOmD,eAU7Be,MAAMC,OAAS1B,EAAGyC,wBAAwBf,OAAS,OACnDD,MAAMC,OAAS1B,EAAG0C,aAAe,OACjCpC,UAAUC,IAAInJ,KAAKmG,OAAOqE,mBAC1BtB,UAAUqB,OAAOvK,KAAKmG,OAAOiD,iBAC7BF,UAAUqB,OAAOvK,KAAKmG,OAAOiE,sBAC3Ba,kBAAiB,KACnBrB,iBAAiB,gBAdT,SAAS2B,MACfrC,UAAUqB,OAAOa,EAAOjF,OAAOqE,mBAC/BtB,UAAUC,IAAIiC,EAAOjF,OAAOiD,iBAC5BlB,oBAAoB,gBAAiBqD,KAEjCN,kBAAiB,OAUvBZ,MAAMC,OAAS,MACVzB,EAAG5C,cAAcjG,KAAKmG,OAAOuD,gBACnCV,aAAa,gBAAiB,cAC3B7H,KAAK,mBAAoB0H,OAGzBoC,iBAAmB,SAA0Bd,QAC7CA,gBAAkBA,GAGlBvE,EA9OT,CA+OE3F,EAAOH","sourcesContent":["// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\nvar R = typeof Reflect === 'object' ? Reflect : null\nvar ReflectApply = R && typeof R.apply === 'function'\n ? R.apply\n : function ReflectApply(target, receiver, args) {\n return Function.prototype.apply.call(target, receiver, args);\n }\n\nvar ReflectOwnKeys\nif (R && typeof R.ownKeys === 'function') {\n ReflectOwnKeys = R.ownKeys\n} else if (Object.getOwnPropertySymbols) {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target)\n .concat(Object.getOwnPropertySymbols(target));\n };\n} else {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target);\n };\n}\n\nfunction ProcessEmitWarning(warning) {\n if (console && console.warn) console.warn(warning);\n}\n\nvar NumberIsNaN = Number.isNaN || function NumberIsNaN(value) {\n return value !== value;\n}\n\nfunction EventEmitter() {\n EventEmitter.init.call(this);\n}\nmodule.exports = EventEmitter;\n\n// Backwards-compat with node 0.10.x\nEventEmitter.EventEmitter = EventEmitter;\n\nEventEmitter.prototype._events = undefined;\nEventEmitter.prototype._eventsCount = 0;\nEventEmitter.prototype._maxListeners = undefined;\n\n// By default EventEmitters will print a warning if more than 10 listeners are\n// added to it. This is a useful default which helps finding memory leaks.\nvar defaultMaxListeners = 10;\n\nObject.defineProperty(EventEmitter, 'defaultMaxListeners', {\n enumerable: true,\n get: function() {\n return defaultMaxListeners;\n },\n set: function(arg) {\n if (typeof arg !== 'number' || arg < 0 || NumberIsNaN(arg)) {\n throw new RangeError('The value of \"defaultMaxListeners\" is out of range. It must be a non-negative number. Received ' + arg + '.');\n }\n defaultMaxListeners = arg;\n }\n});\n\nEventEmitter.init = function() {\n\n if (this._events === undefined ||\n this._events === Object.getPrototypeOf(this)._events) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n }\n\n this._maxListeners = this._maxListeners || undefined;\n};\n\n// Obviously not all Emitters should be limited to 10. This function allows\n// that to be increased. Set to zero for unlimited.\nEventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {\n if (typeof n !== 'number' || n < 0 || NumberIsNaN(n)) {\n throw new RangeError('The value of \"n\" is out of range. It must be a non-negative number. Received ' + n + '.');\n }\n this._maxListeners = n;\n return this;\n};\n\nfunction $getMaxListeners(that) {\n if (that._maxListeners === undefined)\n return EventEmitter.defaultMaxListeners;\n return that._maxListeners;\n}\n\nEventEmitter.prototype.getMaxListeners = function getMaxListeners() {\n return $getMaxListeners(this);\n};\n\nEventEmitter.prototype.emit = function emit(type) {\n var args = [];\n for (var i = 1; i < arguments.length; i++) args.push(arguments[i]);\n var doError = (type === 'error');\n\n var events = this._events;\n if (events !== undefined)\n doError = (doError && events.error === undefined);\n else if (!doError)\n return false;\n\n // If there is no 'error' event listener then throw.\n if (doError) {\n var er;\n if (args.length > 0)\n er = args[0];\n if (er instanceof Error) {\n // Note: The comments on the `throw` lines are intentional, they show\n // up in Node's output if this results in an unhandled exception.\n throw er; // Unhandled 'error' event\n }\n // At least give some kind of context to the user\n var err = new Error('Unhandled error.' + (er ? ' (' + er.message + ')' : ''));\n err.context = er;\n throw err; // Unhandled 'error' event\n }\n\n var handler = events[type];\n\n if (handler === undefined)\n return false;\n\n if (typeof handler === 'function') {\n ReflectApply(handler, this, args);\n } else {\n var len = handler.length;\n var listeners = arrayClone(handler, len);\n for (var i = 0; i < len; ++i)\n ReflectApply(listeners[i], this, args);\n }\n\n return true;\n};\n\nfunction _addListener(target, type, listener, prepend) {\n var m;\n var events;\n var existing;\n\n if (typeof listener !== 'function') {\n throw new TypeError('The \"listener\" argument must be of type Function. Received type ' + typeof listener);\n }\n\n events = target._events;\n if (events === undefined) {\n events = target._events = Object.create(null);\n target._eventsCount = 0;\n } else {\n // To avoid recursion in the case that type === \"newListener\"! Before\n // adding it to the listeners, first emit \"newListener\".\n if (events.newListener !== undefined) {\n target.emit('newListener', type,\n listener.listener ? listener.listener : listener);\n\n // Re-assign `events` because a newListener handler could have caused the\n // this._events to be assigned to a new object\n events = target._events;\n }\n existing = events[type];\n }\n\n if (existing === undefined) {\n // Optimize the case of one listener. Don't need the extra array object.\n existing = events[type] = listener;\n ++target._eventsCount;\n } else {\n if (typeof existing === 'function') {\n // Adding the second element, need to change to array.\n existing = events[type] =\n prepend ? [listener, existing] : [existing, listener];\n // If we've already got an array, just append.\n } else if (prepend) {\n existing.unshift(listener);\n } else {\n existing.push(listener);\n }\n\n // Check for listener leak\n m = $getMaxListeners(target);\n if (m > 0 && existing.length > m && !existing.warned) {\n existing.warned = true;\n // No error code for this since it is a Warning\n // eslint-disable-next-line no-restricted-syntax\n var w = new Error('Possible EventEmitter memory leak detected. ' +\n existing.length + ' ' + String(type) + ' listeners ' +\n 'added. Use emitter.setMaxListeners() to ' +\n 'increase limit');\n w.name = 'MaxListenersExceededWarning';\n w.emitter = target;\n w.type = type;\n w.count = existing.length;\n ProcessEmitWarning(w);\n }\n }\n\n return target;\n}\n\nEventEmitter.prototype.addListener = function addListener(type, listener) {\n return _addListener(this, type, listener, false);\n};\n\nEventEmitter.prototype.on = EventEmitter.prototype.addListener;\n\nEventEmitter.prototype.prependListener =\n function prependListener(type, listener) {\n return _addListener(this, type, listener, true);\n };\n\nfunction onceWrapper() {\n var args = [];\n for (var i = 0; i < arguments.length; i++) args.push(arguments[i]);\n if (!this.fired) {\n this.target.removeListener(this.type, this.wrapFn);\n this.fired = true;\n ReflectApply(this.listener, this.target, args);\n }\n}\n\nfunction _onceWrap(target, type, listener) {\n var state = { fired: false, wrapFn: undefined, target: target, type: type, listener: listener };\n var wrapped = onceWrapper.bind(state);\n wrapped.listener = listener;\n state.wrapFn = wrapped;\n return wrapped;\n}\n\nEventEmitter.prototype.once = function once(type, listener) {\n if (typeof listener !== 'function') {\n throw new TypeError('The \"listener\" argument must be of type Function. Received type ' + typeof listener);\n }\n this.on(type, _onceWrap(this, type, listener));\n return this;\n};\n\nEventEmitter.prototype.prependOnceListener =\n function prependOnceListener(type, listener) {\n if (typeof listener !== 'function') {\n throw new TypeError('The \"listener\" argument must be of type Function. Received type ' + typeof listener);\n }\n this.prependListener(type, _onceWrap(this, type, listener));\n return this;\n };\n\n// Emits a 'removeListener' event if and only if the listener was removed.\nEventEmitter.prototype.removeListener =\n function removeListener(type, listener) {\n var list, events, position, i, originalListener;\n\n if (typeof listener !== 'function') {\n throw new TypeError('The \"listener\" argument must be of type Function. Received type ' + typeof listener);\n }\n\n events = this._events;\n if (events === undefined)\n return this;\n\n list = events[type];\n if (list === undefined)\n return this;\n\n if (list === listener || list.listener === listener) {\n if (--this._eventsCount === 0)\n this._events = Object.create(null);\n else {\n delete events[type];\n if (events.removeListener)\n this.emit('removeListener', type, list.listener || listener);\n }\n } else if (typeof list !== 'function') {\n position = -1;\n\n for (i = list.length - 1; i >= 0; i--) {\n if (list[i] === listener || list[i].listener === listener) {\n originalListener = list[i].listener;\n position = i;\n break;\n }\n }\n\n if (position < 0)\n return this;\n\n if (position === 0)\n list.shift();\n else {\n spliceOne(list, position);\n }\n\n if (list.length === 1)\n events[type] = list[0];\n\n if (events.removeListener !== undefined)\n this.emit('removeListener', type, originalListener || listener);\n }\n\n return this;\n };\n\nEventEmitter.prototype.off = EventEmitter.prototype.removeListener;\n\nEventEmitter.prototype.removeAllListeners =\n function removeAllListeners(type) {\n var listeners, events, i;\n\n events = this._events;\n if (events === undefined)\n return this;\n\n // not listening for removeListener, no need to emit\n if (events.removeListener === undefined) {\n if (arguments.length === 0) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n } else if (events[type] !== undefined) {\n if (--this._eventsCount === 0)\n this._events = Object.create(null);\n else\n delete events[type];\n }\n return this;\n }\n\n // emit removeListener for all listeners on all events\n if (arguments.length === 0) {\n var keys = Object.keys(events);\n var key;\n for (i = 0; i < keys.length; ++i) {\n key = keys[i];\n if (key === 'removeListener') continue;\n this.removeAllListeners(key);\n }\n this.removeAllListeners('removeListener');\n this._events = Object.create(null);\n this._eventsCount = 0;\n return this;\n }\n\n listeners = events[type];\n\n if (typeof listeners === 'function') {\n this.removeListener(type, listeners);\n } else if (listeners !== undefined) {\n // LIFO order\n for (i = listeners.length - 1; i >= 0; i--) {\n this.removeListener(type, listeners[i]);\n }\n }\n\n return this;\n };\n\nfunction _listeners(target, type, unwrap) {\n var events = target._events;\n\n if (events === undefined)\n return [];\n\n var evlistener = events[type];\n if (evlistener === undefined)\n return [];\n\n if (typeof evlistener === 'function')\n return unwrap ? [evlistener.listener || evlistener] : [evlistener];\n\n return unwrap ?\n unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);\n}\n\nEventEmitter.prototype.listeners = function listeners(type) {\n return _listeners(this, type, true);\n};\n\nEventEmitter.prototype.rawListeners = function rawListeners(type) {\n return _listeners(this, type, false);\n};\n\nEventEmitter.listenerCount = function(emitter, type) {\n if (typeof emitter.listenerCount === 'function') {\n return emitter.listenerCount(type);\n } else {\n return listenerCount.call(emitter, type);\n }\n};\n\nEventEmitter.prototype.listenerCount = listenerCount;\nfunction listenerCount(type) {\n var events = this._events;\n\n if (events !== undefined) {\n var evlistener = events[type];\n\n if (typeof evlistener === 'function') {\n return 1;\n } else if (evlistener !== undefined) {\n return evlistener.length;\n }\n }\n\n return 0;\n}\n\nEventEmitter.prototype.eventNames = function eventNames() {\n return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];\n};\n\nfunction arrayClone(arr, n) {\n var copy = new Array(n);\n for (var i = 0; i < n; ++i)\n copy[i] = arr[i];\n return copy;\n}\n\nfunction spliceOne(list, index) {\n for (; index + 1 < list.length; index++)\n list[index] = list[index + 1];\n list.pop();\n}\n\nfunction unwrapListeners(arr) {\n var ret = new Array(arr.length);\n for (var i = 0; i < ret.length; ++i) {\n ret[i] = arr[i].listener || arr[i];\n }\n return ret;\n}\n","/*!\n* metismenu - v3.0.0-alpha.0\n* A menu plugin\n* https://github.com/onokumus/metismenu#readme\n*\n* Made by Osman Nuri Okumus (https://github.com/onokumus)\n* Under MIT License\n*/\n'use strict';\n\nvar events = require('events');\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n\n if (typeof Object.getOwnPropertySymbols === 'function') {\n ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n }\n\n ownKeys.forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n }\n\n return target;\n}\n\nfunction _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n subClass.__proto__ = superClass;\n}\n\nvar Default = {\n activeClass: \"active\",\n collapseClass: \"collapse\",\n collapseInClass: \"in\",\n collapsingClass: \"collapsing\",\n parentTrigger: \"li\",\n preventDefault: true,\n subMenu: \"ul\",\n toggle: true,\n triggerElement: \"a\"\n};\n\nvar MetisMenu =\n/*#__PURE__*/\nfunction (_EventEmitter) {\n _inheritsLoose(MetisMenu, _EventEmitter);\n\n function MetisMenu(element, options) {\n var _this;\n\n _this = _EventEmitter.call(this) || this;\n _this.element = typeof element === \"string\" ? document.querySelector(element) : element;\n _this.cacheEl = _this.element;\n _this.config = _objectSpread({}, Default, options);\n _this.cacheConfig = _this.config;\n _this.disposed = false;\n _this.ulArr = [];\n _this.liArr = [];\n _this.aArr = [];\n _this.listenerOb = [];\n\n _this.init();\n\n return _this;\n }\n\n var _proto = MetisMenu.prototype;\n\n _proto.update = function update() {\n this.disposed = false;\n this.element = this.cacheEl;\n this.config = this.cacheConfig;\n this.init();\n };\n\n _proto.dispose = function dispose() {\n for (var _iterator = this.listenerOb, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {\n var _ref;\n\n if (_isArray) {\n if (_i >= _iterator.length) break;\n _ref = _iterator[_i++];\n } else {\n _i = _iterator.next();\n if (_i.done) break;\n _ref = _i.value;\n }\n\n var lo = _ref;\n\n for (var key in lo) {\n if (lo.hasOwnProperty(key)) {\n var el = lo[key];\n el[1].removeEventListener(el[0], el[2]);\n }\n }\n }\n\n this.ulArr = [];\n this.liArr = [];\n this.aArr = [];\n this.listenerOb = [];\n this.config = null;\n this.element = null;\n this.disposed = true;\n };\n\n _proto.init = function init() {\n this.ulArr = [].slice.call(this.element.querySelectorAll(this.config.subMenu));\n\n for (var _iterator2 = this.ulArr.entries(), _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[Symbol.iterator]();;) {\n var _ref2;\n\n if (_isArray2) {\n if (_i2 >= _iterator2.length) break;\n _ref2 = _iterator2[_i2++];\n } else {\n _i2 = _iterator2.next();\n if (_i2.done) break;\n _ref2 = _i2.value;\n }\n\n var _ref3 = _ref2,\n index = _ref3[0],\n ul = _ref3[1];\n var li = ul.parentNode;\n this.liArr.push(li);\n\n if (li.getAttribute(\"id\") === null) {\n li.setAttribute(\"id\", \"mm-item-\" + index);\n ul.setAttribute(\"aria-labelledby\", \"mm-item-\" + index);\n } else {\n ul.setAttribute(\"aria-labelledby\", li.getAttribute(\"id\"));\n }\n\n var ulId = ul.getAttribute(\"id\") !== null ? ul.getAttribute(\"id\") : \"mm-item-ul-\" + index;\n\n if (ul.getAttribute(\"id\") === null) {\n ul.setAttribute(\"id\", ulId);\n }\n\n ul.classList.add(this.config.collapseClass);\n\n if (li.classList.contains(this.config.activeClass)) {\n this.show(ul);\n } else {\n this.hide(ul);\n }\n\n var a = li.querySelector(this.config.triggerElement);\n a.setAttribute(\"aria-controls\", ulId);\n a.setAttribute(\"aria-expanded\", \"false\");\n var listenerOb = {\n aClick: [\"click\", a, this.clickEvent.bind(this)]\n };\n\n for (var key in listenerOb) {\n if (listenerOb.hasOwnProperty(key)) {\n var listener = listenerOb[key];\n listener[1].addEventListener(listener[0], listener[2]);\n }\n }\n\n this.listenerOb.push(listenerOb);\n }\n };\n\n _proto.clickEvent = function clickEvent(ev) {\n if (!this.disposed) {\n if (ev.currentTarget.tagName === \"A\") {\n ev.preventDefault();\n }\n\n var li = ev.target.parentNode;\n var ul = li.querySelector(this.config.subMenu);\n this.toggle(ul);\n }\n };\n\n _proto.toggle = function toggle(ul) {\n if (ul.parentNode.classList.contains(this.config.activeClass)) {\n this.hide(ul);\n } else {\n this.show(ul);\n }\n };\n\n _proto.show = function show(ul) {\n var _this2 = this;\n\n if (this.isTransitioning || ul.classList.contains(this.config.collapseInClass)) {\n return;\n }\n\n var li = ul.parentNode;\n this.emit(\"show.metisMenu\", li);\n\n var complete = function complete() {\n ul.classList.remove(_this2.config.collapsingClass);\n ul.style.height = \"\";\n ul.removeEventListener(\"transitionend\", complete);\n\n _this2.setTransitioning(false);\n };\n\n li.classList.add(this.config.activeClass);\n var a = li.querySelector(this.config.triggerElement);\n a.setAttribute(\"aria-expanded\", \"true\");\n ul.style.height = \"0px\";\n ul.classList.remove(this.config.collapseClass);\n ul.classList.remove(this.config.collapseInClass);\n ul.classList.add(this.config.collapsingClass);\n var eleParentSiblins = [].slice.call(li.parentNode.children).filter(function (c) {\n return c !== li;\n });\n\n if (this.config.toggle && eleParentSiblins.length > 0) {\n for (var _iterator3 = eleParentSiblins, _isArray3 = Array.isArray(_iterator3), _i3 = 0, _iterator3 = _isArray3 ? _iterator3 : _iterator3[Symbol.iterator]();;) {\n var _ref4;\n\n if (_isArray3) {\n if (_i3 >= _iterator3.length) break;\n _ref4 = _iterator3[_i3++];\n } else {\n _i3 = _iterator3.next();\n if (_i3.done) break;\n _ref4 = _i3.value;\n }\n\n var sibli = _ref4;\n var sibUl = sibli.querySelector(this.config.subMenu);\n\n if (sibUl !== null) {\n this.hide(sibUl);\n }\n }\n }\n\n this.setTransitioning(true);\n ul.classList.add(this.config.collapseClass);\n ul.classList.add(this.config.collapseInClass);\n ul.style.height = ul.scrollHeight + \"px\";\n ul.addEventListener(\"transitionend\", complete);\n this.emit(\"shown.metisMenu\", ul);\n };\n\n _proto.hide = function hide(ul) {\n var _this3 = this;\n\n if (this.isTransitioning || !ul.classList.contains(this.config.collapseInClass)) {\n return;\n }\n\n var li = ul.parentNode;\n this.emit(\"hide.metisMenu\", li);\n li.classList.remove(this.config.activeClass);\n\n var comp = function comp() {\n ul.classList.remove(_this3.config.collapsingClass);\n ul.classList.add(_this3.config.collapseClass);\n ul.removeEventListener(\"transitionend\", comp);\n\n _this3.setTransitioning(false);\n };\n\n ul.style.height = ul.getBoundingClientRect().height + \"px\";\n ul.style.height = ul.offsetHeight + \"px\";\n ul.classList.add(this.config.collapsingClass);\n ul.classList.remove(this.config.collapseClass);\n ul.classList.remove(this.config.collapseInClass);\n this.setTransitioning(true);\n ul.addEventListener(\"transitionend\", comp);\n ul.style.height = \"0px\";\n var a = li.querySelector(this.config.triggerElement);\n a.setAttribute(\"aria-expanded\", \"false\");\n this.emit(\"hidden.metisMenu\", li);\n };\n\n _proto.setTransitioning = function setTransitioning(isTransitioning) {\n this.isTransitioning = isTransitioning;\n };\n\n return MetisMenu;\n}(events.EventEmitter);\n\nmodule.exports = MetisMenu;\n"]}