nalodeni.pirati.cz/nalodeni/static/js/vendor/foundation.min.js

2 lines
50 KiB
JavaScript

!function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=16)}([function(e,t){e.exports=jQuery},function(e,t,n){"use strict";function i(){return"rtl"===s()("html").attr("dir")}function r(e,t){return e=e||6,Math.round(Math.pow(36,e+1)-Math.random()*Math.pow(36,e)).toString(36).slice(1)+(t?"-"+t:"")}function o(e){var t,n={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend"},i=document.createElement("div");for(var r in n)"undefined"!=typeof i.style[r]&&(t=n[r]);return t?t:(t=setTimeout(function(){e.triggerHandler("transitionend",[e])},1),"transitionend")}n.d(t,"c",function(){return i}),n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var a=n(0),s=n.n(a)},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function o(e){return r("undefined"!=typeof e.constructor.name?e.constructor.name:e.className)}n.d(t,"a",function(){return u});var a=n(0),s=(n.n(a),n(1)),l=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),u=function(){function e(t,r){i(this,e),this._setup(t,r);var a=o(this);this.uuid=n.i(s.a)(6,a),this.$element.attr("data-"+a)||this.$element.attr("data-"+a,this.uuid),this.$element.data("zfPlugin")||this.$element.data("zfPlugin",this),this.$element.trigger("init.zf."+a)}return l(e,[{key:"destroy",value:function(){this._destroy();var e=o(this);this.$element.removeAttr("data-"+e).removeData("zfPlugin").trigger("destroyed.zf."+e);for(var t in this)this[t]=null}}]),e}()},function(e,t,n){"use strict";function i(e){var t={};return"string"!=typeof e?t:(e=e.trim().slice(1,-1))?t=e.split("&").reduce(function(e,t){var n=t.replace(/\+/g," ").split("="),i=n[0],r=n[1];return i=decodeURIComponent(i),r=void 0===r?null:decodeURIComponent(r),e.hasOwnProperty(i)?Array.isArray(e[i])?e[i].push(r):e[i]=[e[i],r]:e[i]=r,e},{}):t}n.d(t,"a",function(){return s});var r=n(0),o=n.n(r),a=window.matchMedia||function(){var e=window.styleMedia||window.media;if(!e){var t=document.createElement("style"),n=document.getElementsByTagName("script")[0],i=null;t.type="text/css",t.id="matchmediajs-test",n&&n.parentNode&&n.parentNode.insertBefore(t,n),i="getComputedStyle"in window&&window.getComputedStyle(t,null)||t.currentStyle,e={matchMedium:function(e){var n="@media "+e+"{ #matchmediajs-test { width: 1px; } }";return t.styleSheet?t.styleSheet.cssText=n:t.textContent=n,"1px"===i.width}}}return function(t){return{matches:e.matchMedium(t||"all"),media:t||"all"}}}(),s={queries:[],current:"",_init:function(){var e=this,t=o()("meta.foundation-mq");t.length||o()('<meta class="foundation-mq">').appendTo(document.head);var n,r=o()(".foundation-mq").css("font-family");n=i(r);for(var a in n)n.hasOwnProperty(a)&&e.queries.push({name:a,value:"only screen and (min-width: "+n[a]+")"});this.current=this._getCurrentSize(),this._watcher()},atLeast:function(e){var t=this.get(e);return!!t&&a(t).matches},is:function(e){return e=e.trim().split(" "),e.length>1&&"only"===e[1]?e[0]===this._getCurrentSize():this.atLeast(e[0])},get:function(e){for(var t in this.queries)if(this.queries.hasOwnProperty(t)){var n=this.queries[t];if(e===n.name)return n.value}return null},_getCurrentSize:function(){for(var e,t=0;t<this.queries.length;t++){var n=this.queries[t];a(n.value).matches&&(e=n)}return"object"==typeof e?e.name:e},_watcher:function(){var e=this;o()(window).off("resize.zf.mediaquery").on("resize.zf.mediaquery",function(){var t=e._getCurrentSize(),n=e.current;t!==n&&(e.current=t,o()(window).trigger("changed.zf.mediaquery",[t,n]))})}}},function(e,t,n){"use strict";function i(e){return!!e&&e.find("a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]").filter(function(){return!(!s()(this).is(":visible")||s()(this).attr("tabindex")<0)})}function r(e){var t=u[e.which||e.keyCode]||String.fromCharCode(e.which).toUpperCase();return t=t.replace(/\W+/,""),e.shiftKey&&(t="SHIFT_"+t),e.ctrlKey&&(t="CTRL_"+t),e.altKey&&(t="ALT_"+t),t=t.replace(/_$/,"")}function o(e){var t={};for(var n in e)t[e[n]]=e[n];return t}n.d(t,"a",function(){return d});var a=n(0),s=n.n(a),l=n(1),u={9:"TAB",13:"ENTER",27:"ESCAPE",32:"SPACE",35:"END",36:"HOME",37:"ARROW_LEFT",38:"ARROW_UP",39:"ARROW_RIGHT",40:"ARROW_DOWN"},c={},d={keys:o(u),parseKey:r,handleKey:function(e,t,i){var r,o,a,u=c[t],d=this.parseKey(e);if(!u)return console.warn("Component not defined!");if(r="undefined"==typeof u.ltr?u:n.i(l.c)()?s.a.extend({},u.ltr,u.rtl):s.a.extend({},u.rtl,u.ltr),o=r[d],a=i[o],a&&"function"==typeof a){var f=a.apply();(i.handled||"function"==typeof i.handled)&&i.handled(f)}else(i.unhandled||"function"==typeof i.unhandled)&&i.unhandled()},findFocusable:i,register:function(e,t){c[e]=t},trapFocus:function(e){var t=i(e),n=t.eq(0),o=t.eq(-1);e.on("keydown.zf.trapfocus",function(e){e.target===o[0]&&"TAB"===r(e)?(e.preventDefault(),n.focus()):e.target===n[0]&&"SHIFT_TAB"===r(e)&&(e.preventDefault(),o.focus())})},releaseFocus:function(e){e.off("keydown.zf.trapfocus")}}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n(0),r=n.n(i),o={Feather:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"zf";e.attr("role","menubar");var n=e.find("li").attr({role:"menuitem"}),i="is-"+t+"-submenu",o=i+"-item",a="is-"+t+"-submenu-parent",s="accordion"!==t;n.each(function(){var e=r()(this),n=e.children("ul");n.length&&(e.addClass(a),n.addClass("submenu "+i).attr({"data-submenu":""}),s&&(e.attr({"aria-haspopup":!0,"aria-label":e.children("a:first").text()}),"drilldown"===t&&e.attr({"aria-expanded":!1})),n.addClass("submenu "+i).attr({"data-submenu":"",role:"menu"}),"drilldown"===t&&n.attr({"aria-hidden":!0})),e.parent("[data-submenu]").length&&e.addClass("is-submenu-item "+o)})},Burn:function(e,t){var n="is-"+t+"-submenu",i=n+"-item",r="is-"+t+"-submenu-parent";e.find(">li, .menu, .menu > li").removeClass(n+" "+i+" "+r+" is-submenu-item submenu is-active").removeAttr("data-submenu").css("display","")}}},function(e,t,n){"use strict";function i(e,t,n,i,o){return 0===r(e,t,n,i,o)}function r(e,t,n,i,r){var a,s,l,u,c=o(e);if(t){var d=o(t);s=d.height+d.offset.top-(c.offset.top+c.height),a=c.offset.top-d.offset.top,l=c.offset.left-d.offset.left,u=d.width+d.offset.left-(c.offset.left+c.width)}else s=c.windowDims.height+c.windowDims.offset.top-(c.offset.top+c.height),a=c.offset.top-c.windowDims.offset.top,l=c.offset.left-c.windowDims.offset.left,u=c.windowDims.width-(c.offset.left+c.width);return s=r?0:Math.min(s,0),a=Math.min(a,0),l=Math.min(l,0),u=Math.min(u,0),n?l+u:i?a+s:Math.sqrt(a*a+s*s+l*l+u*u)}function o(e){if(e=e.length?e[0]:e,e===window||e===document)throw new Error("I'm sorry, Dave. I'm afraid I can't do that.");var t=e.getBoundingClientRect(),n=e.parentNode.getBoundingClientRect(),i=document.body.getBoundingClientRect(),r=window.pageYOffset,o=window.pageXOffset;return{width:t.width,height:t.height,offset:{top:t.top+r,left:t.left+o},parentDims:{width:n.width,height:n.height,offset:{top:n.top+r,left:n.left+o}},windowDims:{width:i.width,height:i.height,offset:{top:r,left:o}}}}function a(e,t,i,r,o,a){switch(console.log("NOTE: GetOffsets is deprecated in favor of GetExplicitOffsets and will be removed in 6.5"),i){case"top":return n.i(l.c)()?s(e,t,"top","left",r,o,a):s(e,t,"top","right",r,o,a);case"bottom":return n.i(l.c)()?s(e,t,"bottom","left",r,o,a):s(e,t,"bottom","right",r,o,a);case"center top":return s(e,t,"top","center",r,o,a);case"center bottom":return s(e,t,"bottom","center",r,o,a);case"center left":return s(e,t,"left","center",r,o,a);case"center right":return s(e,t,"right","center",r,o,a);case"left bottom":return s(e,t,"bottom","left",r,o,a);case"right bottom":return s(e,t,"bottom","right",r,o,a);case"center":return{left:$eleDims.windowDims.offset.left+$eleDims.windowDims.width/2-$eleDims.width/2+o,top:$eleDims.windowDims.offset.top+$eleDims.windowDims.height/2-($eleDims.height/2+r)};case"reveal":return{left:($eleDims.windowDims.width-$eleDims.width)/2+o,top:$eleDims.windowDims.offset.top+r};case"reveal full":return{left:$eleDims.windowDims.offset.left,top:$eleDims.windowDims.offset.top};default:return{left:n.i(l.c)()?$anchorDims.offset.left-$eleDims.width+$anchorDims.width-o:$anchorDims.offset.left+o,top:$anchorDims.offset.top+$anchorDims.height+r}}}function s(e,t,n,i,r,a,s){var l,u,c=o(e),d=t?o(t):null;switch(n){case"top":l=d.offset.top-(c.height+r);break;case"bottom":l=d.offset.top+d.height+r;break;case"left":u=d.offset.left-(c.width+a);break;case"right":u=d.offset.left+d.width+a}switch(n){case"top":case"bottom":switch(i){case"left":u=d.offset.left+a;break;case"right":u=d.offset.left-c.width+d.width-a;break;case"center":u=s?a:d.offset.left+d.width/2-c.width/2+a}break;case"right":case"left":switch(i){case"bottom":l=d.offset.top-r+d.height-c.height;break;case"top":l=d.offset.top+r;break;case"center":l=d.offset.top+r+d.height/2-c.height/2}}return{top:l,left:u}}n.d(t,"a",function(){return u});var l=n(1),u={ImNotTouchingYou:i,OverlapArea:r,GetDimensions:o,GetOffsets:a,GetExplicitOffsets:s}},function(e,t,n){"use strict";function i(e,t,i,r){function u(){e||t.hide(),c(),r&&r.apply(t)}function c(){t[0].style.transitionDuration=0,t.removeClass(d+" "+f+" "+i)}if(t=o()(t).eq(0),t.length){var d=e?s[0]:s[1],f=e?l[0]:l[1];c(),t.addClass(i).css("transition","none"),requestAnimationFrame(function(){t.addClass(d),e&&t.show()}),requestAnimationFrame(function(){t[0].offsetWidth,t.css("transition","").addClass(f)}),t.one(n.i(a.b)(t),u)}}n.d(t,"a",function(){return u});var r=n(0),o=n.n(r),a=n(1),s=["mui-enter","mui-leave"],l=["mui-enter-active","mui-leave-active"],u={animateIn:function(e,t,n){i(!0,e,t,n)},animateOut:function(e,t,n){i(!1,e,t,n)}}},function(e,t,n){"use strict";function i(e){if(void 0===Function.prototype.name){var t=/function\s([^(]{1,})\(/,n=t.exec(e.toString());return n&&n.length>1?n[1].trim():""}return void 0===e.prototype?e.constructor.name:e.prototype.constructor.name}function r(e){return"true"===e||"false"!==e&&(isNaN(1*e)?e:parseFloat(e))}function o(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}n.d(t,"a",function(){return d});var a=n(0),s=n.n(a),l=n(1),u=n(3),c="6.4.2",d={version:c,_plugins:{},_uuids:[],plugin:function(e,t){var n=t||i(e),r=o(n);this._plugins[r]=this[n]=e},registerPlugin:function(e,t){var r=t?o(t):i(e.constructor).toLowerCase();e.uuid=n.i(l.a)(6,r),e.$element.attr("data-"+r)||e.$element.attr("data-"+r,e.uuid),e.$element.data("zfPlugin")||e.$element.data("zfPlugin",e),e.$element.trigger("init.zf."+r),this._uuids.push(e.uuid)},unregisterPlugin:function(e){var t=o(i(e.$element.data("zfPlugin").constructor));this._uuids.splice(this._uuids.indexOf(e.uuid),1),e.$element.removeAttr("data-"+t).removeData("zfPlugin").trigger("destroyed.zf."+t);for(var n in e)e[n]=null},reInit:function(e){var t=e instanceof s.a;try{if(t)e.each(function(){s()(this).data("zfPlugin")._init()});else{var n=typeof e,i=this,r={object:function(e){e.forEach(function(e){e=o(e),s()("[data-"+e+"]").foundation("_init")})},string:function(){e=o(e),s()("[data-"+e+"]").foundation("_init")},undefined:function(){this.object(Object.keys(i._plugins))}};r[n](e)}}catch(e){console.error(e)}finally{return e}},reflow:function(e,t){"undefined"==typeof t?t=Object.keys(this._plugins):"string"==typeof t&&(t=[t]);var n=this;s.a.each(t,function(t,i){var o=n._plugins[i],a=s()(e).find("[data-"+i+"]").addBack("[data-"+i+"]");a.each(function(){var e=s()(this),t={};if(e.data("zfPlugin"))return void console.warn("Tried to initialize "+i+" on an element that already has a Foundation plugin.");if(e.attr("data-options")){e.attr("data-options").split(";").forEach(function(e,n){var i=e.split(":").map(function(e){return e.trim()});i[0]&&(t[i[0]]=r(i[1]))})}try{e.data("zfPlugin",new o(s()(this),t))}catch(e){console.error(e)}finally{return}})})},getFnName:i,addToJquery:function(e){var t=function(t){var n=typeof t,r=e(".no-js");if(r.length&&r.removeClass("no-js"),"undefined"===n)u.a._init(),d.reflow(this);else{if("string"!==n)throw new TypeError("We're sorry, "+n+" is not a valid parameter. You must use a string representing the method you wish to invoke.");var o=Array.prototype.slice.call(arguments,1),a=this.data("zfPlugin");if(void 0===a||void 0===a[t])throw new ReferenceError("We're sorry, '"+t+"' is not an available method for "+(a?i(a):"this element")+".");1===this.length?a[t].apply(a,o):this.each(function(n,i){a[t].apply(e(i).data("zfPlugin"),o)})}return this};return e.fn.foundation=t,e}};d.util={throttle:function(e,t){var n=null;return function(){var i=this,r=arguments;null===n&&(n=setTimeout(function(){e.apply(i,r),n=null},t))}}},window.Foundation=d,function(){Date.now&&window.Date.now||(window.Date.now=Date.now=function(){return(new Date).getTime()});for(var e=["webkit","moz"],t=0;t<e.length&&!window.requestAnimationFrame;++t){var n=e[t];window.requestAnimationFrame=window[n+"RequestAnimationFrame"],window.cancelAnimationFrame=window[n+"CancelAnimationFrame"]||window[n+"CancelRequestAnimationFrame"]}if(/iP(ad|hone|od).*OS 6/.test(window.navigator.userAgent)||!window.requestAnimationFrame||!window.cancelAnimationFrame){var i=0;window.requestAnimationFrame=function(e){var t=Date.now(),n=Math.max(i+16,t);return setTimeout(function(){e(i=n)},n-t)},window.cancelAnimationFrame=clearTimeout}window.performance&&window.performance.now||(window.performance={start:Date.now(),now:function(){return Date.now()-this.start}})}(),Function.prototype.bind||(Function.prototype.bind=function(e){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var t=Array.prototype.slice.call(arguments,1),n=this,i=function(){},r=function(){return n.apply(this instanceof i?this:e,t.concat(Array.prototype.slice.call(arguments)))};return this.prototype&&(i.prototype=this.prototype),r.prototype=new i,r})},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.d(t,"a",function(){return f});var a=n(0),s=n.n(a),l=n(3),u=n(2),c=n(1),d=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),f=function(e){function t(){return i(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),d(t,[{key:"_setup",value:function(e,n){this.$element=e,this.options=s.a.extend({},t.defaults,n),this.rules=[],this.currentPath="",this.className="Interchange",this._init(),this._events()}},{key:"_init",value:function(){l.a._init();var e=this.$element[0].id||n.i(c.a)(6,"interchange");this.$element.attr({"data-resize":e,id:e}),this._addBreakpoints(),this._generateRules(),this._reflow()}},{key:"_events",value:function(){var e=this;this.$element.off("resizeme.zf.trigger").on("resizeme.zf.trigger",function(){return e._reflow()})}},{key:"_reflow",value:function(){var e;for(var t in this.rules)if(this.rules.hasOwnProperty(t)){var n=this.rules[t];window.matchMedia(n.query).matches&&(e=n)}e&&this.replace(e.path)}},{key:"_addBreakpoints",value:function(){for(var e in l.a.queries)if(l.a.queries.hasOwnProperty(e)){var n=l.a.queries[e];t.SPECIAL_QUERIES[n.name]=n.value}}},{key:"_generateRules",value:function(e){var n,i=[];n=this.options.rules?this.options.rules:this.$element.data("interchange"),n="string"==typeof n?n.match(/\[.*?\]/g):n;for(var r in n)if(n.hasOwnProperty(r)){var o=n[r].slice(1,-1).split(", "),a=o.slice(0,-1).join(""),s=o[o.length-1];t.SPECIAL_QUERIES[s]&&(s=t.SPECIAL_QUERIES[s]),i.push({path:a,query:s})}this.rules=i}},{key:"replace",value:function(e){if(this.currentPath!==e){var t=this,n="replaced.zf.interchange";"IMG"===this.$element[0].nodeName?this.$element.attr("src",e).on("load",function(){t.currentPath=e}).trigger(n):e.match(/\.(gif|jpg|jpeg|png|svg|tiff)([?#].*)?/i)?(e=e.replace(/\(/g,"%28").replace(/\)/g,"%29"),this.$element.css({"background-image":"url("+e+")"}).trigger(n)):s.a.get(e,function(i){t.$element.html(i).trigger(n),s()(i).foundation(),t.currentPath=e})}}},{key:"_destroy",value:function(){this.$element.off("resizeme.zf.trigger")}}]),t}(u.a);f.defaults={rules:null},f.SPECIAL_QUERIES={landscape:"screen and (orientation: landscape)",portrait:"screen and (orientation: portrait)",retina:"only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx)"}},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.d(t,"a",function(){return g});var a=n(0),s=n.n(a),l=n(3),u=n(1),c=n(2),d=n(15),f=n(14),h=n(13),p=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),m={dropdown:{cssClass:"dropdown",plugin:d.a},drilldown:{cssClass:"drilldown",plugin:f.a},accordion:{cssClass:"accordion-menu",plugin:h.a}},g=function(e){function t(){return i(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),p(t,[{key:"_setup",value:function(e,t){this.$element=s()(e),this.rules=this.$element.data("responsive-menu"),this.currentMq=null,this.currentPlugin=null,this.className="ResponsiveMenu",this._init(),this._events()}},{key:"_init",value:function(){if(l.a._init(),"string"==typeof this.rules){for(var e={},t=this.rules.split(" "),i=0;i<t.length;i++){var r=t[i].split("-"),o=r.length>1?r[0]:"small",a=r.length>1?r[1]:r[0];null!==m[a]&&(e[o]=m[a])}this.rules=e}s.a.isEmptyObject(this.rules)||this._checkMediaQueries(),this.$element.attr("data-mutate",this.$element.attr("data-mutate")||n.i(u.a)(6,"responsive-menu"))}},{key:"_events",value:function(){var e=this;s()(window).on("changed.zf.mediaquery",function(){e._checkMediaQueries()})}},{key:"_checkMediaQueries",value:function(){var e,t=this;s.a.each(this.rules,function(t){l.a.atLeast(t)&&(e=t)}),e&&(this.currentPlugin instanceof this.rules[e].plugin||(s.a.each(m,function(e,n){t.$element.removeClass(n.cssClass)}),this.$element.addClass(this.rules[e].cssClass),this.currentPlugin&&this.currentPlugin.destroy(),this.currentPlugin=new this.rules[e].plugin(this.$element,{})))}},{key:"_destroy",value:function(){this.currentPlugin.destroy(),s()(window).off(".zf.ResponsiveMenu")}}]),t}(c.a);g.defaults={}},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.d(t,"a",function(){return f});var a=n(0),s=n.n(a),l=n(3),u=n(7),c=n(2),d=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),f=function(e){function t(){return i(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),d(t,[{key:"_setup",value:function(e,n){this.$element=s()(e),this.options=s.a.extend({},t.defaults,this.$element.data(),n),this.className="ResponsiveToggle",this._init(),this._events()}},{key:"_init",value:function(){l.a._init();var e=this.$element.data("responsive-toggle");if(e||console.error("Your tab bar needs an ID of a Menu as the value of data-tab-bar."),this.$targetMenu=s()("#"+e),this.$toggler=this.$element.find("[data-toggle]").filter(function(){var t=s()(this).data("toggle");return t===e||""===t}),this.options=s.a.extend({},this.options,this.$targetMenu.data()),this.options.animate){var t=this.options.animate.split(" ");this.animationIn=t[0],this.animationOut=t[1]||null}this._update()}},{key:"_events",value:function(){this._updateMqHandler=this._update.bind(this),s()(window).on("changed.zf.mediaquery",this._updateMqHandler),this.$toggler.on("click.zf.responsiveToggle",this.toggleMenu.bind(this))}},{key:"_update",value:function(){l.a.atLeast(this.options.hideFor)?(this.$element.hide(),this.$targetMenu.show()):(this.$element.show(),this.$targetMenu.hide())}},{key:"toggleMenu",value:function(){var e=this;l.a.atLeast(this.options.hideFor)||(this.options.animate?this.$targetMenu.is(":hidden")?u.a.animateIn(this.$targetMenu,this.animationIn,function(){e.$element.trigger("toggled.zf.responsiveToggle"),e.$targetMenu.find("[data-mutate]").triggerHandler("mutateme.zf.trigger")}):u.a.animateOut(this.$targetMenu,this.animationOut,function(){e.$element.trigger("toggled.zf.responsiveToggle")}):(this.$targetMenu.toggle(0),this.$targetMenu.find("[data-mutate]").trigger("mutateme.zf.trigger"),this.$element.trigger("toggled.zf.responsiveToggle")))}},{key:"_destroy",value:function(){this.$element.off(".zf.responsiveToggle"),this.$toggler.off(".zf.responsiveToggle"),s()(window).off("changed.zf.mediaquery",this._updateMqHandler)}}]),t}(c.a);f.defaults={hideFor:"medium",animate:!1}},function(e,t,n){"use strict";function i(e,t,n){var i=void 0,r=Array.prototype.slice.call(arguments,3);o()(window).off(t).on(t,function(t){i&&clearTimeout(i),i=setTimeout(function(){n.apply(null,r)},e||10)})}n.d(t,"a",function(){return u});var r=n(0),o=n.n(r),a=n(7),s=function(){for(var e=["WebKit","Moz","O","Ms",""],t=0;t<e.length;t++)if(e[t]+"MutationObserver"in window)return window[e[t]+"MutationObserver"];return!1}(),l=function(e,t){e.data(t).split(" ").forEach(function(n){o()("#"+n)["close"===t?"trigger":"triggerHandler"](t+".zf.trigger",[e])})},u={Listeners:{Basic:{},Global:{}},Initializers:{}};u.Listeners.Basic={openListener:function(){l(o()(this),"open")},closeListener:function(){var e=o()(this).data("close");e?l(o()(this),"close"):o()(this).trigger("close.zf.trigger")},toggleListener:function(){var e=o()(this).data("toggle");e?l(o()(this),"toggle"):o()(this).trigger("toggle.zf.trigger")},closeableListener:function(e){e.stopPropagation();var t=o()(this).data("closable");""!==t?a.a.animateOut(o()(this),t,function(){o()(this).trigger("closed.zf")}):o()(this).fadeOut().trigger("closed.zf")},toggleFocusListener:function(){var e=o()(this).data("toggle-focus");o()("#"+e).triggerHandler("toggle.zf.trigger",[o()(this)])}},u.Initializers.addOpenListener=function(e){e.off("click.zf.trigger",u.Listeners.Basic.openListener),e.on("click.zf.trigger","[data-open]",u.Listeners.Basic.openListener)},u.Initializers.addCloseListener=function(e){e.off("click.zf.trigger",u.Listeners.Basic.closeListener),e.on("click.zf.trigger","[data-close]",u.Listeners.Basic.closeListener)},u.Initializers.addToggleListener=function(e){e.off("click.zf.trigger",u.Listeners.Basic.toggleListener),e.on("click.zf.trigger","[data-toggle]",u.Listeners.Basic.toggleListener)},u.Initializers.addCloseableListener=function(e){e.off("close.zf.trigger",u.Listeners.Basic.closeableListener),e.on("close.zf.trigger","[data-closeable], [data-closable]",u.Listeners.Basic.closeableListener)},u.Initializers.addToggleFocusListener=function(e){e.off("focus.zf.trigger blur.zf.trigger",u.Listeners.Basic.toggleFocusListener),e.on("focus.zf.trigger blur.zf.trigger","[data-toggle-focus]",u.Listeners.Basic.toggleFocusListener)},u.Listeners.Global={resizeListener:function(e){s||e.each(function(){o()(this).triggerHandler("resizeme.zf.trigger")}),e.attr("data-events","resize")},scrollListener:function(e){s||e.each(function(){o()(this).triggerHandler("scrollme.zf.trigger")}),e.attr("data-events","scroll")},closeMeListener:function(e,t){var n=e.namespace.split(".")[0],i=o()("[data-"+n+"]").not('[data-yeti-box="'+t+'"]');i.each(function(){var e=o()(this);e.triggerHandler("close.zf.trigger",[e])})}},u.Initializers.addClosemeListener=function(e){var t=o()("[data-yeti-box]"),n=["dropdown","tooltip","reveal"];if(e&&("string"==typeof e?n.push(e):"object"==typeof e&&"string"==typeof e[0]?n.concat(e):console.error("Plugin names must be strings")),t.length){var i=n.map(function(e){return"closeme.zf."+e}).join(" ");o()(window).off(i).on(i,u.Listeners.Global.closeMeListener)}},u.Initializers.addResizeListener=function(e){var t=o()("[data-resize]");t.length&&i(e,"resize.zf.trigger",u.Listeners.Global.resizeListener,t)},u.Initializers.addScrollListener=function(e){var t=o()("[data-scroll]");t.length&&i(e,"scroll.zf.trigger",u.Listeners.Global.scrollListener,t)},u.Initializers.addMutationEventsListener=function(e){if(!s)return!1;var t=e.find("[data-resize], [data-scroll], [data-mutate]"),n=function(e){var t=o()(e[0].target);switch(e[0].type){case"attributes":"scroll"===t.attr("data-events")&&"data-events"===e[0].attributeName&&t.triggerHandler("scrollme.zf.trigger",[t,window.pageYOffset]),"resize"===t.attr("data-events")&&"data-events"===e[0].attributeName&&t.triggerHandler("resizeme.zf.trigger",[t]),"style"===e[0].attributeName&&(t.closest("[data-mutate]").attr("data-events","mutate"),t.closest("[data-mutate]").triggerHandler("mutateme.zf.trigger",[t.closest("[data-mutate]")]));break;case"childList":t.closest("[data-mutate]").attr("data-events","mutate"),t.closest("[data-mutate]").triggerHandler("mutateme.zf.trigger",[t.closest("[data-mutate]")]);break;default:return!1}};if(t.length)for(var i=0;i<=t.length-1;i++){var r=new s(n);r.observe(t[i],{attributes:!0,childList:!0,characterData:!1,subtree:!0,attributeFilter:["data-events","style"]})}},u.Initializers.addSimpleListeners=function(){var e=o()(document);u.Initializers.addOpenListener(e),u.Initializers.addCloseListener(e),u.Initializers.addToggleListener(e),u.Initializers.addCloseableListener(e),u.Initializers.addToggleFocusListener(e)},u.Initializers.addGlobalListeners=function(){var e=o()(document);u.Initializers.addMutationEventsListener(e),u.Initializers.addResizeListener(),u.Initializers.addScrollListener(),u.Initializers.addClosemeListener()},u.init=function(e,t){if("undefined"==typeof e.triggersInitialized){e(document);"complete"===document.readyState?(u.Initializers.addSimpleListeners(),u.Initializers.addGlobalListeners()):e(window).on("load",function(){u.Initializers.addSimpleListeners(),u.Initializers.addGlobalListeners()}),e.triggersInitialized=!0}t&&(t.Triggers=u,t.IHearYou=u.Initializers.addGlobalListeners)}},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.d(t,"a",function(){return h});var a=n(0),s=n.n(a),l=n(4),u=n(5),c=n(1),d=n(2),f=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),h=function(e){function t(){return i(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),f(t,[{key:"_setup",value:function(e,n){this.$element=e,this.options=s.a.extend({},t.defaults,this.$element.data(),n),this.className="AccordionMenu",this._init(),l.a.register("AccordionMenu",{ENTER:"toggle",SPACE:"toggle",ARROW_RIGHT:"open",ARROW_UP:"up",ARROW_DOWN:"down",ARROW_LEFT:"close",ESCAPE:"closeAll"})}},{key:"_init",value:function(){u.a.Feather(this.$element,"accordion");var e=this;this.$element.find("[data-submenu]").not(".is-active").slideUp(0),this.$element.attr({role:"tree","aria-multiselectable":this.options.multiOpen}),this.$menuLinks=this.$element.find(".is-accordion-submenu-parent"),this.$menuLinks.each(function(){var t=this.id||n.i(c.a)(6,"acc-menu-link"),i=s()(this),r=i.children("[data-submenu]"),o=r[0].id||n.i(c.a)(6,"acc-menu"),a=r.hasClass("is-active");e.options.submenuToggle?(i.addClass("has-submenu-toggle"),i.children("a").after('<button id="'+t+'" class="submenu-toggle" aria-controls="'+o+'" aria-expanded="'+a+'" title="'+e.options.submenuToggleText+'"><span class="submenu-toggle-text">'+e.options.submenuToggleText+"</span></button>")):i.attr({"aria-controls":o,"aria-expanded":a,id:t}),r.attr({"aria-labelledby":t,"aria-hidden":!a,role:"group",id:o})}),this.$element.find("li").attr({role:"treeitem"});var t=this.$element.find(".is-active");if(t.length){var e=this;t.each(function(){e.down(s()(this))})}this._events()}},{key:"_events",value:function(){var e=this;this.$element.find("li").each(function(){var t=s()(this).children("[data-submenu]");t.length&&(e.options.submenuToggle?s()(this).children(".submenu-toggle").off("click.zf.accordionMenu").on("click.zf.accordionMenu",function(n){e.toggle(t)}):s()(this).children("a").off("click.zf.accordionMenu").on("click.zf.accordionMenu",function(n){n.preventDefault(),e.toggle(t)}))}).on("keydown.zf.accordionmenu",function(t){var n,i,r=s()(this),o=r.parent("ul").children("li"),a=r.children("[data-submenu]");o.each(function(e){if(s()(this).is(r))return n=o.eq(Math.max(0,e-1)).find("a").first(),i=o.eq(Math.min(e+1,o.length-1)).find("a").first(),s()(this).children("[data-submenu]:visible").length&&(i=r.find("li:first-child").find("a").first()),s()(this).is(":first-child")?n=r.parents("li").first().find("a").first():n.parents("li").first().children("[data-submenu]:visible").length&&(n=n.parents("li").find("li:last-child").find("a").first()),void(s()(this).is(":last-child")&&(i=r.parents("li").first().next("li").find("a").first()));
}),l.a.handleKey(t,"AccordionMenu",{open:function(){a.is(":hidden")&&(e.down(a),a.find("li").first().find("a").first().focus())},close:function(){a.length&&!a.is(":hidden")?e.up(a):r.parent("[data-submenu]").length&&(e.up(r.parent("[data-submenu]")),r.parents("li").first().find("a").first().focus())},up:function(){return n.focus(),!0},down:function(){return i.focus(),!0},toggle:function(){return!e.options.submenuToggle&&(r.children("[data-submenu]").length?(e.toggle(r.children("[data-submenu]")),!0):void 0)},closeAll:function(){e.hideAll()},handled:function(e){e&&t.preventDefault(),t.stopImmediatePropagation()}})})}},{key:"hideAll",value:function(){this.up(this.$element.find("[data-submenu]"))}},{key:"showAll",value:function(){this.down(this.$element.find("[data-submenu]"))}},{key:"toggle",value:function(e){e.is(":animated")||(e.is(":hidden")?this.down(e):this.up(e))}},{key:"down",value:function(e){var t=this;this.options.multiOpen||this.up(this.$element.find(".is-active").not(e.parentsUntil(this.$element).add(e))),e.addClass("is-active").attr({"aria-hidden":!1}),this.options.submenuToggle?e.prev(".submenu-toggle").attr({"aria-expanded":!0}):e.parent(".is-accordion-submenu-parent").attr({"aria-expanded":!0}),e.slideDown(t.options.slideSpeed,function(){t.$element.trigger("down.zf.accordionMenu",[e])})}},{key:"up",value:function(e){var t=this;e.slideUp(t.options.slideSpeed,function(){t.$element.trigger("up.zf.accordionMenu",[e])});var n=e.find("[data-submenu]").slideUp(0).addBack().attr("aria-hidden",!0);this.options.submenuToggle?n.prev(".submenu-toggle").attr("aria-expanded",!1):n.parent(".is-accordion-submenu-parent").attr("aria-expanded",!1)}},{key:"_destroy",value:function(){this.$element.find("[data-submenu]").slideDown(0).css("display",""),this.$element.find("a").off("click.zf.accordionMenu"),this.options.submenuToggle&&(this.$element.find(".has-submenu-toggle").removeClass("has-submenu-toggle"),this.$element.find(".submenu-toggle").remove()),u.a.Burn(this.$element,"accordion")}}]),t}(d.a);h.defaults={slideSpeed:250,submenuToggle:!1,submenuToggleText:"Toggle menu",multiOpen:!0}},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.d(t,"a",function(){return p});var a=n(0),s=n.n(a),l=n(4),u=n(5),c=n(1),d=n(6),f=n(2),h=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),p=function(e){function t(){return i(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),h(t,[{key:"_setup",value:function(e,n){this.$element=e,this.options=s.a.extend({},t.defaults,this.$element.data(),n),this.className="Drilldown",this._init(),l.a.register("Drilldown",{ENTER:"open",SPACE:"open",ARROW_RIGHT:"next",ARROW_UP:"up",ARROW_DOWN:"down",ARROW_LEFT:"previous",ESCAPE:"close",TAB:"down",SHIFT_TAB:"up"})}},{key:"_init",value:function(){u.a.Feather(this.$element,"drilldown"),this.options.autoApplyClass&&this.$element.addClass("drilldown"),this.$element.attr({role:"tree","aria-multiselectable":!1}),this.$submenuAnchors=this.$element.find("li.is-drilldown-submenu-parent").children("a"),this.$submenus=this.$submenuAnchors.parent("li").children("[data-submenu]").attr("role","group"),this.$menuItems=this.$element.find("li").not(".js-drilldown-back").attr("role","treeitem").find("a"),this.$element.attr("data-mutate",this.$element.attr("data-drilldown")||n.i(c.a)(6,"drilldown")),this._prepareMenu(),this._registerEvents(),this._keyboardEvents()}},{key:"_prepareMenu",value:function(){var e=this;this.$submenuAnchors.each(function(){var t=s()(this),n=t.parent();e.options.parentLink&&t.clone().prependTo(n.children("[data-submenu]")).wrap('<li class="is-submenu-parent-item is-submenu-item is-drilldown-submenu-item" role="menuitem"></li>'),t.data("savedHref",t.attr("href")).removeAttr("href").attr("tabindex",0),t.children("[data-submenu]").attr({"aria-hidden":!0,tabindex:0,role:"group"}),e._events(t)}),this.$submenus.each(function(){var t=s()(this),n=t.find(".js-drilldown-back");if(!n.length)switch(e.options.backButtonPosition){case"bottom":t.append(e.options.backButton);break;case"top":t.prepend(e.options.backButton);break;default:console.error("Unsupported backButtonPosition value '"+e.options.backButtonPosition+"'")}e._back(t)}),this.$submenus.addClass("invisible"),this.options.autoHeight||this.$submenus.addClass("drilldown-submenu-cover-previous"),this.$element.parent().hasClass("is-drilldown")||(this.$wrapper=s()(this.options.wrapper).addClass("is-drilldown"),this.options.animateHeight&&this.$wrapper.addClass("animate-height"),this.$element.wrap(this.$wrapper)),this.$wrapper=this.$element.parent(),this.$wrapper.css(this._getMaxDims())}},{key:"_resize",value:function(){this.$wrapper.css({"max-width":"none","min-height":"none"}),this.$wrapper.css(this._getMaxDims())}},{key:"_events",value:function(e){var t=this;e.off("click.zf.drilldown").on("click.zf.drilldown",function(n){if(s()(n.target).parentsUntil("ul","li").hasClass("is-drilldown-submenu-parent")&&(n.stopImmediatePropagation(),n.preventDefault()),t._show(e.parent("li")),t.options.closeOnClick){var i=s()("body");i.off(".zf.drilldown").on("click.zf.drilldown",function(e){e.target===t.$element[0]||s.a.contains(t.$element[0],e.target)||(e.preventDefault(),t._hideAll(),i.off(".zf.drilldown"))})}})}},{key:"_registerEvents",value:function(){this.options.scrollTop&&(this._bindHandler=this._scrollTop.bind(this),this.$element.on("open.zf.drilldown hide.zf.drilldown closed.zf.drilldown",this._bindHandler)),this.$element.on("mutateme.zf.trigger",this._resize.bind(this))}},{key:"_scrollTop",value:function(){var e=this,t=""!=e.options.scrollTopElement?s()(e.options.scrollTopElement):e.$element,n=parseInt(t.offset().top+e.options.scrollTopOffset,10);s()("html, body").stop(!0).animate({scrollTop:n},e.options.animationDuration,e.options.animationEasing,function(){this===s()("html")[0]&&e.$element.trigger("scrollme.zf.drilldown")})}},{key:"_keyboardEvents",value:function(){var e=this;this.$menuItems.add(this.$element.find(".js-drilldown-back > a, .is-submenu-parent-item > a")).on("keydown.zf.drilldown",function(t){var i,r,o=s()(this),a=o.parent("li").parent("ul").children("li").children("a");a.each(function(e){if(s()(this).is(o))return i=a.eq(Math.max(0,e-1)),void(r=a.eq(Math.min(e+1,a.length-1)))}),l.a.handleKey(t,"Drilldown",{next:function(){if(o.is(e.$submenuAnchors))return e._show(o.parent("li")),o.parent("li").one(n.i(c.b)(o),function(){o.parent("li").find("ul li a").filter(e.$menuItems).first().focus()}),!0},previous:function(){return e._hide(o.parent("li").parent("ul")),o.parent("li").parent("ul").one(n.i(c.b)(o),function(){setTimeout(function(){o.parent("li").parent("ul").parent("li").children("a").first().focus()},1)}),!0},up:function(){return i.focus(),!o.is(e.$element.find("> li:first-child > a"))},down:function(){return r.focus(),!o.is(e.$element.find("> li:last-child > a"))},close:function(){o.is(e.$element.find("> li > a"))||(e._hide(o.parent().parent()),o.parent().parent().siblings("a").focus())},open:function(){return o.is(e.$menuItems)?o.is(e.$submenuAnchors)?(e._show(o.parent("li")),o.parent("li").one(n.i(c.b)(o),function(){o.parent("li").find("ul li a").filter(e.$menuItems).first().focus()}),!0):void 0:(e._hide(o.parent("li").parent("ul")),o.parent("li").parent("ul").one(n.i(c.b)(o),function(){setTimeout(function(){o.parent("li").parent("ul").parent("li").children("a").first().focus()},1)}),!0)},handled:function(e){e&&t.preventDefault(),t.stopImmediatePropagation()}})})}},{key:"_hideAll",value:function(){var e=this.$element.find(".is-drilldown-submenu.is-active").addClass("is-closing");this.options.autoHeight&&this.$wrapper.css({height:e.parent().closest("ul").data("calcHeight")}),e.one(n.i(c.b)(e),function(t){e.removeClass("is-active is-closing")}),this.$element.trigger("closed.zf.drilldown")}},{key:"_back",value:function(e){var t=this;e.off("click.zf.drilldown"),e.children(".js-drilldown-back").on("click.zf.drilldown",function(n){n.stopImmediatePropagation(),t._hide(e);var i=e.parent("li").parent("ul").parent("li");i.length&&t._show(i)})}},{key:"_menuLinkEvents",value:function(){var e=this;this.$menuItems.not(".is-drilldown-submenu-parent").off("click.zf.drilldown").on("click.zf.drilldown",function(t){setTimeout(function(){e._hideAll()},0)})}},{key:"_show",value:function(e){this.options.autoHeight&&this.$wrapper.css({height:e.children("[data-submenu]").data("calcHeight")}),e.attr("aria-expanded",!0),e.children("[data-submenu]").addClass("is-active").removeClass("invisible").attr("aria-hidden",!1),this.$element.trigger("open.zf.drilldown",[e])}},{key:"_hide",value:function(e){this.options.autoHeight&&this.$wrapper.css({height:e.parent().closest("ul").data("calcHeight")});e.parent("li").attr("aria-expanded",!1),e.attr("aria-hidden",!0).addClass("is-closing"),e.addClass("is-closing").one(n.i(c.b)(e),function(){e.removeClass("is-active is-closing"),e.blur().addClass("invisible")}),e.trigger("hide.zf.drilldown",[e])}},{key:"_getMaxDims",value:function(){var e=0,t={},n=this;return this.$submenus.add(this.$element).each(function(){var i=(s()(this).children("li").length,d.a.GetDimensions(this).height);e=i>e?i:e,n.options.autoHeight&&(s()(this).data("calcHeight",i),s()(this).hasClass("is-drilldown-submenu")||(t.height=i))}),this.options.autoHeight||(t["min-height"]=e+"px"),t["max-width"]=this.$element[0].getBoundingClientRect().width+"px",t}},{key:"_destroy",value:function(){this.options.scrollTop&&this.$element.off(".zf.drilldown",this._bindHandler),this._hideAll(),this.$element.off("mutateme.zf.trigger"),u.a.Burn(this.$element,"drilldown"),this.$element.unwrap().find(".js-drilldown-back, .is-submenu-parent-item").remove().end().find(".is-active, .is-closing, .is-drilldown-submenu").removeClass("is-active is-closing is-drilldown-submenu").end().find("[data-submenu]").removeAttr("aria-hidden tabindex role"),this.$submenuAnchors.each(function(){s()(this).off(".zf.drilldown")}),this.$submenus.removeClass("drilldown-submenu-cover-previous invisible"),this.$element.find("a").each(function(){var e=s()(this);e.removeAttr("tabindex"),e.data("savedHref")&&e.attr("href",e.data("savedHref")).removeData("savedHref")})}}]),t}(f.a);p.defaults={autoApplyClass:!0,backButton:'<li class="js-drilldown-back"><a tabindex="0">Back</a></li>',backButtonPosition:"top",wrapper:"<div></div>",parentLink:!1,closeOnClick:!1,autoHeight:!1,animateHeight:!1,scrollTop:!1,scrollTopElement:"",scrollTopOffset:0,animationDuration:500,animationEasing:"swing"}},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.d(t,"a",function(){return p});var a=n(0),s=n.n(a),l=n(4),u=n(5),c=n(6),d=n(1),f=n(2),h=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),p=function(e){function t(){return i(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),h(t,[{key:"_setup",value:function(e,n){this.$element=e,this.options=s.a.extend({},t.defaults,this.$element.data(),n),this.className="DropdownMenu",this._init(),l.a.register("DropdownMenu",{ENTER:"open",SPACE:"open",ARROW_RIGHT:"next",ARROW_UP:"up",ARROW_DOWN:"down",ARROW_LEFT:"previous",ESCAPE:"close"})}},{key:"_init",value:function(){u.a.Feather(this.$element,"dropdown");var e=this.$element.find("li.is-dropdown-submenu-parent");this.$element.children(".is-dropdown-submenu-parent").children(".is-dropdown-submenu").addClass("first-sub"),this.$menuItems=this.$element.find('[role="menuitem"]'),this.$tabs=this.$element.children('[role="menuitem"]'),this.$tabs.find("ul.is-dropdown-submenu").addClass(this.options.verticalClass),"auto"===this.options.alignment?this.$element.hasClass(this.options.rightClass)||n.i(d.c)()||this.$element.parents(".top-bar-right").is("*")?(this.options.alignment="right",e.addClass("opens-left")):(this.options.alignment="left",e.addClass("opens-right")):"right"===this.options.alignment?e.addClass("opens-left"):e.addClass("opens-right"),this.changed=!1,this._events()}},{key:"_isVertical",value:function(){return"block"===this.$tabs.css("display")||"column"===this.$element.css("flex-direction")}},{key:"_isRtl",value:function(){return this.$element.hasClass("align-right")||n.i(d.c)()&&!this.$element.hasClass("align-left")}},{key:"_events",value:function(){var e=this,t="ontouchstart"in window||"undefined"!=typeof window.ontouchstart,n="is-dropdown-submenu-parent",i=function(i){var r=s()(i.target).parentsUntil("ul","."+n),o=r.hasClass(n),a="true"===r.attr("data-is-click"),l=r.children(".is-dropdown-submenu");if(o)if(a){if(!e.options.closeOnClick||!e.options.clickOpen&&!t||e.options.forceFollow&&t)return;i.stopImmediatePropagation(),i.preventDefault(),e._hide(r)}else i.preventDefault(),i.stopImmediatePropagation(),e._show(l),r.add(r.parentsUntil(e.$element,"."+n)).attr("data-is-click",!0)};(this.options.clickOpen||t)&&this.$menuItems.on("click.zf.dropdownmenu touchstart.zf.dropdownmenu",i),e.options.closeOnClickInside&&this.$menuItems.on("click.zf.dropdownmenu",function(t){var i=s()(this),r=i.hasClass(n);r||e._hide()}),this.options.disableHover||this.$menuItems.on("mouseenter.zf.dropdownmenu",function(t){var i=s()(this),r=i.hasClass(n);r&&(clearTimeout(i.data("_delay")),i.data("_delay",setTimeout(function(){e._show(i.children(".is-dropdown-submenu"))},e.options.hoverDelay)))}).on("mouseleave.zf.dropdownmenu",function(t){var i=s()(this),r=i.hasClass(n);if(r&&e.options.autoclose){if("true"===i.attr("data-is-click")&&e.options.clickOpen)return!1;clearTimeout(i.data("_delay")),i.data("_delay",setTimeout(function(){e._hide(i)},e.options.closingTime))}}),this.$menuItems.on("keydown.zf.dropdownmenu",function(t){var n,i,r=s()(t.target).parentsUntil("ul",'[role="menuitem"]'),o=e.$tabs.index(r)>-1,a=o?e.$tabs:r.siblings("li").add(r);a.each(function(e){if(s()(this).is(r))return n=a.eq(e-1),void(i=a.eq(e+1))});var u=function(){i.children("a:first").focus(),t.preventDefault()},c=function(){n.children("a:first").focus(),t.preventDefault()},d=function(){var n=r.children("ul.is-dropdown-submenu");n.length&&(e._show(n),r.find("li > a:first").focus(),t.preventDefault())},f=function(){var n=r.parent("ul").parent("li");n.children("a:first").focus(),e._hide(n),t.preventDefault()},h={open:d,close:function(){e._hide(e.$element),e.$menuItems.eq(0).children("a").focus(),t.preventDefault()},handled:function(){t.stopImmediatePropagation()}};o?e._isVertical()?e._isRtl()?s.a.extend(h,{down:u,up:c,next:f,previous:d}):s.a.extend(h,{down:u,up:c,next:d,previous:f}):e._isRtl()?s.a.extend(h,{next:c,previous:u,down:d,up:f}):s.a.extend(h,{next:u,previous:c,down:d,up:f}):e._isRtl()?s.a.extend(h,{next:f,previous:d,down:u,up:c}):s.a.extend(h,{next:d,previous:f,down:u,up:c}),l.a.handleKey(t,"DropdownMenu",h)})}},{key:"_addBodyHandler",value:function(){var e=s()(document.body),t=this;e.off("mouseup.zf.dropdownmenu touchend.zf.dropdownmenu").on("mouseup.zf.dropdownmenu touchend.zf.dropdownmenu",function(n){var i=t.$element.find(n.target);i.length||(t._hide(),e.off("mouseup.zf.dropdownmenu touchend.zf.dropdownmenu"))})}},{key:"_show",value:function(e){var t=this.$tabs.index(this.$tabs.filter(function(t,n){return s()(n).find(e).length>0})),n=e.parent("li.is-dropdown-submenu-parent").siblings("li.is-dropdown-submenu-parent");this._hide(n,t),e.css("visibility","hidden").addClass("js-dropdown-active").parent("li.is-dropdown-submenu-parent").addClass("is-active");var i=c.a.ImNotTouchingYou(e,null,!0);if(!i){var r="left"===this.options.alignment?"-right":"-left",o=e.parent(".is-dropdown-submenu-parent");o.removeClass("opens"+r).addClass("opens-"+this.options.alignment),i=c.a.ImNotTouchingYou(e,null,!0),i||o.removeClass("opens-"+this.options.alignment).addClass("opens-inner"),this.changed=!0}e.css("visibility",""),this.options.closeOnClick&&this._addBodyHandler(),this.$element.trigger("show.zf.dropdownmenu",[e])}},{key:"_hide",value:function(e,t){var n;n=e&&e.length?e:void 0!==t?this.$tabs.not(function(e,n){return e===t}):this.$element;var i=n.hasClass("is-active")||n.find(".is-active").length>0;if(i){if(n.find("li.is-active").add(n).attr({"data-is-click":!1}).removeClass("is-active"),n.find("ul.js-dropdown-active").removeClass("js-dropdown-active"),this.changed||n.find("opens-inner").length){var r="left"===this.options.alignment?"right":"left";n.find("li.is-dropdown-submenu-parent").add(n).removeClass("opens-inner opens-"+this.options.alignment).addClass("opens-"+r),this.changed=!1}this.$element.trigger("hide.zf.dropdownmenu",[n])}}},{key:"_destroy",value:function(){this.$menuItems.off(".zf.dropdownmenu").removeAttr("data-is-click").removeClass("is-right-arrow is-left-arrow is-down-arrow opens-right opens-left opens-inner"),s()(document.body).off(".zf.dropdownmenu"),u.a.Burn(this.$element,"dropdown")}}]),t}(f.a);p.defaults={disableHover:!1,autoclose:!0,hoverDelay:50,clickOpen:!1,closingTime:500,alignment:"auto",closeOnClick:!0,closeOnClickInside:!0,verticalClass:"vertical",rightClass:"align-right",forceFollow:!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n.n(i),o=n(8),a=n(3),s=n(12),l=n(10),u=n(9),c=n(11);o.a.addToJquery(r.a),o.a.MediaQuery=a.a,s.a.init(r.a,o.a),o.a.plugin(l.a,"ResponsiveMenu"),o.a.plugin(u.a,"Interchange"),o.a.plugin(c.a,"ResponsiveToggle")}]);