"use strict";function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}!function(e,o){var t,n,s,i,r,a,h,l,p,f,u,c,d,v,y,m,C,w=(n="sf-breadcrumb",s="sf-js-enabled",i="sf-with-ul",r="sf-arrows",a=function(){var o=/^(?![\w\W]*Windows Phone)[\w\W]*(iPhone|iPad|iPod)/i.test(navigator.userAgent);return o&&e("html").css("cursor","pointer").on("click",e.noop),o}(),h="behavior"in(t=document.documentElement.style)&&"fill"in t&&/iemobile/i.test(navigator.userAgent),l=!!o.PointerEvent,p=function(e,o,t){var n=s;o.cssArrows&&(n+=" "+r),e[t?"addClass":"removeClass"](n)},f=function(e,o){var t=o?"addClass":"removeClass";e.children("a")[t](i)},u=function(e){var o=e.css("ms-touch-action"),t=e.css("touch-action");t="pan-y"===(t=t||o)?"auto":"pan-y",e.css({"ms-touch-action":t,"touch-action":t})},c=function(e){return e.closest("."+s)},d=function(e){return c(e).data("sfOptions")},v=function(){var o=e(this),t=d(o);clearTimeout(t.sfTimer),o.siblings().superfish("hide").end().superfish("show")},y=function(o){o.retainPath=e.inArray(this[0],o.$path)>-1,this.superfish("hide"),this.parents("."+o.hoverClass).length||(o.onIdle.call(c(this)),o.$path.length&&e.proxy(v,o.$path)())},m=function(){var o=e(this),t=d(o);a?e.proxy(y,o,t)():(clearTimeout(t.sfTimer),t.sfTimer=setTimeout(e.proxy(y,o,t),t.delay))},C=function(o){var t=e(this),n=d(t),s=t.siblings(o.data.popUpSelector);if(!1===n.onHandleTouch.call(s))return this;s.length>0&&s.is(":hidden")&&(t.one("click.superfish",!1),"MSPointerDown"===o.type||"pointerdown"===o.type?t.trigger("focus"):e.proxy(v,t.parent("li"))())},{hide:function(o){if(this.length){var t=d(this);if(!t)return this;var n=!0===t.retainPath?t.$path:"",s=this.find("li."+t.hoverClass).add(this).not(n).removeClass(t.hoverClass).children(t.popUpSelector),i=t.speedOut;if(o&&(s.show(),i=0),t.retainPath=!1,!1===t.onBeforeHide.call(s))return this;s.stop(!0,!0).animate(t.animationOut,i,(function(){var o=e(this);t.onHide.call(o)}))}return this},show:function(){var e=d(this);if(!e)return this;var o=this.addClass(e.hoverClass).children(e.popUpSelector);return!1===e.onBeforeShow.call(o)||o.stop(!0,!0).animate(e.animation,e.speed,(function(){e.onShow.call(o)})),this},destroy:function(){return this.each((function(){var o,t=e(this),s=t.data("sfOptions");if(!s)return!1;o=t.find(s.popUpSelector).parent("li"),clearTimeout(s.sfTimer),p(t,s),f(o),u(t),t.off(".superfish").off(".hoverIntent"),o.children(s.popUpSelector).attr("style",(function(e,o){if(void 0!==o)return o.replace(/display[^;]+;?/g,"")})),s.$path.removeClass(s.hoverClass+" "+n).addClass(s.pathClass),t.find("."+s.hoverClass).removeClass(s.hoverClass),s.onDestroy.call(t),t.removeData("sfOptions")}))},init:function(o){return this.each((function(){var t=e(this);if(t.data("sfOptions"))return!1;var s=e.extend({},e.fn.superfish.defaults,o),i=t.find(s.popUpSelector).parent("li");s.$path=function(o,t){return o.find("li."+t.pathClass).slice(0,t.pathLevels).addClass(t.hoverClass+" "+n).filter((function(){return e(this).children(t.popUpSelector).hide().show().length})).removeClass(t.pathClass)}(t,s),t.data("sfOptions",s),p(t,s,!0),f(i,!0),u(t),function(o,t){var n="li:has("+t.popUpSelector+")";e.fn.hoverIntent&&!t.disableHI?o.hoverIntent(v,m,n):o.on("mouseenter.superfish",n,v).on("mouseleave.superfish",n,m);var s="MSPointerDown.superfish";l&&(s="pointerdown.superfish"),a||(s+=" touchend.superfish"),h&&(s+=" mousedown.superfish"),o.on("focusin.superfish","li",v).on("focusout.superfish","li",m).on(s,"a",t,C)}(t,s),i.not("."+n).superfish("hide",!0),s.onInit.call(this)}))}});e.fn.superfish=function(o,t){return w[o]?w[o].apply(this,Array.prototype.slice.call(arguments,1)):"object"!==_typeof(o)&&o?e.error("Method "+o+" does not exist on jQuery.fn.superfish"):w.init.apply(this,arguments)},e.fn.superfish.defaults={popUpSelector:"ul,.sf-mega",hoverClass:"sfHover",pathClass:"overrideThisToUse",pathLevels:1,delay:800,animation:{opacity:"show"},animationOut:{opacity:"hide"},speed:"normal",speedOut:"fast",cssArrows:!0,disableHI:!1,onInit:e.noop,onBeforeShow:e.noop,onShow:e.noop,onBeforeHide:e.noop,onHide:e.noop,onIdle:e.noop,onDestroy:e.noop,onHandleTouch:e.noop}}(jQuery,window); //# sourceMappingURL=superfish.js.map