cdnjs.cloudflare.com
Open in
urlscan Pro
2606:4700::6811:180e
Public Scan
URL:
https://cdnjs.cloudflare.com/ajax/libs/jQuery.mmenu/8.5.21/mmenu.min.js
Submission Tags: falconsandbox
Submission: On November 20 via api from US — Scanned from GB
Submission Tags: falconsandbox
Submission: On November 20 via api from US — Scanned from GB
Form analysis
0 forms found in the DOMText Content
!function(n){var i={};function s(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,s),t.l=!0,t.exports}s.m=n,s.c=i,s.d=function(e,t,n){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(t,e){if(1&e&&(t=s(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(s.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)s.d(n,i,function(e){return t[e]}.bind(null,i));return n},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="",s(s.s=0)}([function(e,t,n){"use strict";n.r(t);var i={hooks:{},extensions:[],wrappers:[],navbar:{add:!0,sticky:!0,title:"Menu",titleLink:"parent"},onClick:{close:null,preventDefault:null,setSelected:!0},slidingSubmenus:!0},n={classNames:{inset:"Inset",nolistview:"NoListview",nopanel:"NoPanel",panel:"Panel",selected:"Selected",vertical:"Vertical"},language:null,openingInterval:25,panelNodetype:["ul","ol","div"],transitionDuration:400};function m(e,t){for(var n in"object"!=c(e)&&(e={}),"object"!=c(t)&&(t={}),t)t.hasOwnProperty(n)&&(void 0===e[n]?e[n]=t[n]:"object"==c(e[n])&&m(e[n],t[n]));return e}function c(e){return{}.toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function r(e,t,n){if("function"==typeof t){e=t.call(e);if(void 0!==e)return e}return null!==t&&"function"!=typeof t&&void 0!==t||void 0===n?t:n}function l(t,n,e){var i=!1,s=function(e){void 0!==e&&e.target!==t||(i||(t.removeEventListener("transitionend",s),t.removeEventListener("webkitTransitionEnd",s),n.call(t)),i=!0)};t.addEventListener("transitionend",s),t.addEventListener("webkitTransitionEnd",s),setTimeout(s,1.1*e)}function a(){return"mm-"+s++}var s=0;function o(e){return"mm-"==e.slice(0,3)?e.slice(3):e}var d={};function p(e,t){void 0===d[t]&&(d[t]={}),m(d[t],e)}function u(e){var e=e.split("."),t=document.createElement(e.shift());return e.forEach(function(e){t.classList.add(e)}),t}function b(e,t){return Array.prototype.slice.call(e.querySelectorAll(t))}function f(e,t){e=Array.prototype.slice.call(e.children);return t?e.filter(function(e){return e.matches(t)}):e}function h(e,t){for(var n=[],i=e.parentElement;i;)n.push(i),i=i.parentElement;return t?n.filter(function(e){return e.matches(t)}):n}function v(e){return e.filter(function(e){return!e.matches(".mm-hidden")})}function g(e){var t=[];return v(e).forEach(function(e){t.push.apply(t,f(e,"a.mm-listitem__text"))}),t.filter(function(e){return!e.matches(".mm-btn_next")})}function _(e,t,n){e.matches("."+t)&&(e.classList.remove(t),e.classList.add(n))}var y={};function L(e,t,n){"number"==typeof e&&(e="(min-width: "+e+"px)"),y[e]=y[e]||[],y[e].push({yes:t,no:n})}function w(e,t){for(var n=t.matches?"yes":"no",i=0;i<y[e].length;i++)y[e][i][n]()}p({Menu:"Menu"},"nl"),p({Menu:"منو"},"fa"),p({Menu:"Menü"},"de"),p({Menu:"Меню"},"ru");var E=(x.prototype.openPanel=function(t,e){var n=this;if(this.trigger("openPanel:before",[t]),t&&(t.matches(".mm-panel")||(t=t.closest(".mm-panel")),t)){if("boolean"!=typeof e&&(e=!0),t.parentElement.matches(".mm-listitem_vertical")){h(t,".mm-listitem_vertical").forEach(function(e){e.classList.add("mm-listitem_opened"),f(e,".mm-panel").forEach(function(e){e.classList.remove("mm-hidden")})});var i=h(t,".mm-panel").filter(function(e){return!e.parentElement.matches(".mm-listitem_vertical")});this.trigger("openPanel:start",[t]),i.length&&this.openPanel(i[0]),this.trigger("openPanel:finish",[t])}else{if(t.matches(".mm-panel_opened"))return;var i=f(this.node.pnls,".mm-panel"),s=f(this.node.pnls,".mm-panel_opened")[0];i.filter(function(e){return e!==t}).forEach(function(e){e.classList.remove("mm-panel_opened-parent")});for(var o=t.mmParent;o;)(o=o.closest(".mm-panel"))&&(o.parentElement.matches(".mm-listitem_vertical")||o.classList.add("mm-panel_opened-parent"),o=o.mmParent);i.forEach(function(e){e.classList.remove("mm-panel_highest")}),i.filter(function(e){return e!==s}).filter(function(e){return e!==t}).forEach(function(e){e.classList.add("mm-hidden")}),t.classList.remove("mm-hidden");var a=function(){s&&s.classList.remove("mm-panel_opened"),t.classList.add("mm-panel_opened"),t.matches(".mm-panel_opened-parent")?(s&&s.classList.add("mm-panel_highest"),t.classList.remove("mm-panel_opened-parent")):(s&&s.classList.add("mm-panel_opened-parent"),t.classList.add("mm-panel_highest")),n.trigger("openPanel:start",[t])},r=function(){s&&(s.classList.remove("mm-panel_highest"),s.classList.add("mm-hidden")),t.classList.remove("mm-panel_highest"),n.trigger("openPanel:finish",[t])};e&&!t.matches(".mm-panel_noanimation")?setTimeout(function(){l(t,function(){r()},n.conf.transitionDuration),a()},this.conf.openingInterval):(a(),r())}this.trigger("openPanel:after",[t])}},x.prototype.closePanel=function(e){this.trigger("closePanel:before",[e]);var t=e.parentElement;t.matches(".mm-listitem_vertical")&&(t.classList.remove("mm-listitem_opened"),e.classList.add("mm-hidden"),this.trigger("closePanel",[e])),this.trigger("closePanel:after",[e])},x.prototype.closeAllPanels=function(e){this.trigger("closeAllPanels:before"),this.node.pnls.querySelectorAll(".mm-listitem").forEach(function(e){e.classList.remove("mm-listitem_selected"),e.classList.remove("mm-listitem_opened")});var t=f(this.node.pnls,".mm-panel"),n=e||t[0];f(this.node.pnls,".mm-panel").forEach(function(e){e!==n&&(e.classList.remove("mm-panel_opened"),e.classList.remove("mm-panel_opened-parent"),e.classList.remove("mm-panel_highest"),e.classList.add("mm-hidden"))}),this.openPanel(n,!1),this.trigger("closeAllPanels:after")},x.prototype.togglePanel=function(e){var t=e.parentElement;t.matches(".mm-listitem_vertical")&&this[t.matches(".mm-listitem_opened")?"closePanel":"openPanel"](e)},x.prototype.setSelected=function(e){this.trigger("setSelected:before",[e]),b(this.node.menu,".mm-listitem_selected").forEach(function(e){e.classList.remove("mm-listitem_selected")}),e.classList.add("mm-listitem_selected"),this.trigger("setSelected:after",[e])},x.prototype.bind=function(e,t){this.hook[e]=this.hook[e]||[],this.hook[e].push(t)},x.prototype.trigger=function(e,t){if(this.hook[e])for(var n=0,i=this.hook[e].length;n<i;n++)this.hook[e][n].apply(this,t)},x.prototype._initAPI=function(){var e=this,n=this;this.API={},this._api.forEach(function(t){e.API[t]=function(){var e=n[t].apply(n,arguments);return void 0===e?n.API:e}}),this.node.menu.mmApi=this.API},x.prototype._initHooks=function(){for(var e in this.opts.hooks)this.bind(e,this.opts.hooks[e])},x.prototype._initWrappers=function(){this.trigger("initWrappers:before");for(var e=0;e<this.opts.wrappers.length;e++){var t=x.wrappers[this.opts.wrappers[e]];"function"==typeof t&&t.call(this)}this.trigger("initWrappers:after")},x.prototype._initAddons=function(){for(var e in this.trigger("initAddons:before"),x.addons)x.addons[e].call(this);this.trigger("initAddons:after")},x.prototype._initExtensions=function(){var n=this;this.trigger("initExtensions:before"),"array"==c(this.opts.extensions)&&(this.opts.extensions={all:this.opts.extensions}),Object.keys(this.opts.extensions).forEach(function(e){var t=n.opts.extensions[e].map(function(e){return"mm-menu_"+e});t.length&&L(e,function(){t.forEach(function(e){n.node.menu.classList.add(e)})},function(){t.forEach(function(e){n.node.menu.classList.remove(e)})})}),this.trigger("initExtensions:after")},x.prototype._initMenu=function(){var t=this;this.trigger("initMenu:before"),this.node.wrpr=this.node.wrpr||this.node.menu.parentElement,this.node.wrpr.classList.add("mm-wrapper"),this.node.menu.id=this.node.menu.id||a();var n=u("div.mm-panels");f(this.node.menu).forEach(function(e){-1<t.conf.panelNodetype.indexOf(e.nodeName.toLowerCase())&&n.append(e)}),this.node.menu.append(n),this.node.pnls=n,this.node.menu.classList.add("mm-menu"),this.trigger("initMenu:after")},x.prototype._initPanels=function(){var s=this;this.trigger("initPanels:before"),this.clck.push(function(e,t){if(t.inMenu){var n=e.getAttribute("href");if(n&&1<n.length&&"#"==n.slice(0,1))try{var i=b(s.node.menu,n)[0];if(i&&i.matches(".mm-panel"))return e.parentElement.matches(".mm-listitem_vertical")?s.togglePanel(i):s.openPanel(i),!0}catch(e){}}}),f(this.node.pnls).forEach(function(e){s.initPanel(e)}),this.trigger("initPanels:after")},x.prototype.initPanel=function(e){var t,n=this,i=this.conf.panelNodetype.join(", ");e.matches(i)&&(e.matches(".mm-panel")||(e=this._initPanel(e)),e)&&((t=[]).push.apply(t,f(e,"."+this.conf.classNames.panel)),f(e,".mm-listview").forEach(function(e){f(e,".mm-listitem").forEach(function(e){t.push.apply(t,f(e,i))})}),t.forEach(function(e){n.initPanel(e)}))},x.prototype._initPanel=function(e){var t=this;if(this.trigger("initPanel:before",[e]),_(e,this.conf.classNames.panel,"mm-panel"),_(e,this.conf.classNames.nopanel,"mm-nopanel"),_(e,this.conf.classNames.inset,"mm-listview_inset"),e.matches(".mm-listview_inset")&&e.classList.add("mm-nopanel"),e.matches(".mm-nopanel"))return null;var n,i=e.id||a(),s=e.matches("."+this.conf.classNames.vertical)||!this.opts.slidingSubmenus;e.classList.remove(this.conf.classNames.vertical),e.matches("ul, ol")&&(e.removeAttribute("id"),n=u("div"),e.before(n),n.append(e),e=n),e.id=i,e.classList.add("mm-panel"),e.classList.add("mm-hidden");var o,i=[e.parentElement].filter(function(e){return e.matches("li")})[0];return s?i&&i.classList.add("mm-listitem_vertical"):this.node.pnls.append(e),i&&(((i.mmChild=e).mmParent=i)&&i.matches(".mm-listitem")&&!f(i,".mm-btn").length)&&(o=f(i,".mm-listitem__text")[0])&&((s=u("a.mm-btn.mm-btn_next.mm-listitem__btn")).setAttribute("href","#"+e.id),o.matches("span")?(s.classList.add("mm-listitem__text"),s.innerHTML=o.innerHTML,i.insertBefore(s,o.nextElementSibling),o.remove()):i.insertBefore(s,f(i,".mm-panel")[0])),this._initNavbar(e),f(e,"ul, ol").forEach(function(e){t.initListview(e)}),this.trigger("initPanel:after",[e]),e},x.prototype._initNavbar=function(e){if(this.trigger("initNavbar:before",[e]),!f(e,".mm-navbar").length){var t=null,n=null;if(e.getAttribute("data-mm-parent")?n=b(this.node.pnls,e.getAttribute("data-mm-parent"))[0]:(t=e.mmParent)&&(n=t.closest(".mm-panel")),!t||!t.matches(".mm-listitem_vertical")){var i=u("div.mm-navbar");this.opts.navbar.add?this.opts.navbar.sticky&&i.classList.add("mm-navbar_sticky"):i.classList.add("mm-hidden"),n&&((o=u("a.mm-btn.mm-btn_prev.mm-navbar__btn")).setAttribute("href","#"+n.id),i.append(o));var s=null;t?s=f(t,".mm-listitem__text")[0]:n&&(s=b(n,'a[href="#'+e.id+'"]')[0]);var o=u("a.mm-navbar__title"),t=u("span");switch(o.append(t),t.innerHTML=e.getAttribute("data-mm-title")||(s?s.textContent:"")||this.i18n(this.opts.navbar.title)||this.i18n("Menu"),this.opts.navbar.titleLink){case"anchor":s&&o.setAttribute("href",s.getAttribute("href"));break;case"parent":n&&o.setAttribute("href","#"+n.id)}i.append(o),e.prepend(i),this.trigger("initNavbar:after",[e])}}},x.prototype.initListview=function(e){var t=this;this.trigger("initListview:before",[e]),_(e,this.conf.classNames.nolistview,"mm-nolistview"),e.matches(".mm-nolistview")||(e.classList.add("mm-listview"),f(e).forEach(function(e){e.classList.add("mm-listitem"),_(e,t.conf.classNames.selected,"mm-listitem_selected"),f(e,"a, span").forEach(function(e){e.matches(".mm-btn")||e.classList.add("mm-listitem__text")})})),this.trigger("initListview:after",[e])},x.prototype._initOpened=function(){this.trigger("initOpened:before");var e=this.node.pnls.querySelectorAll(".mm-listitem_selected"),t=null;e.forEach(function(e){(t=e).classList.remove("mm-listitem_selected")}),t&&t.classList.add("mm-listitem_selected");e=t?t.closest(".mm-panel"):f(this.node.pnls,".mm-panel")[0];this.openPanel(e,!1),this.trigger("initOpened:after")},x.prototype._initAnchors=function(){var a=this;this.trigger("initAnchors:before"),document.addEventListener("click",function(e){var t=e.target.closest("a[href]");if(t){for(var n={inMenu:t.closest(".mm-menu")===a.node.menu,inListview:t.matches(".mm-listitem > a"),toExternal:t.matches('[rel="external"]')||t.matches('[target="_blank"]')},i={close:null,setSelected:null,preventDefault:"#"==t.getAttribute("href").slice(0,1)},s=0;s<a.clck.length;s++){var o=a.clck[s].call(a,t,n);if(o){if("boolean"==typeof o)return void e.preventDefault();"object"==c(o)&&(i=m(o,i))}}n.inMenu&&n.inListview&&!n.toExternal&&(r(t,a.opts.onClick.setSelected,i.setSelected)&&a.setSelected(t.parentElement),r(t,a.opts.onClick.preventDefault,i.preventDefault)&&e.preventDefault(),r(t,a.opts.onClick.close,i.close)&&a.opts.offCanvas&&"function"==typeof a.close&&a.close())}},!0),this.trigger("initAnchors:after")},x.prototype.i18n=function(e){return"string"==typeof(t=this.conf.language)&&void 0!==d[t]&&d[t][e]||e;var t},x.options=i,x.configs=n,x.addons={},x.wrappers={},x.node={},x.vars={},x);function x(e,t,n){return this.opts=m(t,x.options),this.conf=m(n,x.configs),this._api=["bind","initPanel","initListview","openPanel","closePanel","closeAllPanels","setSelected"],this.node={},this.vars={},this.hook={},this.clck=[],this.node.menu="string"==typeof e?document.querySelector(e):e,"function"==typeof this._deprecatedWarnings&&this._deprecatedWarnings(),this._initWrappers(),this._initAddons(),this._initExtensions(),this._initHooks(),this._initAPI(),this._initMenu(),this._initPanels(),this._initOpened(),this._initAnchors(),function(){for(var e in y)!function(t){var n=window.matchMedia(t);w(t,n),n.onchange=function(e){w(t,n)}}(e)}(),this}function P(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""}function k(e,t,n){var i=t.split(".");e[t="mmEvent"+P(i[0])+P(i[1])]=e[t]||[],e[t].push(n),e.addEventListener(i[0],n)}function S(t,e){var n=e.split(".");e="mmEvent"+P(n[0])+P(n[1]),(t[e]||[]).forEach(function(e){t.removeEventListener(n[0],e)})}E.options.offCanvas={blockUI:!0,moveBackground:!0},E.configs.offCanvas={clone:!1,menu:{insertMethod:"prepend",insertSelector:"body"},page:{nodetype:"div",selector:null,noSelector:[]}},E.prototype.open=function(){var e=this;this.trigger("open:before"),this.vars.opened||(this._openSetup(),setTimeout(function(){e._openStart()},this.conf.openingInterval),this.trigger("open:after"))},E.prototype._openSetup=function(){var e,t,n=this,i=this.opts.offCanvas;this.closeAllOthers(),e=window,t={force:!0},s="resize.page".split("."),(e["mmEvent"+P(s[0])+P(s[1])]||[]).forEach(function(e){e(t)});var s=["mm-wrapper_opened"];i.blockUI&&s.push("mm-wrapper_blocking"),"modal"==i.blockUI&&s.push("mm-wrapper_modal"),i.moveBackground&&s.push("mm-wrapper_background"),s.forEach(function(e){n.node.wrpr.classList.add(e)}),setTimeout(function(){n.vars.opened=!0},this.conf.openingInterval),this.node.menu.classList.add("mm-menu_opened")},E.prototype._openStart=function(){var e=this;l(E.node.page,function(){e.trigger("open:finish")},this.conf.transitionDuration),this.trigger("open:start"),this.node.wrpr.classList.add("mm-wrapper_opening")},E.prototype.close=function(){var t=this;this.trigger("close:before"),this.vars.opened&&(l(E.node.page,function(){t.node.menu.classList.remove("mm-menu_opened"),["mm-wrapper_opened","mm-wrapper_blocking","mm-wrapper_modal","mm-wrapper_background"].forEach(function(e){t.node.wrpr.classList.remove(e)}),t.vars.opened=!1,t.trigger("close:finish")},this.conf.transitionDuration),this.trigger("close:start"),this.node.wrpr.classList.remove("mm-wrapper_opening"),this.trigger("close:after"))},E.prototype.closeAllOthers=function(){var t=this;b(document.body,".mm-menu_offcanvas").forEach(function(e){e===t.node.menu||(e=e.mmApi)&&e.close&&e.close()})},E.prototype.setPage=function(e){this.trigger("setPage:before",[e]);var t,n,i=this.conf.offCanvas;e||(n=(n="string"==typeof i.page.selector?b(document.body,i.page.selector):f(document.body,i.page.nodetype)).filter(function(e){return!e.matches(".mm-menu, .mm-wrapper__blocker")}),i.page.noSelector.length&&(n=n.filter(function(e){return!e.matches(i.page.noSelector.join(", "))})),1<n.length&&(t=u("div"),n[0].before(t),n.forEach(function(e){t.append(e)}),n=[t]),e=n[0]),e.classList.add("mm-page"),e.classList.add("mm-slideout"),e.id=e.id||a(),E.node.page=e,this.trigger("setPage:after",[e])};var M;p({"Close menu":"Menu sluiten","Close submenu":"Submenu sluiten","Open submenu":"Submenu openen","Toggle submenu":"Submenu wisselen"},"nl"),p({"Close menu":"بستن منو","Close submenu":"بستن زیرمنو","Open submenu":"بازکردن زیرمنو","Toggle submenu":"سوییچ زیرمنو"},"fa"),p({"Close menu":"Menü schließen","Close submenu":"Untermenü schließen","Open submenu":"Untermenü öffnen","Toggle submenu":"Untermenü wechseln"},"de"),p({"Close menu":"Закрыть меню","Close submenu":"Закрыть подменю","Open submenu":"Открыть подменю","Toggle submenu":"Переключить подменю"},"ru"),E.options.screenReader={aria:!0,text:!0},E.configs.screenReader={text:{closeMenu:"Close menu",closeSubmenu:"Close submenu",openSubmenu:"Open submenu",toggleSubmenu:"Toggle submenu"}},M=function(e,t,n){(e[t]=n)?e.setAttribute(t,n.toString()):e.removeAttribute(t)},E.sr_aria=function(e,t,n){M(e,"aria-"+t,n)},E.sr_role=function(e,t){M(e,"role",t)},E.sr_text=function(e){return'<span class="mm-sronly">'+e+"</span>"};var A="ontouchstart"in window||!!navigator.msMaxTouchPoints||!1;E.options.scrollBugFix={fix:!0};E.options.autoHeight={height:"default"};E.options.backButton={close:!1,open:!1};E.options.columns={add:!1,visible:{min:1,max:3}};E.options.counters={add:!1,addTo:"panels",count:!1},E.configs.classNames.counters={counter:"Counter"};E.options.dividers={add:!1,addTo:"panels"},E.configs.classNames.divider="Divider";function T(e,t){return"string"==typeof e&&"%"==e.slice(-1)&&(e=t*((e=parseInt(e.slice(0,-1),10))/100)),e}var C="ontouchstart"in window||!!navigator.msMaxTouchPoints||!1,N={top:0,right:0,bottom:0,left:0},H={start:15,swipe:15},j={x:["Right","Left"],y:["Down","Up"]},D=(z.prototype.start=function(e){this.currentPosition={x:e.touches?e.touches[0].pageX:e.pageX||0,y:e.touches?e.touches[0].pageY:e.pageY||0};var t=this.surface.clientWidth,n=this.surface.clientHeight,e=T(this.area.top,n);"number"==typeof e&&this.currentPosition.y<e||("number"==typeof(e=T(this.area.right,t))&&(e=t-e,this.currentPosition.x>e)||("number"==typeof(e=T(this.area.bottom,n))&&(e=n-e,this.currentPosition.y>e)||("number"==typeof(t=T(this.area.left,t))&&this.currentPosition.x<t||(this.startPosition={x:this.currentPosition.x,y:this.currentPosition.y},this.state=1))))},z.prototype.stop=function(e){var t,n;2==this.state&&(n=this._dragDirection(),t=this._eventDetail(n),this._dispatchEvents("drag*End",t),Math.abs(this.movement[this.axis])>this.treshold.swipe&&(n=this._swipeDirection(),t.direction=n,this._dispatchEvents("swipe*",t))),this.state=0},z.prototype.move=function(e){switch(this.state){case 1:case 2:e={x:e.changedTouches?e.touches[0].pageX:e.pageX||0,y:e.changedTouches?e.touches[0].pageY:e.pageY||0};this.movement={x:e.x-this.currentPosition.x,y:e.y-this.currentPosition.y},this.distance={x:e.x-this.startPosition.x,y:e.y-this.startPosition.y},this.currentPosition={x:e.x,y:e.y},this.axis=Math.abs(this.distance.x)>Math.abs(this.distance.y)?"x":"y";e=this._dragDirection(),e=this._eventDetail(e);1==this.state&&Math.abs(this.distance[this.axis])>this.treshold.start&&(this._dispatchEvents("drag*Start",e),this.state=2),2==this.state&&this._dispatchEvents("drag*Move",e)}},z.prototype._eventDetail=function(e){var t=this.distance.x,n=this.distance.y;return"x"==this.axis&&(t-=0<t?this.treshold.start:0-this.treshold.start),"y"==this.axis&&(n-=0<n?this.treshold.start:0-this.treshold.start),{axis:this.axis,direction:e,movementX:this.movement.x,movementY:this.movement.y,distanceX:t,distanceY:n}},z.prototype._dispatchEvents=function(e,t){var n=new CustomEvent(e.replace("*",""),{detail:t});this.surface.dispatchEvent(n);n=new CustomEvent(e.replace("*",this.axis.toUpperCase()),{detail:t});this.surface.dispatchEvent(n);t=new CustomEvent(e.replace("*",t.direction),{detail:t});this.surface.dispatchEvent(t)},z.prototype._dragDirection=function(){return j[this.axis][0<this.distance[this.axis]?0:1]},z.prototype._swipeDirection=function(){return j[this.axis][0<this.movement[this.axis]?0:1]},z),I=null,O=null,q=0,B=function(t,n,e){switch(t.position="left",t.zposition="back",["right","top","bottom"].forEach(function(e){-1<n.indexOf("position-"+e)&&(t.position=e)}),["front","top","bottom"].forEach(function(e){-1<n.indexOf("position-"+e)&&(t.zposition="front")}),I.area={top:"bottom"==t.position?"75%":0,right:"left"==t.position?"75%":0,bottom:"top"==t.position?"75%":0,left:"right"==t.position?"75%":0},t.position){case"top":case"bottom":t.axis="y";break;default:t.axis="x"}switch(t.position){case"top":t.direction="Down";break;case"right":t.direction="Left";break;case"bottom":t.direction="Up";break;default:t.direction="Right"}return"front"===t.zposition?t.slideOutNodes=[e]:t.slideOutNodes=b(document.body,".mm-slideout"),t};function z(e,t,n){this.surface=e,this.area=m(t,N),this.treshold=m(n,H),this.surface.mmHasDragEvents||(this.surface.addEventListener(C?"touchstart":"mousedown",this.start.bind(this)),this.surface.addEventListener(C?"touchend":"mouseup",this.stop.bind(this)),this.surface.addEventListener(C?"touchleave":"mouseleave",this.stop.bind(this)),this.surface.addEventListener(C?"touchmove":"mousemove",this.move.bind(this))),this.surface.mmHasDragEvents=!0}E.options.drag={open:!1,node:null};E.options.dropdown={drop:!1,fitViewport:!0,event:"click",position:{},tip:!0},E.configs.dropdown={offset:{button:{x:-5,y:5},viewport:{x:20,y:20}},height:{max:880},width:{max:440}};E.configs.fixedElements={insertMethod:"append",insertSelector:"body"},E.configs.classNames.fixedElements={fixed:"Fixed"};E.options.iconbar={use:!1,top:[],bottom:[],position:"left",type:"default"};E.options.iconPanels={add:!1,blockPanel:!0,hideDivider:!1,hideNavbar:!0,visible:3};E.options.keyboardNavigation={enable:!1,enhance:!1};E.options.lazySubmenus={load:!1};function R(){var m,l=this,e=this.opts.navbars;void 0!==e&&(e instanceof Array||(e=[e]),m={},e.length&&(e.forEach(function(e){if("boolean"==typeof(n=e)&&n&&(n={}),"object"!=typeof n&&(n={}),void 0===n.content&&(n.content=["prev","title"]),n.content instanceof Array||(n.content=[n.content]),void 0===n.use&&(n.use=!0),"boolean"==typeof n.use&&n.use&&(n.use=!0),!(e=n).use)return!1;var t=u("div.mm-navbar"),n=e.position;"bottom"!==n&&(n="top"),m[n]||(m[n]=u("div.mm-navbars_"+n)),m[n].append(t);for(var i=0,s=e.content.length;i<s;i++){var o,a,r,c=e.content[i];"string"==typeof c?"function"==typeof(o=R.navbarContents[c])?o.call(l,t):((a=u("span")).innerHTML=c,1==(r=f(a)).length&&(a=r[0]),t.append(a)):t.append(c)}"string"==typeof e.type&&"function"==typeof(o=R.navbarTypes[e.type])&&o.call(l,t),"boolean"!=typeof e.use&&L(e.use,function(){t.classList.remove("mm-hidden"),E.sr_aria(t,"hidden",!1)},function(){t.classList.add("mm-hidden"),E.sr_aria(t,"hidden",!0)})}),this.bind("initMenu:after",function(){for(var e in m)l.node.menu["bottom"==e?"append":"prepend"](m[e])})))}E.options.navbars=[],E.configs.navbars={breadcrumbs:{separator:"/",removeFirst:!1}},E.configs.classNames.navbars={panelPrev:"Prev",panelTitle:"Title"},R.navbarContents={breadcrumbs:function(e){var a=this,t=u("div.mm-navbar__breadcrumbs");e.append(t),this.bind("initNavbar:after",function(e){if(!e.querySelector(".mm-navbar__breadcrumbs")){f(e,".mm-navbar")[0].classList.add("mm-hidden");for(var t,n=[],i=u("span.mm-navbar__breadcrumbs"),s=e,o=!0;s;)(s=s.closest(".mm-panel")).parentElement.matches(".mm-listitem_vertical")||(!(t=b(s,".mm-navbar__title span")[0])||(t=t.textContent).length&&n.unshift(o?"<span>"+t+"</span>":'<a href="#'+s.id+'">'+t+"</a>"),o=!1),s=s.mmParent;a.conf.navbars.breadcrumbs.removeFirst&&n.shift(),i.innerHTML=n.join('<span class="mm-separator">'+a.conf.navbars.breadcrumbs.separator+"</span>"),f(e,".mm-navbar")[0].append(i)}}),this.bind("openPanel:start",function(e){e=e.querySelector(".mm-navbar__breadcrumbs");t.innerHTML=e?e.innerHTML:""}),this.bind("initNavbar:after:sr-aria",function(e){b(e,".mm-breadcrumbs a").forEach(function(e){E.sr_aria(e,"owns",e.getAttribute("href").slice(1))})})},close:function(e){var t=this,n=u("a.mm-btn.mm-btn_close.mm-navbar__btn");e.append(n),this.bind("setPage:after",function(e){n.setAttribute("href","#"+e.id)}),this.bind("setPage:after:sr-text",function(){n.innerHTML=E.sr_text(t.i18n(t.conf.screenReader.text.closeMenu))})},prev:function(e){var t,n,i=this,s=u("a.mm-btn.mm-btn_prev.mm-navbar__btn");e.append(s),this.bind("initNavbar:after",function(e){f(e,".mm-navbar")[0].classList.add("mm-hidden")}),this.bind("openPanel:start",function(e){e.parentElement.matches(".mm-listitem_vertical")||((n=e.querySelector("."+i.conf.classNames.navbars.panelPrev))||(n=e.querySelector(".mm-navbar__btn.mm-btn_prev")),t=n?n.getAttribute("href"):"",n=n?n.innerHTML:"",t?s.setAttribute("href",t):s.removeAttribute("href"),s.classList[t||n?"remove":"add"]("mm-hidden"),s.innerHTML=n)}),this.bind("initNavbar:after:sr-aria",function(e){E.sr_aria(e.querySelector(".mm-navbar"),"hidden",!0)}),this.bind("openPanel:start:sr-aria",function(e){E.sr_aria(s,"hidden",s.matches(".mm-hidden")),E.sr_aria(s,"owns",(s.getAttribute("href")||"").slice(1))})},searchfield:function(e){"object"!=c(this.opts.searchfield)&&(this.opts.searchfield={});var t=u("div.mm-navbar__searchfield");e.append(t),this.opts.searchfield.add=!0,this.opts.searchfield.addTo=[t]},title:function(e){var t,n,i,s=this,o=u("a.mm-navbar__title"),a=u("span");o.append(a),e.append(o),this.bind("openPanel:start",function(e){e.parentElement.matches(".mm-listitem_vertical")||((n=e.querySelector("."+s.conf.classNames.navbars.panelTitle))||(n=e.querySelector(".mm-navbar__title span")),(t=n&&n.closest("a")?n.closest("a").getAttribute("href"):"")?o.setAttribute("href",t):o.removeAttribute("href"),n=n?n.innerHTML:"",a.innerHTML=n)}),this.bind("openPanel:start:sr-aria",function(e){var t;s.opts.screenReader.text&&(i||f(s.node.menu,".mm-navbars_top, .mm-navbars_bottom").forEach(function(e){e=e.querySelector(".mm-btn_prev");e&&(i=e)}),i&&(t=!0,"parent"==s.opts.navbar.titleLink&&(t=!i.matches(".mm-hidden")),E.sr_aria(o,"hidden",t)))})}},R.navbarTypes={tabs:function(e){var n=this;e.classList.add("mm-navbar_tabs"),e.parentElement.classList.add("mm-navbars_has-tabs");var i=f(e,"a");e.addEventListener("click",function(e){var t=e.target;if(t.matches("a"))if(t.matches(".mm-navbar__tab_selected"))e.stopImmediatePropagation();else try{n.openPanel(n.node.menu.querySelector(t.getAttribute("href")),!1),e.stopImmediatePropagation()}catch(e){}}),this.bind("openPanel:start",function e(t){i.forEach(function(e){e.classList.remove("mm-navbar__tab_selected")});var n=i.filter(function(e){return e.matches('[href="#'+t.id+'"]')})[0];n?n.classList.add("mm-navbar__tab_selected"):(n=t.mmParent)&&e.call(this,n.closest(".mm-panel"))})}};E.options.pageScroll={scroll:!1,update:!1},E.configs.pageScroll={scrollOffset:0,updateOffset:50};p({Search:"Zoeken","No results found.":"Geen resultaten gevonden.",cancel:"annuleren"},"nl"),p({Search:"جستجو","No results found.":"نتیجهای یافت نشد.",cancel:"انصراف"},"fa"),p({Search:"Suche","No results found.":"Keine Ergebnisse gefunden.",cancel:"beenden"},"de"),p({Search:"Найти","No results found.":"Ничего не найдено.",cancel:"отменить"},"ru"),E.options.searchfield={add:!1,addTo:"panels",cancel:!1,noResults:"No results found.",placeholder:"Search",panel:{add:!1,dividers:!0,fx:"none",id:null,splash:null,title:"Search"},search:!0,showTextItems:!1,showSubPanels:!0},E.configs.searchfield={clear:!1,form:!1,input:!1,submit:!1};E.prototype.search=function(i,s){var o=this,a=this.opts.searchfield;this.conf.searchfield,s=(s=s||""+i.value).toLowerCase().trim();var t,r,e=i.mmSearchfield,n=b(i.closest(".mm-searchfield"),".mm-btn"),c=f(this.node.pnls,".mm-panel_search")[0],m=e.panels,l=e.noresults,d=e.listitems,p=e.dividers;d.forEach(function(e){e.classList.remove("mm-listitem_nosubitems"),e.classList.remove("mm-listitem_onlysubitems"),e.classList.remove("mm-hidden")}),c&&(f(c,".mm-listview")[0].innerHTML=""),m.forEach(function(e){e.scrollTop=0}),s.length?(p.forEach(function(e){e.classList.add("mm-hidden")}),d.forEach(function(e){var t=f(e,".mm-listitem__text")[0],n=!1;t&&-1<Array.prototype.slice.call(t.childNodes).filter(function(e){return 3==e.nodeType}).map(function(e){return e.textContent}).join(" ").toLowerCase().indexOf(s)&&(t.matches(".mm-listitem__btn")?a.showSubPanels&&(n=!0):(t.matches("a")||a.showTextItems)&&(n=!0)),n||e.classList.add("mm-hidden")}),t=d.filter(function(e){return!e.matches(".mm-hidden")}).length,a.panel.add?(r=[],m.forEach(function(e){var t,n=v(b(e,".mm-listitem"));(n=n.filter(function(e){return!e.matches(".mm-hidden")})).length&&(a.panel.dividers&&(t=u("li.mm-divider"),(e=b(e,".mm-navbar__title")[0])&&(t.innerHTML=e.innerHTML,r.push(t))),n.forEach(function(e){r.push(e.cloneNode(!0))}))}),r.forEach(function(e){e.querySelectorAll(".mm-toggle, .mm-check").forEach(function(e){e.remove()})}),(e=f(c,".mm-listview")[0]).append.apply(e,r),this.openPanel(c)):(a.showSubPanels&&m.forEach(function(e){v(b(e,".mm-listitem")).forEach(function(e){e=e.mmChild;e&&b(e,".mm-listitem").forEach(function(e){e.classList.remove("mm-hidden")})})}),function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var i=Array(e),s=0,t=0;t<n;t++)for(var o=arguments[t],a=0,r=o.length;a<r;a++,s++)i[s]=o[a];return i}(m).reverse().forEach(function(e,t){var n=e.mmParent;n&&(v(b(e,".mm-listitem")).length?(n.matches(".mm-hidden")&&n.classList.remove("mm-hidden"),n.classList.add("mm-listitem_onlysubitems")):i.closest(".mm-panel")||((e.matches(".mm-panel_opened")||e.matches(".mm-panel_opened-parent"))&&setTimeout(function(){o.openPanel(n.closest(".mm-panel"))},(t+1)*(1.5*o.conf.openingInterval)),n.classList.add("mm-listitem_nosubitems")))}),m.forEach(function(e){v(b(e,".mm-listitem")).forEach(function(e){h(e,".mm-listitem_vertical").forEach(function(e){e.matches(".mm-hidden")&&(e.classList.remove("mm-hidden"),e.classList.add("mm-listitem_onlysubitems"))})})}),m.forEach(function(e){v(b(e,".mm-listitem")).forEach(function(i){var e=function(e){for(var t=[],n=i.previousElementSibling;n;)n.matches(e)&&t.push(n),n=n.previousElementSibling;return t}(".mm-divider")[0];e&&e.classList.remove("mm-hidden")})})),n.forEach(function(e){return e.classList.remove("mm-hidden")}),l.forEach(function(e){b(e,".mm-panel__noresultsmsg").forEach(function(e){return e.classList[t?"add":"remove"]("mm-hidden")})}),a.panel.add&&(a.panel.splash&&b(c,".mm-panel__content").forEach(function(e){return e.classList.add("mm-hidden")}),d.forEach(function(e){return e.classList.remove("mm-hidden")}),p.forEach(function(e){return e.classList.remove("mm-hidden")}))):(d.forEach(function(e){return e.classList.remove("mm-hidden")}),p.forEach(function(e){return e.classList.remove("mm-hidden")}),n.forEach(function(e){return e.classList.add("mm-hidden")}),l.forEach(function(e){b(e,".mm-panel__noresultsmsg").forEach(function(e){return e.classList.add("mm-hidden")})}),a.panel.add&&(a.panel.splash?b(c,".mm-panel__content").forEach(function(e){return e.classList.remove("mm-hidden")}):i.closest(".mm-panel_search")||(c=f(this.node.pnls,".mm-panel_opened-parent"),this.openPanel(c.slice(-1)[0])))),this.trigger("updateListview")};E.options.sectionIndexer={add:!1,addTo:"panels"};E.options.setSelected={current:!0,hover:!1,parent:!1};var U;E.options.sidebar={collapsed:{use:!1,blockMenu:!0,hideDivider:!1,hideNavbar:!0},expanded:{use:!1,initial:"open"}},E.configs.classNames.toggles={toggle:"Toggle",check:"Check"},E.addons={offcanvas:function(){var e,t,s=this;this.opts.offCanvas&&("object"!=typeof(t=this.opts.offCanvas)&&(t={}),t=t,this.opts.offCanvas=m(t,E.options.offCanvas),e=this.conf.offCanvas,this._api.push("open","close","setPage"),this.vars.opened=!1,this.bind("initMenu:before",function(){e.clone&&(s.node.menu=s.node.menu.cloneNode(!0),s.node.menu.id&&(s.node.menu.id="mm-"+s.node.menu.id),b(s.node.menu,"[id]").forEach(function(e){e.id="mm-"+e.id})),s.node.wrpr=document.body,document.querySelector(e.menu.insertSelector)[e.menu.insertMethod](s.node.menu)}),this.bind("initMenu:after",function(){(function(){var t=this;this.trigger("initBlocker:before");var e,n=this.opts.offCanvas,i=this.conf.offCanvas;n.blockUI&&(E.node.blck||((e=u("div.mm-wrapper__blocker.mm-slideout")).innerHTML="<a></a>",document.querySelector(i.menu.insertSelector).append(e),E.node.blck=e),e=function(e){e.preventDefault(),e.stopPropagation(),t.node.wrpr.matches(".mm-wrapper_modal")||t.close()},E.node.blck.addEventListener("mousedown",e),E.node.blck.addEventListener("touchstart",e),E.node.blck.addEventListener("touchmove",e),this.trigger("initBlocker:after"))}).call(s),s.setPage(E.node.page),function(){var t=this;S(document.body,"keydown.tabguard"),k(document.body,"keydown.tabguard",function(e){9==e.keyCode&&t.node.wrpr.matches(".mm-wrapper_opened")&&e.preventDefault()})}.call(s),s.node.menu.classList.add("mm-menu_offcanvas");var e,t=window.location.hash;!t||(e=o(s.node.menu.id))&&e==t.slice(1)&&setTimeout(function(){s.open()},1e3)}),this.bind("setPage:after",function(t){E.node.blck&&f(E.node.blck,"a").forEach(function(e){e.setAttribute("href","#"+t.id)})}),this.bind("open:start:sr-aria",function(){E.sr_aria(s.node.menu,"hidden",!1)}),this.bind("close:finish:sr-aria",function(){E.sr_aria(s.node.menu,"hidden",!0)}),this.bind("initMenu:after:sr-aria",function(){E.sr_aria(s.node.menu,"hidden",!0)}),this.bind("initBlocker:after:sr-text",function(){f(E.node.blck,"a").forEach(function(e){e.innerHTML=E.sr_text(s.i18n(s.conf.screenReader.text.closeMenu))})}),this.clck.push(function(e,t){var n=o(s.node.menu.id);if(n&&e.matches('[href="#'+n+'"]')){if(t.inMenu)return s.open(),!0;var i=e.closest(".mm-menu");if(i){t=i.mmApi;if(t&&t.close)return t.close(),l(i,function(){s.open()},s.conf.transitionDuration),!0}return s.open(),!0}if((n=E.node.page.id)&&e.matches('[href="#'+n+'"]'))return s.close(),!0}))},screenReader:function(){var e,i=this,e=("boolean"==typeof(e=this.opts.screenReader)&&(e={aria:e,text:e}),"object"!=typeof e&&(e={}),e);this.opts.screenReader=m(e,E.options.screenReader);var n=this.conf.screenReader;e.aria&&(this.bind("initAddons:after",function(){i.bind("initMenu:after",function(){this.trigger("initMenu:after:sr-aria",[].slice.call(arguments))}),i.bind("initNavbar:after",function(){this.trigger("initNavbar:after:sr-aria",[].slice.call(arguments))}),i.bind("openPanel:start",function(){this.trigger("openPanel:start:sr-aria",[].slice.call(arguments))}),i.bind("close:start",function(){this.trigger("close:start:sr-aria",[].slice.call(arguments))}),i.bind("close:finish",function(){this.trigger("close:finish:sr-aria",[].slice.call(arguments))}),i.bind("open:start",function(){this.trigger("open:start:sr-aria",[].slice.call(arguments))}),i.bind("initOpened:after",function(){this.trigger("initOpened:after:sr-aria",[].slice.call(arguments))})}),this.bind("updateListview",function(){i.node.pnls.querySelectorAll(".mm-listitem").forEach(function(e){E.sr_aria(e,"hidden",e.matches(".mm-hidden"))})}),this.bind("openPanel:start",function(t){var e=b(i.node.pnls,".mm-panel").filter(function(e){return e!==t}).filter(function(e){return!e.parentElement.matches(".mm-panel")}),n=[t];b(t,".mm-listitem_vertical .mm-listitem_opened").forEach(function(e){n.push.apply(n,f(e,".mm-panel"))}),e.forEach(function(e){E.sr_aria(e,"hidden",!0)}),n.forEach(function(e){E.sr_aria(e,"hidden",!1)})}),this.bind("closePanel",function(e){E.sr_aria(e,"hidden",!0)}),this.bind("initPanel:after",function(e){b(e,".mm-btn").forEach(function(e){E.sr_aria(e,"haspopup",!0);var t=e.getAttribute("href");t&&E.sr_aria(e,"owns",t.replace("#",""))})}),this.bind("initNavbar:after",function(e){var t=f(e,".mm-navbar")[0],e=t.matches(".mm-hidden");E.sr_aria(t,"hidden",e)}),e.text&&"parent"==this.opts.navbar.titleLink&&this.bind("initNavbar:after",function(e){var t=f(e,".mm-navbar")[0],e=!!t.querySelector(".mm-btn_prev");E.sr_aria(b(t,".mm-navbar__title")[0],"hidden",e)})),e.text&&(this.bind("initAddons:after",function(){i.bind("setPage:after",function(){this.trigger("setPage:after:sr-text",[].slice.call(arguments))}),i.bind("initBlocker:after",function(){this.trigger("initBlocker:after:sr-text",[].slice.call(arguments))})}),this.bind("initNavbar:after",function(e){e=f(e,".mm-navbar")[0];!e||(e=f(e,".mm-btn_prev")[0])&&(e.innerHTML=E.sr_text(i.i18n(n.text.closeSubmenu)))}),this.bind("initListview:after",function(e){var t=e.closest(".mm-panel").mmParent;!t||(e=f(t,".mm-btn_next")[0])&&(t=i.i18n(n.text[e.parentElement.matches(".mm-listitem_vertical")?"toggleSubmenu":"openSubmenu"]),e.innerHTML+=E.sr_text(t))}))},scrollBugFix:function(){var t,n,e,i=this;function s(e){e.preventDefault(),e.stopPropagation()}A&&this.opts.offCanvas&&this.opts.offCanvas.blockUI&&("boolean"==typeof(e=this.opts.scrollBugFix)&&(e={fix:e}),"object"!=typeof e&&(e={}),e=e,this.opts.scrollBugFix=m(e,E.options.scrollBugFix),e.fix&&(e=this.node.menu,t="",e.addEventListener("touchmove",function(e){t="",0<e.movementY?t="down":e.movementY<0&&(t="up")}),n={get:function(){return t}},this.node.menu.addEventListener("scroll",s,{passive:!1}),this.node.menu.addEventListener("touchmove",function(e){var t=e.target.closest(".mm-panel, .mm-iconbar__top, .mm-iconbar__bottom");t&&t.closest(".mm-listitem_vertical")&&(t=h(t,".mm-panel").pop()),(!t||t.scrollHeight===t.offsetHeight||0==t.scrollTop&&"down"==n.get()||t.scrollHeight==t.scrollTop+t.offsetHeight&&"up"==n.get())&&s(e)},{passive:!1}),this.bind("open:start",function(){var e=f(i.node.pnls,".mm-panel_opened")[0];e&&(e.scrollTop=0)}),window.addEventListener("orientationchange",function(e){var t=f(i.node.pnls,".mm-panel_opened")[0];t&&(t.scrollTop=0,t.style["-webkit-overflow-scrolling"]="auto",t.style["-webkit-overflow-scrolling"]="touch")})))},autoHeight:function(){var s,e,o=this,a=("boolean"==typeof(e=this.opts.autoHeight)&&e&&(e={height:"auto"}),"string"==typeof e&&(e={height:e}),"object"!=typeof e&&(e={}),e);this.opts.autoHeight=m(a,E.options.autoHeight),"auto"!=a.height&&"highest"!=a.height||(s=function(e){return e.parentElement.matches(".mm-listitem_vertical")&&(e=h(e,".mm-panel").filter(function(e){return!e.parentElement.matches(".mm-listitem_vertical")})[0]),e},e=function(){var t,e,n,i;o.opts.offCanvas&&!o.vars.opened||(n=0,i=o.node.menu.offsetHeight-o.node.pnls.offsetHeight,o.node.menu.classList.add("mm-menu_autoheight-measuring"),"auto"==a.height?((e=f(o.node.pnls,".mm-panel_opened")[0])&&(e=s(e)),n=(e=e||f(o.node.pnls,".mm-panel")[0]).scrollHeight):"highest"==a.height&&(t=0,f(o.node.pnls,".mm-panel").forEach(function(e){e=s(e),t=Math.max(t,e.scrollHeight)}),n=t),o.node.menu.style.height=n+i+"px",o.node.menu.classList.remove("mm-menu_autoheight-measuring"))},this.bind("initMenu:after",function(){o.node.menu.classList.add("mm-menu_autoheight")}),this.opts.offCanvas&&this.bind("open:start",e),"highest"==a.height&&this.bind("initPanels:after",e),"auto"==a.height&&(this.bind("updateListview",e),this.bind("openPanel:start",e)))},backButton:function(){var e,n,i,t,s=this;this.opts.offCanvas&&("boolean"==typeof(t=this.opts.backButton)&&(t={close:t}),"object"!=typeof t&&(t={}),e=t,this.opts.backButton=m(e,E.options.backButton),n="#"+this.node.menu.id,e.close&&(i=[],t=function(){i=[n],f(s.node.pnls,".mm-panel_opened, .mm-panel_opened-parent").forEach(function(e){i.push("#"+e.id)})},this.bind("open:finish",function(){history.pushState(null,document.title,n)}),this.bind("open:finish",t),this.bind("openPanel:finish",t),this.bind("close:finish",function(){i=[],history.back(),history.pushState(null,document.title,location.pathname+location.search)}),window.addEventListener("popstate",function(e){var t;s.vars.opened&&i.length&&((t=(i=i.slice(0,-1))[i.length-1])==n?s.close():(s.openPanel(s.node.menu.querySelector(t)),history.pushState(null,document.title,n)))})),e.open&&window.addEventListener("popstate",function(e){s.vars.opened||location.hash!=n||s.open()}))},columns:function(){var e,i=this,s=("boolean"==typeof(e=this.opts.columns)&&(e={add:e}),"number"==typeof e&&(e={add:!0,visible:e}),"object"!=typeof e&&(e={}),"number"==typeof e.visible&&(e.visible={min:e.visible,max:e.visible}),e);if(this.opts.columns=m(s,E.options.columns),s.add){s.visible.min=Math.max(1,Math.min(6,s.visible.min)),s.visible.max=Math.max(s.visible.min,Math.min(6,s.visible.max));for(var o=[],a=[],r=["mm-panel_opened","mm-panel_opened-parent","mm-panel_highest"],t=0;t<=s.visible.max;t++)o.push("mm-menu_columns-"+t),a.push("mm-panel_columns-"+t);r.push.apply(r,a),this.bind("openPanel:before",function(t){if(t&&(e=t.mmParent),e&&!e.classList.contains("mm-listitem_vertical")&&(e=e.closest(".mm-panel"))){var e=e.className;if(e.length&&(e=e.split("mm-panel_columns-")[1]))for(var n=parseInt(e.split(" ")[0],10)+1;0<n;){if(!(t=f(i.node.pnls,".mm-panel_columns-"+n)[0])){n=-1;break}n++,t.classList.add("mm-hidden"),r.forEach(function(e){t.classList.remove(e)})}}}),this.bind("openPanel:start",function(e){if(e){var t=e.mmParent;if(t&&t.classList.contains("mm-listitem_vertical"))return}t=f(i.node.pnls,".mm-panel_opened-parent").length;e.matches(".mm-panel_opened-parent")||t++,t=Math.min(s.visible.max,Math.max(s.visible.min,t)),o.forEach(function(e){i.node.menu.classList.remove(e)}),i.node.menu.classList.add("mm-menu_columns-"+t);var n=[];f(i.node.pnls,".mm-panel").forEach(function(t){a.forEach(function(e){t.classList.remove(e)}),t.matches(".mm-panel_opened-parent")&&n.push(t)}),n.push(e),n.slice(-s.visible.max).forEach(function(e,t){e.classList.add("mm-panel_columns-"+t)})})}},counters:function(){var e,n=this,t=("boolean"==typeof(e=this.opts.counters)&&(e={add:e,addTo:"panels",count:e}),"object"!=typeof e&&(e={}),"panels"==e.addTo&&(e.addTo=".mm-listview"),e);this.opts.counters=m(t,E.options.counters),this.bind("initListview:after",function(e){var t=n.conf.classNames.counters.counter;b(e,"."+t).forEach(function(e){_(e,t,"mm-counter")})}),t.add&&this.bind("initListview:after",function(e){e.matches(t.addTo)&&(!(e=e.closest(".mm-panel").mmParent)||b(e,".mm-counter").length||(e=f(e,".mm-btn")[0])&&e.prepend(u("span.mm-counter")))}),t.count&&(e=function(e){(e?[e.closest(".mm-panel")]:f(n.node.pnls,".mm-panel")).forEach(function(e){var t,n=e.mmParent;!n||(n=b(n,".mm-counter")[0])&&(t=[],f(e,".mm-listview").forEach(function(e){t.push.apply(t,f(e))}),n.innerHTML=v(t).length.toString())})},this.bind("initListview:after",e),this.bind("updateListview",e))},dividers:function(){var e,t=this,n=("boolean"==typeof(e=this.opts.dividers)&&(e={add:e}),"object"!=typeof e&&(e={}),"panels"==e.addTo&&(e.addTo=".mm-listview"),e);this.opts.dividers=m(n,E.options.dividers),this.bind("initListview:after",function(e){f(e).forEach(function(e){_(e,t.conf.classNames.divider,"mm-divider"),e.matches(".mm-divider")&&e.classList.remove("mm-listitem")})}),n.add&&this.bind("initListview:after",function(i){var s;i.matches(n.addTo)&&(b(i,".mm-divider").forEach(function(e){e.remove()}),s="",v(f(i)).forEach(function(e){var t,n=f(e,".mm-listitem__text")[0].textContent.trim().toLowerCase()[0];n.length&&n!=s&&(s=n,(t=u("li.mm-divider")).textContent=n,i.insertBefore(t,e))}))})},drag:function(){var t,e,n=this;this.opts.offCanvas&&("boolean"==typeof(e=this.opts.drag)&&(e={open:e}),"object"!=typeof e&&(e={}),t=e,this.opts.drag=m(t,E.options.drag),t.open&&this.bind("setPage:after",function(e){(function(e){var t,n=this,i={},s=!1;O&&(S(O,"dragStart"),S(O,"dragMove"),S(O,"dragEnd")),I=new D(O=e),(t=Object.keys(n.opts.extensions)).length?(L(t.join(", "),function(){},function(){i=B(i,[],n.node.menu)}),t.forEach(function(e){L(e,function(){i=B(i,n.opts.extensions[e],n.node.menu)},function(){})})):i=B(i,[],n.node.menu),O&&(k(O,"dragStart",function(e){e.detail.direction==i.direction&&(s=!0,n.node.wrpr.classList.add("mm-wrapper_dragging"),n._openSetup(),n.trigger("open:start"),q=n.node.menu["x"==i.axis?"clientWidth":"clientHeight"])}),k(O,"dragMove",function(e){if(e.detail.axis==i.axis&&s){var t=e.detail["distance"+i.axis.toUpperCase()];switch(i.position){case"right":case"bottom":t=Math.min(Math.max(t,-q),0);break;default:t=Math.max(Math.min(t,q),0)}if("front"==i.zposition)switch(i.position){case"right":case"bottom":t+=q;break;default:t-=q}i.slideOutNodes.forEach(function(e){e.style.transform="translate"+i.axis.toUpperCase()+"("+t+"px)"})}}),k(O,"dragEnd",function(e){if(e.detail.axis==i.axis&&s){s=!1,n.node.wrpr.classList.remove("mm-wrapper_dragging"),i.slideOutNodes.forEach(function(e){e.style.transform=""});var t=Math.abs(e.detail["distance"+i.axis.toUpperCase()])>=.75*q;if(!t){e=e.detail["movement"+i.axis.toUpperCase()];switch(i.position){case"right":case"bottom":t=e<=0;break;default:t=0<=e}}t?n._openStart():n.close()}}))}).call(n,t.node||e)}))},dropdown:function(){var f,h,v,i,e,t=this;function n(){var t=this;if(this.vars.opened){this.node.menu.setAttribute("style",this.node.menu.mmStyle);var e,n=[{},[]],n=i.call(this,"y",n);for(e in(n=i.call(this,"x",n))[0])this.node.menu.style[e]=n[0][e];f.tip&&(["mm-menu_tip-left","mm-menu_tip-right","mm-menu_tip-top","mm-menu_tip-bottom"].forEach(function(e){t.node.menu.classList.remove(e)}),n[1].forEach(function(e){t.node.menu.classList.add(e)}))}}this.opts.offCanvas&&("boolean"==typeof(e=this.opts.dropdown)&&e&&(e={drop:e}),"object"!=typeof e&&(e={}),"string"==typeof e.position&&(e.position={of:e.position}),f=e,this.opts.dropdown=m(f,E.options.dropdown),h=this.conf.dropdown,f.drop&&(this.bind("initMenu:after",function(){var e;t.node.menu.classList.add("mm-menu_dropdown"),"string"!=typeof f.position.of&&(e=o(t.node.menu.id))&&(f.position.of='[href="#'+e+'"]'),"string"==typeof f.position.of&&(v=b(document.body,f.position.of)[0],1==(e=f.event.split(" ")).length&&(e[1]=e[0]),"hover"==e[0]&&v.addEventListener("mouseenter",function(){t.open()},{passive:!0}),"hover"==e[1]&&t.node.menu.addEventListener("mouseleave",function(){t.close()},{passive:!0}))}),this.bind("open:start",function(){t.node.menu.mmStyle=t.node.menu.getAttribute("style"),t.node.wrpr.classList.add("mm-wrapper_dropdown")}),this.bind("close:finish",function(){t.node.menu.setAttribute("style",t.node.menu.mmStyle),t.node.wrpr.classList.remove("mm-wrapper_dropdown")}),i=function(e,t){var n,i,s=t[0],o=t[1],a="x"==e?"offsetWidth":"offsetHeight",r="x"==e?"left":"top",c="x"==e?"right":"bottom",m="x"==e?"width":"height",l="x"==e?"innerWidth":"innerHeight",d="x"==e?"maxWidth":"maxHeight",p=null,t=(u=r,v.getBoundingClientRect()[u]+document.body["left"==u?"scrollLeft":"scrollTop"]),u=t+v[a],a=window[l],l=h.offset.button[e]+h.offset.viewport[e];if(f.position[e])switch(f.position[e]){case"left":case"bottom":p="after";break;case"right":case"top":p="before"}return null===p&&(p=t+(u-t)/2<a/2?"after":"before"),"after"==p?(i=a-((n="x"==e?t:u)+l),s[r]=n+h.offset.button[e]+"px",s[c]="auto",f.tip&&o.push("mm-menu_tip-"+("x"==e?"left":"top"))):(i=(n="x"==e?u:t)-l,s[c]="calc( 100% - "+(n-h.offset.button[e])+"px )",s[r]="auto",f.tip&&o.push("mm-menu_tip-"+("x"==e?"right":"bottom"))),f.fitViewport&&(s[d]=Math.min(h[m].max,i)+"px"),[s,o]},this.bind("open:start",n),window.addEventListener("resize",function(e){n.call(t)},{passive:!0}),this.opts.offCanvas.blockUI||window.addEventListener("scroll",function(e){n.call(t)},{passive:!0})))},fixedElements:function(){var t,n,i,s=this;this.opts.offCanvas&&(i=this.conf.fixedElements,this.bind("setPage:after",function(e){t=s.conf.classNames.fixedElements.fixed,n=b(document,i.insertSelector)[0],b(e,"."+t).forEach(function(e){_(e,t,"mm-slideout"),n[i.insertMethod](e)})}))},iconbar:function(){var a,e,t,n,i=this,r=("array"==c(t=this.opts.iconbar)&&(t={use:!0,top:t}),"object"!=c(t)&&(t={}),void 0===t.use&&(t.use=!0),"boolean"==typeof t.use&&t.use&&(t.use=!0),t);this.opts.iconbar=m(r,E.options.iconbar),r.use&&(["top","bottom"].forEach(function(e,t){var n=r[e];"array"!=c(n)&&(n=[n]);for(var i=u("div.mm-iconbar__"+e),s=0,o=n.length;s<o;s++)"string"==typeof n[s]?i.innerHTML+=n[s]:i.append(n[s]);i.children.length&&(a=a||u("div.mm-iconbar")).append(i)}),a)&&(this.bind("initMenu:after",function(){i.node.menu.prepend(a)}),e="mm-menu_iconbar-"+r.position,t=function(){i.node.menu.classList.add(e),E.sr_aria(a,"hidden",!1)},"boolean"==typeof r.use?this.bind("initMenu:after",t):L(r.use,t,function(){i.node.menu.classList.remove(e),E.sr_aria(a,"hidden",!0)}),"tabs"==r.type&&(a.classList.add("mm-iconbar_tabs"),a.addEventListener("click",function(e){var t=e.target;if(t.matches("a"))if(t.matches(".mm-iconbar__tab_selected"))e.stopImmediatePropagation();else try{var n=i.node.menu.querySelector(t.getAttribute("href"))[0];n&&n.matches(".mm-panel")&&(e.preventDefault(),e.stopImmediatePropagation(),i.openPanel(n,!1))}catch(e){}}),n=function(e){b(a,"a").forEach(function(e){e.classList.remove("mm-iconbar__tab_selected")});var t=b(a,'[href="#'+e.id+'"]')[0];t?t.classList.add("mm-iconbar__tab_selected"):(e=e.mmParent)&&n(e.closest(".mm-panel"))},this.bind("openPanel:start",n)))},iconPanels:function(){var e,i=this,s=("boolean"==typeof(e=this.opts.iconPanels)&&(e={add:e}),"number"!=typeof e&&"string"!=typeof e||(e={add:!0,visible:e}),"object"!=typeof e&&(e={}),e);this.opts.iconPanels=m(s,E.options.iconPanels);var o=!1;if("first"==s.visible&&(o=!0,s.visible=1),s.visible=Math.min(3,Math.max(1,s.visible)),s.visible++,s.add){this.bind("initMenu:after",function(){var e=["mm-menu_iconpanel"];s.hideNavbar&&e.push("mm-menu_hidenavbar"),s.hideDivider&&e.push("mm-menu_hidedivider"),e.forEach(function(e){i.node.menu.classList.add(e)})});var a=[];if(!o)for(var t=0;t<=s.visible;t++)a.push("mm-panel_iconpanel-"+t);this.bind("openPanel:start",function(t){var n,e=f(i.node.pnls,".mm-panel");(t=t||e[0]).parentElement.matches(".mm-listitem_vertical")||(o?e.forEach(function(e,t){e.classList[0==t?"add":"remove"]("mm-panel_iconpanel-first")}):(e.forEach(function(t){a.forEach(function(e){t.classList.remove(e)})}),e=e.filter(function(e){return e.matches(".mm-panel_opened-parent")}),n=!1,e.forEach(function(e){t===e&&(n=!0)}),n||e.push(t),e.forEach(function(e){e.classList.remove("mm-hidden")}),(e=e.slice(-s.visible)).forEach(function(e,t){e.classList.add("mm-panel_iconpanel-"+t)})))}),this.bind("initPanel:after",function(e){var t;!s.blockPanel||e.parentElement.matches(".mm-listitem_vertical")||f(e,".mm-panel__blocker")[0]||((t=u("a.mm-panel__blocker")).setAttribute("href","#"+e.closest(".mm-panel").id),e.prepend(t))})}},keyboardNavigation:function(){var s,e,t,n,o,i,a=this;A||("boolean"!=typeof(i=this.opts.keyboardNavigation)&&"string"!=typeof i||(i={enable:i}),"object"!=typeof i&&(i={}),s=i,this.opts.keyboardNavigation=m(s,E.options.keyboardNavigation),s.enable&&(e=u("button.mm-tabstart.mm-sronly"),t=u("button.mm-tabend.mm-sronly"),n=u("button.mm-tabend.mm-sronly"),this.bind("initMenu:after",function(){s.enhance&&a.node.menu.classList.add("mm-menu_keyboardfocus"),function(i){var n=this;S(document.body,"keydown.tabguard"),S(document.body,"focusin.tabguard"),k(document.body,"focusin.tabguard",function(e){var t;!n.node.wrpr.matches(".mm-wrapper_opened")||(t=e.target).matches(".mm-tabend")&&(e=void 0,t.parentElement.matches(".mm-menu")&&E.node.blck&&(e=E.node.blck),t.parentElement.matches(".mm-wrapper__blocker")&&(e=b(document.body,".mm-menu_offcanvas.mm-menu_opened")[0]),(e=e||t.parentElement)&&f(e,".mm-tabstart")[0].focus())}),S(document.body,"keydown.navigate"),k(document.body,"keydown.navigate",function(e){var t=e.target,n=t.closest(".mm-menu");if(n){if(n.mmApi,!t.matches("input, textarea"))switch(e.keyCode){case 13:(t.matches(".mm-toggle")||t.matches(".mm-check"))&&t.dispatchEvent(new Event("click"));break;case 32:case 37:case 38:case 39:case 40:e.preventDefault()}if(i)if(t.matches("input"))27===e.keyCode&&(t.value="");else{t=n.mmApi;switch(e.keyCode){case 8:e=b(n,".mm-panel_opened")[0].mmParent;e&&t.openPanel(e.closest(".mm-panel"));break;case 27:n.matches(".mm-menu_offcanvas")&&t.close()}}}})}.call(a,s.enhance)}),this.bind("initOpened:before",function(){a.node.menu.prepend(e),a.node.menu.append(t),f(a.node.menu,".mm-navbars-top, .mm-navbars-bottom").forEach(function(e){e.querySelectorAll(".mm-navbar__title").forEach(function(e){e.setAttribute("tabindex","-1")})})}),this.bind("initBlocker:after",function(){E.node.blck.append(n),f(E.node.blck,"a")[0].classList.add("mm-tabstart")}),o="input, select, textarea, button, label, a[href]",i=function(e){e=e||f(a.node.pnls,".mm-panel_opened")[0];var t,n=null,i=document.activeElement.closest(".mm-navbar");i&&i.closest(".mm-menu")==a.node.menu||("default"!=s.enable||((n=b(e,".mm-listview a[href]:not(.mm-hidden)")[0])||(n=b(e,o+":not(.mm-hidden)")[0]),n)||(t=[],f(a.node.menu,".mm-navbars_top, .mm-navbars_bottom").forEach(function(e){t.push.apply(t,b(e,o+":not(.mm-hidden)"))}),n=t[0]),(n=n||f(a.node.menu,".mm-tabstart")[0])&&n.focus())},this.bind("open:finish",i),this.bind("openPanel:finish",i),this.bind("initOpened:after:sr-aria",function(){[a.node.menu,E.node.blck].forEach(function(e){f(e,".mm-tabstart, .mm-tabend").forEach(function(e){E.sr_aria(e,"hidden",!0),E.sr_role(e,"presentation")})})})))},lazySubmenus:function(){var e,n=this,e=("boolean"==typeof(e=this.opts.lazySubmenus)&&(e={load:e}),"object"!=typeof e&&(e={}),e);this.opts.lazySubmenus=m(e,E.options.lazySubmenus),e.load&&(this.bind("initPanels:before",function(){var t=[];b(n.node.pnls,"li").forEach(function(e){t.push.apply(t,f(e,n.conf.panelNodetype.join(", ")))}),t.filter(function(e){return!e.matches(".mm-listview_inset")}).filter(function(e){return!e.matches(".mm-nolistview")}).filter(function(e){return!e.matches(".mm-nopanel")}).forEach(function(t){["mm-panel_lazysubmenu","mm-nolistview","mm-nopanel"].forEach(function(e){t.classList.add(e)})})}),this.bind("initPanels:before",function(){var t=[];b(n.node.pnls,"."+n.conf.classNames.selected).forEach(function(e){t.push.apply(t,h(e,".mm-panel_lazysubmenu"))}),t.length&&t.forEach(function(t){console.log(t),["mm-panel_lazysubmenu","mm-nolistview","mm-nopanel"].forEach(function(e){t.classList.remove(e)})})}),this.bind("openPanel:before",function(e){var t=b(e,".mm-panel_lazysubmenu").filter(function(e){return!e.matches(".mm-panel_lazysubmenu .mm-panel_lazysubmenu")});e.matches(".mm-panel_lazysubmenu")&&t.unshift(e),t.forEach(function(t){["mm-panel_lazysubmenu","mm-nolistview","mm-nopanel"].forEach(function(e){t.classList.remove(e)}),n.initPanel(t)})}))},navbars:R,pageScroll:function(){var e,s=this,e=("boolean"==typeof(e=this.opts.pageScroll)&&(e={scroll:e}),"object"!=typeof e&&(e={}),e);this.opts.pageScroll=m(e,E.options.pageScroll);var n,o,a,r=this.conf.pageScroll;function i(){n&&window.scrollTo({top:n.getBoundingClientRect().top+document.scrollingElement.scrollTop-r.scrollOffset,behavior:"smooth"}),n=null}function c(e){try{return"#"!=e&&"#"==e.slice(0,1)?E.node.page.querySelector(e):null}catch(e){return null}}e.scroll&&this.bind("close:finish",function(){i()}),this.opts.offCanvas&&e.scroll&&this.clck.push(function(e,t){if(n=null,t.inMenu){e=e.getAttribute("href");if(n=c(e))return s.node.menu.matches(".mm-menu_sidebar-expanded")&&s.node.wrpr.matches(".mm-wrapper_sidebar-expanded")?void i():{close:!0}}}),e.update&&(o=[],this.bind("initListview:after",function(e){g(f(e,".mm-listitem")).forEach(function(e){e=c(e.getAttribute("href"));e&&o.unshift(e)})}),a=-1,window.addEventListener("scroll",function(e){for(var t,n=window.scrollY,i=0;i<o.length;i++)if(o[i].offsetTop<n+r.updateOffset){a!==i&&(a=i,(t=(t=g(b(f(s.node.pnls,".mm-panel_opened")[0],".mm-listitem"))).filter(function(e){return e.matches('[href="#'+o[i].id+'"]')})).length&&s.setSelected(t[0].parentElement));break}}))},searchfield:function(){var e,i=this,s=("boolean"==typeof(e=this.opts.searchfield)&&(e={add:e}),"object"!=typeof e&&(e={}),"boolean"==typeof e.panel&&(e.panel={add:e.panel}),"object"!=typeof e.panel&&(e.panel={}),"panel"==e.addTo&&(e.panel.add=!0),e.panel.add&&(e.showSubPanels=!1,e.panel.splash&&(e.cancel=!0)),e);this.opts.searchfield=m(s,E.options.searchfield),this.conf.searchfield,s.add&&(this.bind("close:start",function(){b(i.node.menu,".mm-searchfield").forEach(function(e){e.blur()})}),this.bind("initPanel:after",function(e){var t=null;s.panel.add&&(t=function(){var e=this.opts.searchfield,t=(this.conf.searchfield,f(this.node.pnls,".mm-panel_search")[0]);if(t)return t;t=u("div.mm-panel.mm-panel_search.mm-hidden"),e.panel.id&&(t.id=e.panel.id),e.panel.title&&t.setAttribute("data-mm-title",e.panel.title);var n=u("ul");switch(t.append(n),this.node.pnls.append(t),this.initListview(n),this._initNavbar(t),e.panel.fx){case!1:break;case"none":t.classList.add("mm-panel_noanimation");break;default:t.classList.add("mm-panel_fx-"+e.panel.fx)}return e.panel.splash&&((n=u("div.mm-panel__content")).innerHTML=e.panel.splash,t.append(n)),t.classList.add("mm-panel"),t.classList.add("mm-hidden"),this.node.pnls.append(t),t}.call(i));var n=null;switch(s.addTo){case"panels":n=[e];break;case"panel":n=[t];break;default:"string"==typeof s.addTo?n=b(i.node.menu,s.addTo):"array"==c(s.addTo)&&(n=s.addTo)}n.forEach(function(e){e=function(e){var t=this.opts.searchfield,n=this.conf.searchfield;if(e.parentElement.matches(".mm-listitem_vertical"))return null;if(o=b(e,".mm-searchfield")[0])return o;function i(e,t){if(t)for(var n in t)e.setAttribute(n,t[n])}var s,o=u((n.form?"form":"div")+".mm-searchfield"),a=u("div.mm-searchfield__input"),r=u("input");return r.type="text",r.autocomplete="off",r.placeholder=this.i18n(t.placeholder),a.append(r),o.append(a),e.prepend(o),i(r,n.input),n.clear&&((s=u("a.mm-btn.mm-btn_close.mm-searchfield__btn")).setAttribute("href","#"),a.append(s)),i(o,n.form),n.form&&n.submit&&!n.clear&&((s=u("a.mm-btn.mm-btn_next.mm-searchfield__btn")).setAttribute("href","#"),a.append(s)),t.cancel&&((s=u("a.mm-searchfield__cancel")).setAttribute("href","#"),s.textContent=this.i18n("cancel"),o.append(s)),o}.call(i,e),s.search&&e&&function(e){var n=this,t=this.opts.searchfield,i=(this.conf.searchfield,{});e.closest(".mm-panel_search")?(i.panels=b(this.node.pnls,".mm-panel"),i.noresults=[e.closest(".mm-panel")]):e.closest(".mm-panel")?(i.panels=[e.closest(".mm-panel")],i.noresults=i.panels):(i.panels=b(this.node.pnls,".mm-panel"),i.noresults=[this.node.menu]),i.panels=i.panels.filter(function(e){return!e.matches(".mm-panel_search")}),i.panels=i.panels.filter(function(e){return!e.parentElement.matches(".mm-listitem_vertical")}),i.listitems=[],i.dividers=[],i.panels.forEach(function(e){var t;(t=i.listitems).push.apply(t,b(e,".mm-listitem")),(t=i.dividers).push.apply(t,b(e,".mm-divider"))});var s=f(this.node.pnls,".mm-panel_search")[0],o=b(e,"input")[0],a=b(e,".mm-searchfield__cancel")[0];o.mmSearchfield=i,t.panel.add&&t.panel.splash&&(S(o,"focus.splash"),k(o,"focus.splash",function(e){n.openPanel(s)})),t.cancel&&(S(o,"focus.cancel"),k(o,"focus.cancel",function(e){a.classList.add("mm-searchfield__cancel-active")}),S(a,"click.splash"),k(a,"click.splash",function(e){var t;e.preventDefault(),a.classList.remove("mm-searchfield__cancel-active"),s.matches(".mm-panel_opened")&&(t=f(n.node.pnls,".mm-panel_opened-parent")).length&&n.openPanel(t[t.length-1])})),t.panel.add&&"panel"==t.addTo&&this.bind("openPanel:finish",function(e){e===s&&o.focus()}),S(o,"input.search"),k(o,"input.search",function(e){switch(e.keyCode){case 9:case 16:case 17:case 18:case 37:case 38:case 39:case 40:break;default:n.search(o)}}),this.search(o)}.call(i,e)}),s.noResults&&function(e){var t,n;e&&(t=this.opts.searchfield,this.conf.searchfield,e.closest(".mm-panel")||(e=f(this.node.pnls,".mm-panel")[0]),f(e,".mm-panel__noresultsmsg").length||((n=u("div.mm-panel__noresultsmsg.mm-hidden")).innerHTML=this.i18n(t.noResults),e.append(n)))}.call(i,s.panel.add?t:e)}),this.clck.push(function(e,t){if(t.inMenu&&e.matches(".mm-searchfield__btn")){if(e.matches(".mm-btn_close")){t=b(n=e.closest(".mm-searchfield"),"input")[0];return t.value="",i.search(t),!0}var n;if(e.matches(".mm-btn_next"))return(n=e.closest("form"))&&n.submit(),!0}}))},sectionIndexer:function(){var e,s=this,e=("boolean"==typeof(e=this.opts.sectionIndexer)&&(e={add:e}),"object"!=typeof e&&(e={}),e);this.opts.sectionIndexer=m(e,E.options.sectionIndexer),e.add&&this.bind("initPanels:after",function(){var t,e;s.node.indx||("abcdefghijklmnopqrstuvwxyz".split(t="").forEach(function(e){t+='<a href="#">'+e+"</a>"}),(e=u("div.mm-sectionindexer")).innerHTML=t,s.node.pnls.prepend(e),s.node.indx=e,s.node.indx.addEventListener("click",function(e){e.target.matches("a")&&e.preventDefault()}),e=function(e){var t,n,i;e.target.matches("a")&&(t=e.target.textContent,n=f(s.node.pnls,".mm-panel_opened")[0],i=-1,e=n.scrollTop,n.scrollTop=0,b(n,".mm-divider").filter(function(e){return!e.matches(".mm-hidden")}).forEach(function(e){i<0&&t==e.textContent.trim().slice(0,1).toLowerCase()&&(i=e.offsetTop)}),n.scrollTop=-1<i?i:e)},A?(s.node.indx.addEventListener("touchstart",e),s.node.indx.addEventListener("touchmove",e)):s.node.indx.addEventListener("mouseover",e)),s.bind("openPanel:start",function(e){e=b(e,".mm-divider").filter(function(e){return!e.matches(".mm-hidden")}).length;s.node.indx.classList[e?"add":"remove"]("mm-sectionindexer_active")})})},setSelected:function(){var e,n,i=this,e=("boolean"==typeof(e=this.opts.setSelected)&&(e={hover:e,parent:e}),"object"!=typeof e&&(e={}),e);this.opts.setSelected=m(e,E.options.setSelected),"detect"==e.current?(n=function(e){e=e.split("?")[0].split("#")[0];var t=i.node.menu.querySelector('a[href="'+e+'"], a[href="'+e+'/"]');t?i.setSelected(t.parentElement):(e=e.split("/").slice(0,-1)).length&&n(e.join("/"))},this.bind("initMenu:after",function(){n.call(i,window.location.href)})):e.current||this.bind("initListview:after",function(e){f(e,".mm-listitem_selected").forEach(function(e){e.classList.remove("mm-listitem_selected")})}),e.hover&&this.bind("initMenu:after",function(){i.node.menu.classList.add("mm-menu_selected-hover")}),e.parent&&(this.bind("openPanel:finish",function(e){b(i.node.pnls,".mm-listitem_selected-parent").forEach(function(e){e.classList.remove("mm-listitem_selected-parent")});for(var t=e.mmParent;t;)t.matches(".mm-listitem_vertical")||t.classList.add("mm-listitem_selected-parent"),t=(t=t.closest(".mm-panel")).mmParent}),this.bind("initMenu:after",function(){i.node.menu.classList.add("mm-menu_selected-parent")}))},sidebar:function(){var e,n=this;if(this.opts.offCanvas){var i=(("string"==typeof(e=this.opts.sidebar)||"boolean"==typeof e&&e||"number"==typeof e)&&(e={expanded:e}),"object"!=typeof e&&(e={}),"boolean"==typeof e.collapsed&&e.collapsed&&(e.collapsed={use:!0}),"string"!=typeof e.collapsed&&"number"!=typeof e.collapsed||(e.collapsed={use:e.collapsed}),"object"!=typeof e.collapsed&&(e.collapsed={}),"boolean"==typeof e.expanded&&e.expanded&&(e.expanded={use:!0}),"string"!=typeof e.expanded&&"number"!=typeof e.expanded||(e.expanded={use:e.expanded}),"object"!=typeof e.expanded&&(e.expanded={}),e);if(this.opts.sidebar=m(i,E.options.sidebar),i.collapsed.use&&(this.bind("initMenu:after",function(){var e;n.node.menu.classList.add("mm-menu_sidebar-collapsed"),i.collapsed.blockMenu&&n.opts.offCanvas&&!f(n.node.menu,".mm-menu__blocker")[0]&&((e=u("a.mm-menu__blocker")).setAttribute("href","#"+n.node.menu.id),n.node.menu.prepend(e)),i.collapsed.hideNavbar&&n.node.menu.classList.add("mm-menu_hidenavbar"),i.collapsed.hideDivider&&n.node.menu.classList.add("mm-menu_hidedivider")}),t=function(){n.node.wrpr.classList.add("mm-wrapper_sidebar-collapsed")},s=function(){n.node.wrpr.classList.remove("mm-wrapper_sidebar-collapsed")},"boolean"==typeof i.collapsed.use?this.bind("initMenu:after",t):L(i.collapsed.use,t,s)),i.expanded.use){this.bind("initMenu:after",function(){n.node.menu.classList.add("mm-menu_sidebar-expanded")}),t=function(){n.node.wrpr.classList.add("mm-wrapper_sidebar-expanded"),n.node.wrpr.matches(".mm-wrapper_sidebar-closed")||n.open()},s=function(){n.node.wrpr.classList.remove("mm-wrapper_sidebar-expanded"),n.close()},"boolean"==typeof i.expanded.use?this.bind("initMenu:after",t):L(i.expanded.use,t,s),this.bind("close:start",function(){n.node.wrpr.matches(".mm-wrapper_sidebar-expanded")&&(n.node.wrpr.classList.add("mm-wrapper_sidebar-closed"),"remember"==i.expanded.initial&&window.localStorage.setItem("mmenuExpandedState","closed"))}),this.bind("open:start",function(){n.node.wrpr.matches(".mm-wrapper_sidebar-expanded")&&(n.node.wrpr.classList.remove("mm-wrapper_sidebar-closed"),"remember"==i.expanded.initial&&window.localStorage.setItem("mmenuExpandedState","open"))});var t=i.expanded.initial;if("remember"==i.expanded.initial){var s=window.localStorage.getItem("mmenuExpandedState");switch(s){case"open":case"closed":t=s}}"closed"==t&&this.bind("initMenu:after",function(){n.node.wrpr.classList.add("mm-wrapper_sidebar-closed")}),this.clck.push(function(e,t){if(t.inMenu&&t.inListview&&n.node.wrpr.matches(".mm-wrapper_sidebar-expanded"))return{close:"closed"==i.expanded.initial}})}}},toggles:function(){var t=this;this.bind("initPanel:after",function(e){b(e,"input").forEach(function(e){_(e,t.conf.classNames.toggles.toggle,"mm-toggle"),_(e,t.conf.classNames.toggles.check,"mm-check")})})}},E.wrappers={angular:function(){this.opts.onClick={close:!0,preventDefault:!1,setSelected:!0}},bootstrap:function(){var e,n,t,i,s=this;function o(e){for(var t=u(e.matches("a")?"a":"span"),n=["href","title","target"],i=0;i<n.length;i++)e.getAttribute(n[i])&&t.setAttribute(n[i],e.getAttribute(n[i]));return t.innerHTML=e.innerHTML,b(t,".sr-only").forEach(function(e){e.remove()}),t}function a(e){var n=u("ul");return f(e).forEach(function(e){var t=u("li");e.matches(".dropdown-divider")?t.classList.add("Divider"):e.matches(".dropdown-item")&&t.append(o(e)),n.append(t)}),n}this.node.menu.matches(".navbar-collapse")&&(this.conf.offCanvas&&(this.conf.offCanvas.clone=!1),e=u("nav"),n=u("div"),e.append(n),f(this.node.menu).forEach(function(e){switch(!0){case e.matches(".navbar-nav"):n.append((t=e,i=u("ul"),b(t,".nav-item").forEach(function(e){var t,n=u("li");e.matches(".active")&&n.classList.add("Selected"),e.matches(".nav-link")||((t=f(e,".dropdown-menu")[0])&&n.append(a(t)),e=f(e,".nav-link")[0]),n.prepend(o(e)),i.append(n)}),i));break;case e.matches(".dropdown-menu"):n.append(a(e));break;case e.matches(".form-inline"):s.conf.searchfield.form={action:e.getAttribute("action")||null,method:e.getAttribute("method")||null},s.conf.searchfield.input={name:e.querySelector("input").getAttribute("name")||null},s.conf.searchfield.clear=!1,s.conf.searchfield.submit=!0;break;default:n.append(e.cloneNode(!0))}var t,i}),this.bind("initMenu:before",function(){document.body.prepend(e),s.node.menu=e}),!(t=this.node.menu.parentElement)||(i=t.querySelector(".navbar-toggler"))&&(i.removeAttribute("data-target"),i.removeAttribute("aria-controls"),i.outerHTML=i.outerHTML,(i=t.querySelector(".navbar-toggler")).addEventListener("click",function(e){e.preventDefault(),e.stopImmediatePropagation(),s[s.vars.opened?"close":"open"]()})))},olark:function(){this.conf.offCanvas.page.noSelector.push("#olark")},turbolinks:function(){var t;document.addEventListener("turbolinks:before-visit",function(e){t=document.querySelector(".mm-wrapper").className.split(" ").filter(function(e){return/mm-/.test(e)})}),document.addEventListener("turbolinks:load",function(e){void 0!==t&&(document.querySelector(".mm-wrapper").className=t)})},wordpress:function(){this.conf.classNames.selected="current-menu-item";var e=document.getElementById("wpadminbar");e&&(e.style.position="fixed",e.classList.add("mm-slideout"))}},t.default=E,window&&(window.Mmenu=E),(U=window.jQuery||window.Zepto||null)&&(U.fn.mmenu=function(i,s){var o=U();return this.each(function(e,t){var n;t.mmApi||(n=new E(t,i,s),(t=U(n.node.menu)).data("mmenu",n.API),o=o.add(t))}),o})}]);