PageSourceSearch

https://colombia.travel/sites/default/files/js/js_V_4Kt0Riu8Qz7R28…GI2VquEkpzH5HuwvtDtTZsJv-sz_3PhGYLf8AuzluSQ

js colombia.travel collected 2026-10-01 09:19:38 UTC 364,535 bytes, 2,376 lines download raw bytes

1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
2;
3!function(t){function e(n){if(i[n])return i[n].exports;var s=i[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,e),s.l=!0,s.exports;}var i={};e.m=t,e.c=i,e.i=function(t){return t;},e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:n});},e.n=function(t){var i=t&&t.__esModule?function(){return t.default;}:function(){return t;};return e.d(i,"a",i),i;},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e);},e.p="",e(e.s=36);}([function(t,e){t.exports=jQuery;},function(t,e,i){"use strict";function n(){return "rtl"===r()("html").attr("dir");}function s(t,e){return t=t||6,Math.round(Math.pow(36,t+1)-Math.random()*Math.pow(36,t)).toString(36).slice(1)+(e?"-"+e:"");}function o(t){var e,i={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend"},n=document.createElement("div");for(var s in i)void 0!==n.style[s]&&(e=i[s]);return e||(e=setTimeout(function(){t.triggerHandler("transitionend",[t]);},1),"transitionend");}i.d(e,"a",function(){return n;}),i.d(e,"b",function(){return s;}),i.d(e,"c",function(){return o;});var a=i(0),r=i.n(a);},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");}function s(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();}function o(t){return s(void 0!==t.constructor.name?t.constructor.name:t.className);}i.d(e,"a",function(){return u;});var a=i(0),r=(i.n(a),i(1)),l=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value" in n&&(n.writable=!0),Object.defineProperty(t,n.key,n);}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e;};}(),u=function(){function t(e,s){n(this,t),this._setup(e,s);var a=o(this);this.uuid=i.i(r.b)(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(t,[{key:"destroy",value:function(){this._destroy();var t=o(this);this.$element.removeAttr("data-"+t).removeData("zfPlugin").trigger("destroyed.zf."+t);for(var e in this)this[e]=null;}}]),t;}();},function(t,e,i){"use strict";function n(t){return !!t&&t.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 !(!a()(this).is(":visible")||a()(this).attr("tabindex")<0);});}function s(t){var e=l[t.which||t.keyCode]||String.fromCharCode(t.which).toUpperCase();return e=e.replace(/\W+/,""),t.shiftKey&&(e="SHIFT_"+e),t.ctrlKey&&(e="CTRL_"+e),t.altKey&&(e="ALT_"+e),e=e.replace(/_$/,"");}i.d(e,"a",function(){return c;});var o=i(0),a=i.n(o),r=i(1),l={9:"TAB",13:"ENTER",27:"ESCAPE",32:"SPACE",35:"END",36:"HOME",37:"ARROW_LEFT",38:"ARROW_UP",39:"ARROW_RIGHT",40:"ARROW_DOWN"},u={},c={keys:function(t){var e={};for(var i in t)e[t[i]]=t[i];return e;}(l),parseKey:s,handleKey:function(t,e,n){var s,o,l,c=u[e],h=this.parseKey(t);if(!c)return console.warn("Component not defined!");if(s=void 0===c.ltr?c:i.i(r.a)()?a.a.extend({},c.ltr,c.rtl):a.a.extend({},c.rtl,c.ltr),o=s[h],(l=n[o])&&"function"==typeof l){var d=l.apply();(n.handled||"function"==typeof n.handled)&&n.handled(d);}else (n.unhandled||"function"==typeof n.unhandled)&&n.unhandled();},findFocusable:n,register:function(t,e){u[t]=e;},trapFocus:function(t){var e=n(t),i=e.eq(0),o=e.eq(-1);t.on("keydown.zf.trapfocus",function(t){t.target===o[0]&&"TAB"===s(t)?(t.preventDefault(),i.focus()):t.target===i[0]&&"SHIFT_TAB"===s(t)&&(t.preventDefault(),o.focus());});},releaseFocus:function(t){t.off("keydown.zf.trapfocus");}};},function(t,e,i){"use strict";function n(t){var e={};return "string"!=typeof t?e:(t=t.trim().slice(1,-1))?e=t.split("&").reduce(function(t,e){var i=e.replace(/\+/g," ").split("="),n=i[0],s=i[1];return n=decodeURIComponent(n),s=void 0===s?null:decodeURIComponent(s),t.hasOwnProperty(n)?Array.isArray(t[n])?t[n].push(s):t[n]=[t[n],s]:t[n]=s,t;},{}):e;}i.d(e,"a",function(){return r;});var s=i(0),o=i.n(s),a=window.matchMedia||function(){var t=window.styleMedia||window.media;if(!t){var e=document.createElement("style"),i=document.getElementsByTagName("script")[0],n=null;e.type="text/css",e.id="matchmediajs-test",i&&i.parentNode&&i.parentNode.insertBefore(e,i),n="getComputedStyle" in window&&window.getComputedStyle(e,null)||e.currentStyle,t={matchMedium:function(t){var i="@media "+t+"{ #matchmediajs-test { width: 1px; } }";return e.styleSheet?e.styleSheet.cssText=i:e.textContent=i,"1px"===n.width;}};}return function(e){return {matches:t.matchMedium(e||"all"),media:e||"all"};};}(),r={queries:[],current:"",_init:function(){var t=this;o()("meta.foundation-mq").length||o()('<meta class="foundation-mq">').appendTo(document.head);var e,i=o()(".foundation-mq").css("font-family");e=n(i);for(var s in e)e.hasOwnProperty(s)&&t.queries.push({name:s,value:"only screen and (min-width: "+e[s]+")"});this.current=this._getCurrentSize(),this._watcher();},atLeast:function(t){var e=this.get(t);return !!e&&a(e).matches;},is:function(t){return t=t.trim().split(" "),t.length>1&&"only"===t[1]?t[0]===this._getCurrentSize():this.atLeast(t[0]);},get:function(t){for(var e in this.queries)if(this.queries.hasOwnProperty(e)){var i=this.queries[e];if(t===i.name)return i.value;}return null;},_getCurrentSize:function(){for(var t,e=0;e<this.queries.length;e++){var i=this.queries[e];a(i.value).matches&&(t=i);}return "object"==typeof t?t.name:t;},_watcher:function(){var t=this;o()(window).off("resize.zf.mediaquery").on("resize.zf.mediaquery",function(){var e=t._getCurrentSize(),i=t.current;e!==i&&(t.current=e,o()(window).trigger("changed.zf.mediaquery",[e,i]));});}};}
3,function(t,e,i){"use strict";function n(t,e,i){var n=void 0,s=Array.prototype.slice.call(arguments,3);o()(window).off(e).on(e,function(e){n&&clearTimeout(n),n=setTimeout(function(){i.apply(null,s);},t||10);});}i.d(e,"a",function(){return u;});var s=i(0),o=i.n(s),a=i(6),r=function(){for(var t=["WebKit","Moz","O","Ms",""],e=0;e<t.length;e++)if(t[e]+"MutationObserver" in window)return window[t[e]+"MutationObserver"];return !1;}(),l=function(t,e){t.data(e).split(" ").forEach(function(i){o()("#"+i)["close"===e?"trigger":"triggerHandler"](e+".zf.trigger",[t]);});},u={Listeners:{Basic:{},Global:{}},Initializers:{}};u.Listeners.Basic={openListener:function(){l(o()(this),"open");},closeListener:function(){o()(this).data("close")?l(o()(this),"close"):o()(this).trigger("close.zf.trigger");},toggleListener:function(){o()(this).data("toggle")?l(o()(this),"toggle"):o()(this).trigger("toggle.zf.trigger");},closeableListener:function(t){t.stopPropagation();var e=o()(this).data("closable");""!==e?a.a.animateOut(o()(this),e,function(){o()(this).trigger("closed.zf");}):o()(this).fadeOut().trigger("closed.zf");},toggleFocusListener:function(){var t=o()(this).data("toggle-focus");o()("#"+t).triggerHandler("toggle.zf.trigger",[o()(this)]);}},u.Initializers.addOpenListener=function(t){t.off("click.zf.trigger",u.Listeners.Basic.openListener),t.on("click.zf.trigger","[data-open]",u.Listeners.Basic.openListener);},u.Initializers.addCloseListener=function(t){t.off("click.zf.trigger",u.Listeners.Basic.closeListener),t.on("click.zf.trigger","[data-close]",u.Listeners.Basic.closeListener);},u.Initializers.addToggleListener=function(t){t.off("click.zf.trigger",u.Listeners.Basic.toggleListener),t.on("click.zf.trigger","[data-toggle]",u.Listeners.Basic.toggleListener);},u.Initializers.addCloseableListener=function(t){t.off("close.zf.trigger",u.Listeners.Basic.closeableListener),t.on("close.zf.trigger","[data-closeable], [data-closable]",u.Listeners.Basic.closeableListener);},u.Initializers.addToggleFocusListener=function(t){t.off("focus.zf.trigger blur.zf.trigger",u.Listeners.Basic.toggleFocusListener),t.on("focus.zf.trigger blur.zf.trigger","[data-toggle-focus]",u.Listeners.Basic.toggleFocusListener);},u.Listeners.Global={resizeListener:function(t){r||t.each(function(){o()(this).triggerHandler("resizeme.zf.trigger");}),t.attr("data-events","resize");},scrollListener:function(t){r||t.each(function(){o()(this).triggerHandler("scrollme.zf.trigger");}),t.attr("data-events","scroll");},closeMeListener:function(t,e){var i=t.namespace.split(".")[0];o()("[data-"+i+"]").not('[data-yeti-box="'+e+'"]').each(function(){var t=o()(this);t.triggerHandler("close.zf.trigger",[t]);});}},u.Initializers.addClosemeListener=function(t){var e=o()("[data-yeti-box]"),i=["dropdown","tooltip","reveal"];if(t&&("string"==typeof t?i.push(t):"object"==typeof t&&"string"==typeof t[0]?i.concat(t):console.error("Plugin names must be strings")),e.length){var n=i.map(function(t){return "closeme.zf."+t;}).join(" ");o()(window).off(n).on(n,u.Listeners.Global.closeMeListener);}},u.Initializers.addResizeListener=function(t){var e=o()("[data-resize]");e.length&&n(t,"resize.zf.trigger",u.Listeners.Global.resizeListener,e);},u.Initializers.addScrollListener=function(t){var e=o()("[data-scroll]");e.length&&n(t,"scroll.zf.trigger",u.Listeners.Global.scrollListener,e);},u.Initializers.addMutationEventsListener=function(t){if(!r)return !1;var e=t.find("[data-resize], [data-scroll], [data-mutate]"),i=function(t){var e=o()(t[0].target);switch(t[0].type){case "attributes":"scroll"===e.attr("data-events")&&"data-events"===t[0].attributeName&&e.triggerHandler("scrollme.zf.trigger",[e,window.pageYOffset]),"resize"===e.attr("data-events")&&"data-events"===t[0].attributeName&&e.triggerHandler("resizeme.zf.trigger",[e]),"style"===t[0].attributeName&&(e.closest("[data-mutate]").attr("data-events","mutate"),e.closest("[data-mutate]").triggerHandler("mutateme.zf.trigger",[e.closest("[data-mutate]")]));break;case "childList":e.closest("[data-mutate]").attr("data-events","mutate"),e.closest("[data-mutate]").triggerHandler("mutateme.zf.trigger",[e.closest("[data-mutate]")]);break;default:return !1;}};if(e.length)for(var n=0;n<=e.length-1;n++){var s=new r(i);s.observe(e[n],{attributes:!0,childList:!0,characterData:!1,subtree:!0,attributeFilter:["data-events","style"]});}}
3,u.Initializers.addSimpleListeners=function(){var t=o()(document);u.Initializers.addOpenListener(t),u.Initializers.addCloseListener(t),u.Initializers.addToggleListener(t),u.Initializers.addCloseableListener(t),u.Initializers.addToggleFocusListener(t);},u.Initializers.addGlobalListeners=function(){var t=o()(document);u.Initializers.addMutationEventsListener(t),u.Initializers.addResizeListener(),u.Initializers.addScrollListener(),u.Initializers.addClosemeListener();},u.init=function(t,e){if(void 0===t.triggersInitialized){t(document);"complete"===document.readyState?(u.Initializers.addSimpleListeners(),u.Initializers.addGlobalListeners()):t(window).on("load",function(){u.Initializers.addSimpleListeners(),u.Initializers.addGlobalListeners();}),t.triggersInitialized=!0;}e&&(e.Triggers=u,e.IHearYou=u.Initializers.addGlobalListeners);};},function(t,e,i){"use strict";function n(t,e,i){function n(r){a||(a=r),o=r-a,i.apply(e),o<t?s=window.requestAnimationFrame(n,e):(window.cancelAnimationFrame(s),e.trigger("finished.zf.animate",[e]).triggerHandler("finished.zf.animate",[e]));}var s,o,a=null;if(0===t)return i.apply(e),void e.trigger("finished.zf.animate",[e]).triggerHandler("finished.zf.animate",[e]);s=window.requestAnimationFrame(n);}function s(t,e,n,s){function o(){t||e.hide(),c(),s&&s.apply(e);}function c(){e[0].style.transitionDuration=0,e.removeClass(h+" "+d+" "+n);}if(e=a()(e).eq(0),e.length){var h=t?l[0]:l[1],d=t?u[0]:u[1];c(),e.addClass(n).css("transition","none"),requestAnimationFrame(function(){e.addClass(h),t&&e.show();}),requestAnimationFrame(function(){e[0].offsetWidth,e.css("transition","").addClass(d);}),e.one(i.i(r.c)(e),o);}}i.d(e,"b",function(){return n;}),i.d(e,"a",function(){return c;});var o=i(0),a=i.n(o),r=i(1),l=["mui-enter","mui-leave"],u=["mui-enter-active","mui-leave-active"],c={animateIn:function(t,e,i){s(!0,t,e,i);},animateOut:function(t,e,i){s(!1,t,e,i);}};},function(t,e,i){"use strict";function n(t,e,i,n,o){return 0===s(t,e,i,n,o);}function s(t,e,i,n,s){var a,r,l,u,c=o(t);if(e){var h=o(e);r=h.height+h.offset.top-(c.offset.top+c.height),a=c.offset.top-h.offset.top,l=c.offset.left-h.offset.left,u=h.width+h.offset.left-(c.offset.left+c.width);}else r=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 r=s?0:Math.min(r,0),a=Math.min(a,0),l=Math.min(l,0),u=Math.min(u,0),i?l+u:n?a+r:Math.sqrt(a*a+r*r+l*l+u*u);}function o(t){if((t=t.length?t[0]:t)===window||t===document)throw new Error("I'm sorry, Dave. I'm afraid I can't do that.");var e=t.getBoundingClientRect(),i=t.parentNode.getBoundingClientRect(),n=document.body.getBoundingClientRect(),s=window.pageYOffset,o=window.pageXOffset;return {width:e.width,height:e.height,offset:{top:e.top+s,left:e.left+o},parentDims:{width:i.width,height:i.height,offset:{top:i.top+s,left:i.left+o}},windowDims:{width:n.width,height:n.height,offset:{top:s,left:o}}};}function a(t,e,n,s,o,a){switch(console.log("NOTE: GetOffsets is deprecated in favor of GetExplicitOffsets and will be removed in 6.5"),n){case "top":return i.i(l.a)()?r(t,e,"top","left",s,o,a):r(t,e,"top","right",s,o,a);case "bottom":return i.i(l.a)()?r(t,e,"bottom","left",s,o,a):r(t,e,"bottom","right",s,o,a);case "center top":return r(t,e,"top","center",s,o,a);case "center bottom":return r(t,e,"bottom","center",s,o,a);case "center left":return r(t,e,"left","center",s,o,a);case "center right":return r(t,e,"right","center",s,o,a);case "left bottom":return r(t,e,"bottom","left",s,o,a);case "right bottom":return r(t,e,"bottom","right",s,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+s)};case "reveal":return {left:($eleDims.windowDims.width-$eleDims.width)/2+o,top:$eleDims.windowDims.offset.top+s};case "reveal full":return {left:$eleDims.windowDims.offset.left,top:$eleDims.windowDims.offset.top};default:return {left:i.i(l.a)()?$anchorDims.offset.left-$eleDims.width+$anchorDims.width-o:$anchorDims.offset.left+o,top:$anchorDims.offset.top+$anchorDims.height+s};}}function r(t,e,i,n,s,a,r){var l,u,c=o(t),h=e?o(e):null;switch(i){case "top":l=h.offset.top-(c.height+s);break;case "bottom":l=h.offset.top+h.height+s;break;
3case "left":u=h.offset.left-(c.width+a);break;case "right":u=h.offset.left+h.width+a;}switch(i){case "top":case "bottom":switch(n){case "left":u=h.offset.left+a;break;case "right":u=h.offset.left-c.width+h.width-a;break;case "center":u=r?a:h.offset.left+h.width/2-c.width/2+a;}break;case "right":case "left":switch(n){case "bottom":l=h.offset.top-s+h.height-c.height;break;case "top":l=h.offset.top+s;break;case "center":l=h.offset.top+s+h.height/2-c.height/2;}}return {top:l,left:u};}i.d(e,"a",function(){return u;});var l=i(1),u={ImNotTouchingYou:n,OverlapArea:s,GetDimensions:o,GetOffsets:a,GetExplicitOffsets:r};},function(t,e,i){"use strict";function n(t,e){function i(){0===--n&&e();}var n=t.length;0===n&&e(),t.each(function(){if(this.complete&&void 0!==this.naturalWidth)i();else{var t=new Image(),e="load.zf.images error.zf.images";o()(t).one(e,function t(n){o()(this).off(e,t),i();}),t.src=o()(this).attr("src");}});}i.d(e,"a",function(){return n;});var s=i(0),o=i.n(s);},function(t,e,i){"use strict";i.d(e,"a",function(){return o;});var n=i(0),s=i.n(n),o={Feather:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"zf";t.attr("role","menubar");var i=t.find("li").attr({role:"menuitem"}),n="is-"+e+"-submenu",o=n+"-item",a="is-"+e+"-submenu-parent",r="accordion"!==e;i.each(function(){var t=s()(this),i=t.children("ul");i.length&&(t.addClass(a),i.addClass("submenu "+n).attr({"data-submenu":""}),r&&(t.attr({"aria-haspopup":!0,"aria-label":t.children("a:first").text()}),"drilldown"===e&&t.attr({"aria-expanded":!1})),i.addClass("submenu "+n).attr({"data-submenu":"",role:"menu"}),"drilldown"===e&&i.attr({"aria-hidden":!0})),t.parent("[data-submenu]").length&&t.addClass("is-submenu-item "+o);});},Burn:function(t,e){var i="is-"+e+"-submenu",n=i+"-item",s="is-"+e+"-submenu-parent";t.find(">li, .menu, .menu > li").removeClass(i+" "+n+" "+s+" is-submenu-item submenu is-active").removeAttr("data-submenu").css("display","");}};},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");}function s(){this.removeEventListener("touchmove",o),this.removeEventListener("touchend",s),g=!1;}function o(t){if(f.a.spotSwipe.preventDefault&&t.preventDefault(),g){var e,i=t.touches[0].pageX,n=(t.touches[0].pageY,l-i);h=(new Date()).getTime()-c,Math.abs(n)>=f.a.spotSwipe.moveThreshold&&h<=f.a.spotSwipe.timeThreshold&&(e=n>0?"left":"right"),e&&(t.preventDefault(),s.call(this),f()(this).trigger("swipe",e).trigger("swipe"+e));}}function a(t){1==t.touches.length&&(l=t.touches[0].pageX,u=t.touches[0].pageY,g=!0,c=(new Date()).getTime(),this.addEventListener("touchmove",o,!1),this.addEventListener("touchend",s,!1));}function r(){this.addEventListener&&this.addEventListener("touchstart",a,!1);}i.d(e,"a",function(){return m;});var l,u,c,h,d=i(0),f=i.n(d),p=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value" in n&&(n.writable=!0),Object.defineProperty(t,n.key,n);}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e;};}(),m={},g=!1,v=function(){function t(e){n(this,t),this.version="1.0.0",this.enabled="ontouchstart" in document.documentElement,this.preventDefault=!1,this.moveThreshold=75,this.timeThreshold=200,this.$=e,this._init();}return p(t,[{key:"_init",value:function(){var t=this.$;t.event.special.swipe={setup:r},t.each(["left","up","down","right"],function(){t.event.special["swipe"+this]={setup:function(){t(this).on("swipe",t.noop);}};});}}]),t;}();m.setupSpotSwipe=function(t){t.spotSwipe=new v(t);},m.setupTouchHandler=function(t){t.fn.addTouch=function(){this.each(function(i,n){t(n).bind("touchstart touchmove touchend touchcancel",function(){e(event);});});var e=function(t){var e,i=t.changedTouches,n=i[0],s={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup"},o=s[t.type];"MouseEvent" in window&&"function"==typeof window.MouseEvent?e=new window.MouseEvent(o,{bubbles:!0,cancelable:!0,screenX:n.screenX,screenY:n.screenY,clientX:n.clientX,clientY:n.clientY}):(e=document.createEvent("MouseEvent"),e.initMouseEvent(o,!0,!0,window,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null)),n.target.dispatchEvent(e);};};},m.init=function(t){void 0===t.spotSwipe&&(m.setupSpotSwipe(t),m.setupTouchHandler(t));};}
3,function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !e||"object"!=typeof e&&"function"!=typeof e?t:e;}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e);}i.d(e,"a",function(){return d;});var a=i(0),r=i.n(a),l=i(3),u=i(1),c=i(2),h=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value" in n&&(n.writable=!0),Object.defineProperty(t,n.key,n);}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e;};}(),d=function(t){function e(){return n(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments));}return o(e,t),h(e,[{key:"_setup",value:function(t,i){this.$element=t,this.options=r.a.extend({},e.defaults,this.$element.data(),i),this.className="Accordion",this._init(),l.a.register("Accordion",{ENTER:"toggle",SPACE:"toggle",ARROW_DOWN:"next",ARROW_UP:"previous"});}},{key:"_init",value:function(){var t=this;this.$element.attr("role","tablist"),this.$tabs=this.$element.children("[data-accordion-item]"),this.$tabs.each(function(t,e){var n=r()(e),s=n.children("[data-tab-content]"),o=s[0].id||i.i(u.b)(6,"accordion"),a=e.id||o+"-label";n.find("a:first").attr({"aria-controls":o,role:"tab",id:a,"aria-expanded":!1,"aria-selected":!1}),s.attr({role:"tabpanel","aria-labelledby":a,"aria-hidden":!0,id:o});});var e=this.$element.find(".is-active").children("[data-tab-content]");this.firstTimeInit=!0,e.length&&(this.down(e,this.firstTimeInit),this.firstTimeInit=!1),this._checkDeepLink=function(){var e=window.location.hash;if(e.length){var i=t.$element.find('[href$="'+e+'"]'),n=r()(e);if(i.length&&n){if(i.parent("[data-accordion-item]").hasClass("is-active")||(t.down(n,t.firstTimeInit),t.firstTimeInit=!1),t.options.deepLinkSmudge){var s=t;r()(window).load(function(){var t=s.$element.offset();r()("html, body").animate({scrollTop:t.top},s.options.deepLinkSmudgeDelay);});}t.$element.trigger("deeplink.zf.accordion",[i,n]);}}},this.options.deepLink&&this._checkDeepLink(),this._events();}},{key:"_events",value:function(){var t=this;this.$tabs.each(function(){var e=r()(this),i=e.children("[data-tab-content]");i.length&&e.children("a").off("click.zf.accordion keydown.zf.accordion").on("click.zf.accordion",function(e){e.preventDefault(),t.toggle(i);}).on("keydown.zf.accordion",function(n){l.a.handleKey(n,"Accordion",{toggle:function(){t.toggle(i);},next:function(){var i=e.next().find("a").focus();t.options.multiExpand||i.trigger("click.zf.accordion");},previous:function(){var i=e.prev().find("a").focus();t.options.multiExpand||i.trigger("click.zf.accordion");},handled:function(){n.preventDefault(),n.stopPropagation();}});});}),this.options.deepLink&&r()(window).on("popstate",this._checkDeepLink);}},{key:"toggle",value:function(t){if(t.closest("[data-accordion]").is("[disabled]"))return void console.info("Cannot toggle an accordion that is disabled.");if(t.parent().hasClass("is-active")?this.up(t):this.down(t),this.options.deepLink){var e=t.prev("a").attr("href");this.options.updateHistory?history.pushState({},"",e):history.replaceState({},"",e);}}},{key:"down",value:function(t,e){var i=this;if(t.closest("[data-accordion]").is("[disabled]")&&!e)return void console.info("Cannot call down on an accordion that is disabled.");if(t.attr("aria-hidden",!1).parent("[data-tab-content]").addBack().parent().addClass("is-active"),!this.options.multiExpand&&!e){var n=this.$element.children(".is-active").children("[data-tab-content]");n.length&&this.up(n.not(t));}t.slideDown(this.options.slideSpeed,function(){i.$element.trigger("down.zf.accordion",[t]);}),r()("#"+t.attr("aria-labelledby")).attr({"aria-expanded":!0,"aria-selected":!0});}},{key:"up",value:function(t){if(t.closest("[data-accordion]").is("[disabled]"))return void console.info("Cannot call up on an accordion that is disabled.");var e=t.parent().siblings(),i=this;(this.options.allowAllClosed||e.hasClass("is-active"))&&t.parent().hasClass("is-active")&&(t.slideUp(i.options.slideSpeed,function(){i.$element.trigger("up.zf.accordion",[t]);}),t.attr("aria-hidden",!0).parent().removeClass("is-active"),r()("#"+t.attr("aria-labelledby")).attr({"aria-expanded":!1,"aria-selected":!1}));}},{key:"_destroy",value:function(){this.$element.find("[data-tab-content]").stop(!0).slideUp(0).css("display",""),this.$element.find("a").off(".zf.accordion"),this.options.deepLink&&r()(window).off("popstate",this._checkDeepLink);}}]),e;}(c.a);d.defaults={slideSpeed:250,multiExpand:!1,allowAllClosed:!1,deepLink:!1,deepLinkSmudge:!1,deepLinkSmudgeDelay:300,updateHistory:!1};}
3,function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !e||"object"!=typeof e&&"function"!=typeof e?t:e;}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e);}i.d(e,"a",function(){return f;});var a=i(0),r=i.n(a),l=i(3),u=i(9),c=i(1),h=i(2),d=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value" in n&&(n.writable=!0),Object.defineProperty(t,n.key,n);}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e;};}(),f=function(t){function e(){return n(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments));}return o(e,t),d(e,[{key:"_setup",value:function(t,i){this.$element=t,this.options=r.a.extend({},e.defaults,this.$element.data(),i),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 t=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 e=this.id||i.i(c.b)(6,"acc-menu-link"),n=r()(this),s=n.children("[data-submenu]"),o=s[0].id||i.i(c.b)(6,"acc-menu"),a=s.hasClass("is-active");t.options.submenuToggle?(n.addClass("has-submenu-toggle"),n.children("a").after('<button id="'+e+'" class="submenu-toggle" aria-controls="'+o+'" aria-expanded="'+a+'" title="'+t.options.submenuToggleText+'"><span class="submenu-toggle-text">'+t.options.submenuToggleText+"</span></button>")):n.attr({"aria-controls":o,"aria-expanded":a,id:e}),s.attr({"aria-labelledby":e,"aria-hidden":!a,role:"group",id:o});}),this.$element.find("li").attr({role:"treeitem"});var e=this.$element.find(".is-active");if(e.length){var t=this;e.each(function(){t.down(r()(this));});}this._events();}},{key:"_events",value:function(){var t=this;this.$element.find("li").each(function(){var e=r()(this).children("[data-submenu]");e.length&&(t.options.submenuToggle?r()(this).children(".submenu-toggle").off("click.zf.accordionMenu").on("click.zf.accordionMenu",function(i){t.toggle(e);}):r()(this).children("a").off("click.zf.accordionMenu").on("click.zf.accordionMenu",function(i){i.preventDefault(),t.toggle(e);}));}).on("keydown.zf.accordionmenu",function(e){var i,n,s=r()(this),o=s.parent("ul").children("li"),a=s.children("[data-submenu]");o.each(function(t){if(r()(this).is(s))return i=o.eq(Math.max(0,t-1)).find("a").first(),n=o.eq(Math.min(t+1,o.length-1)).find("a").first(),r()(this).children("[data-submenu]:visible").length&&(n=s.find("li:first-child").find("a").first()),r()(this).is(":first-child")?i=s.parents("li").first().find("a").first():i.parents("li").first().children("[data-submenu]:visible").length&&(i=i.parents("li").find("li:last-child").find("a").first()),void (r()(this).is(":last-child")&&(n=s.parents("li").first().next("li").find("a").first()));}),l.a.handleKey(e,"AccordionMenu",{open:function(){a.is(":hidden")&&(t.down(a),a.find("li").first().find("a").first().focus());},close:function(){a.length&&!a.is(":hidden")?t.up(a):s.parent("[data-submenu]").length&&(t.up(s.parent("[data-submenu]")),s.parents("li").first().find("a").first().focus());},up:function(){return i.focus(),!0;},down:function(){return n.focus(),!0;},toggle:function(){return !t.options.submenuToggle&&(s.children("[data-submenu]").length?(t.toggle(s.children("[data-submenu]")),!0):void 0);},closeAll:function(){t.hideAll();},handled:function(t){t&&e.preventDefault(),e.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(t){t.is(":animated")||(t.is(":hidden")?this.down(t):this.up(t));}},{key:"down",value:function(t){var e=this;
3this.options.multiOpen||this.up(this.$element.find(".is-active").not(t.parentsUntil(this.$element).add(t))),t.addClass("is-active").attr({"aria-hidden":!1}),this.options.submenuToggle?t.prev(".submenu-toggle").attr({"aria-expanded":!0}):t.parent(".is-accordion-submenu-parent").attr({"aria-expanded":!0}),t.slideDown(e.options.slideSpeed,function(){e.$element.trigger("down.zf.accordionMenu",[t]);});}},{key:"up",value:function(t){var e=this;t.slideUp(e.options.slideSpeed,function(){e.$element.trigger("up.zf.accordionMenu",[t]);});var i=t.find("[data-submenu]").slideUp(0).addBack().attr("aria-hidden",!0);this.options.submenuToggle?i.prev(".submenu-toggle").attr("aria-expanded",!1):i.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");}}]),e;}(h.a);f.defaults={slideSpeed:250,submenuToggle:!1,submenuToggleText:"Toggle menu",multiOpen:!0};},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !e||"object"!=typeof e&&"function"!=typeof e?t:e;}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e);}i.d(e,"a",function(){return p;});var a=i(0),r=i.n(a),l=i(3),u=i(9),c=i(1),h=i(7),d=i(2),f=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value" in n&&(n.writable=!0),Object.defineProperty(t,n.key,n);}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e;};}(),p=function(t){function e(){return n(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments));}return o(e,t),f(e,[{key:"_setup",value:function(t,i){this.$element=t,this.options=r.a.extend({},e.defaults,this.$element.data(),i),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")||i.i(c.b)(6,"drilldown")),this._prepareMenu(),this._registerEvents(),this._keyboardEvents();}},{key:"_prepareMenu",value:function(){var t=this;this.$submenuAnchors.each(function(){var e=r()(this),i=e.parent();t.options.parentLink&&e.clone().prependTo(i.children("[data-submenu]")).wrap('<li class="is-submenu-parent-item is-submenu-item is-drilldown-submenu-item" role="menuitem"></li>'),e.data("savedHref",e.attr("href")).removeAttr("href").attr("tabindex",0),e.children("[data-submenu]").attr({"aria-hidden":!0,tabindex:0,role:"group"}),t._events(e);}),this.$submenus.each(function(){var e=r()(this);if(!e.find(".js-drilldown-back").length)switch(t.options.backButtonPosition){case "bottom":e.append(t.options.backButton);break;case "top":e.prepend(t.options.backButton);break;default:console.error("Unsupported backButtonPosition value '"+t.options.backButtonPosition+"'");}t._back(e);}),this.$submenus.addClass("invisible"),this.options.autoHeight||this.$submenus.addClass("drilldown-submenu-cover-previous"),this.$element.parent().hasClass("is-drilldown")||(this.$wrapper=r()(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(t){var e=this;t.off("click.zf.drilldown").on("click.zf.drilldown",function(i){if(r(
3)(i.target).parentsUntil("ul","li").hasClass("is-drilldown-submenu-parent")&&(i.stopImmediatePropagation(),i.preventDefault()),e._show(t.parent("li")),e.options.closeOnClick){var n=r()("body");n.off(".zf.drilldown").on("click.zf.drilldown",function(t){t.target===e.$element[0]||r.a.contains(e.$element[0],t.target)||(t.preventDefault(),e._hideAll(),n.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 t=this,e=""!=t.options.scrollTopElement?r()(t.options.scrollTopElement):t.$element,i=parseInt(e.offset().top+t.options.scrollTopOffset,10);r()("html, body").stop(!0).animate({scrollTop:i},t.options.animationDuration,t.options.animationEasing,function(){this===r()("html")[0]&&t.$element.trigger("scrollme.zf.drilldown");});}},{key:"_keyboardEvents",value:function(){var t=this;this.$menuItems.add(this.$element.find(".js-drilldown-back > a, .is-submenu-parent-item > a")).on("keydown.zf.drilldown",function(e){var n,s,o=r()(this),a=o.parent("li").parent("ul").children("li").children("a");a.each(function(t){if(r()(this).is(o))return n=a.eq(Math.max(0,t-1)),void (s=a.eq(Math.min(t+1,a.length-1)));}),l.a.handleKey(e,"Drilldown",{next:function(){if(o.is(t.$submenuAnchors))return t._show(o.parent("li")),o.parent("li").one(i.i(c.c)(o),function(){o.parent("li").find("ul li a").filter(t.$menuItems).first().focus();}),!0;},previous:function(){return t._hide(o.parent("li").parent("ul")),o.parent("li").parent("ul").one(i.i(c.c)(o),function(){setTimeout(function(){o.parent("li").parent("ul").parent("li").children("a").first().focus();},1);}),!0;},up:function(){return n.focus(),!o.is(t.$element.find("> li:first-child > a"));},down:function(){return s.focus(),!o.is(t.$element.find("> li:last-child > a"));},close:function(){o.is(t.$element.find("> li > a"))||(t._hide(o.parent().parent()),o.parent().parent().siblings("a").focus());},open:function(){return o.is(t.$menuItems)?o.is(t.$submenuAnchors)?(t._show(o.parent("li")),o.parent("li").one(i.i(c.c)(o),function(){o.parent("li").find("ul li a").filter(t.$menuItems).first().focus();}),!0):void 0:(t._hide(o.parent("li").parent("ul")),o.parent("li").parent("ul").one(i.i(c.c)(o),function(){setTimeout(function(){o.parent("li").parent("ul").parent("li").children("a").first().focus();},1);}),!0);},handled:function(t){t&&e.preventDefault(),e.stopImmediatePropagation();}});});}},{key:"_hideAll",value:function(){var t=this.$element.find(".is-drilldown-submenu.is-active").addClass("is-closing");this.options.autoHeight&&this.$wrapper.css({height:t.parent().closest("ul").data("calcHeight")}),t.one(i.i(c.c)(t),function(e){t.removeClass("is-active is-closing");}),this.$element.trigger("closed.zf.drilldown");}},{key:"_back",value:function(t){var e=this;t.off("click.zf.drilldown"),t.children(".js-drilldown-back").on("click.zf.drilldown",function(i){i.stopImmediatePropagation(),e._hide(t);var n=t.parent("li").parent("ul").parent("li");n.length&&e._show(n);});}},{key:"_menuLinkEvents",value:function(){var t=this;this.$menuItems.not(".is-drilldown-submenu-parent").off("click.zf.drilldown").on("click.zf.drilldown",function(e){setTimeout(function(){t._hideAll();},0);});}},{key:"_show",value:function(t){this.options.autoHeight&&this.$wrapper.css({height:t.children("[data-submenu]").data("calcHeight")}),t.attr("aria-expanded",!0),t.children("[data-submenu]").addClass("is-active").removeClass("invisible").attr("aria-hidden",!1),this.$element.trigger("open.zf.drilldown",[t]);}},{key:"_hide",value:function(t){this.options.autoHeight&&this.$wrapper.css({height:t.parent().closest("ul").data("calcHeight")});t.parent("li").attr("aria-expanded",!1),t.attr("aria-hidden",!0).addClass("is-closing"),t.addClass("is-closing").one(i.i(c.c)(t),function(){t.removeClass("is-active is-closing"),t.blur().addClass("invisible");}),t.trigger("hide.zf.drilldown",[t]);}},{key:"_getMaxDims",value:function(){var t=0,e={},i=this;return this.$submenus.add(this.$element).each(function(){var n=(r()(this).children("li").length,h.a.GetDimensions(this).height);t=n>t?n:t,i.options.autoHeight&&(r()(this).data("calcHeight",n),r()(this).hasClass("is-drilldown-submenu")||(e.height=n));}),this.options.autoHeight||(e["min-height"]=t+"px"),e["max-width"]=this.$element[0].getBoundingClientRect().width+"px",e;}},{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(){r()(this).off(".zf.drilldown");}),this.$submenus.removeClass("drilldown-submenu-cover-previous invisible"),this.$element.find("a").each(function(){var t=r()(this);t.removeAttr("tabindex"),t.data("savedHref")&&t.attr("href",t.data("savedHref")).removeData("savedHref");});}}]),e;}(d.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"};}
3,function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !e||"object"!=typeof e&&"function"!=typeof e?t:e;}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e);}i.d(e,"a",function(){return p;});var a=i(0),r=i.n(a),l=i(3),u=i(9),c=i(7),h=i(1),d=i(2),f=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value" in n&&(n.writable=!0),Object.defineProperty(t,n.key,n);}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e;};}(),p=function(t){function e(){return n(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments));}return o(e,t),f(e,[{key:"_setup",value:function(t,i){this.$element=t,this.options=r.a.extend({},e.defaults,this.$element.data(),i),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 t=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)||i.i(h.a)()||this.$element.parents(".top-bar-right").is("*")?(this.options.alignment="right",t.addClass("opens-left")):(this.options.alignment="left",t.addClass("opens-right")):"right"===this.options.alignment?t.addClass("opens-left"):t.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")||i.i(h.a)()&&!this.$element.hasClass("align-left");}},{key:"_events",value:function(){var t=this,e="ontouchstart" in window||void 0!==window.ontouchstart,i="is-dropdown-submenu-parent",n=function(n){var s=r()(n.target).parentsUntil("ul","."+i),o=s.hasClass(i),a="true"===s.attr("data-is-click"),l=s.children(".is-dropdown-submenu");if(o)if(a){if(!t.options.closeOnClick||!t.options.clickOpen&&!e||t.options.forceFollow&&e)return;n.stopImmediatePropagation(),n.preventDefault(),t._hide(s);}else n.preventDefault(),n.stopImmediatePropagation(),t._show(l),s.add(s.parentsUntil(t.$element,"."+i)).attr("data-is-click",!0);};(this.options.clickOpen||e)&&this.$menuItems.on("click.zf.dropdownmenu touchstart.zf.dropdownmenu",n),t.options.closeOnClickInside&&this.$menuItems.on("click.zf.dropdownmenu",function(e){r()(this).hasClass(i)||t._hide();}),this.options.disableHover||this.$menuItems.on("mouseenter.zf.dropdownmenu",function(e){var n=r()(this);n.hasClass(i)&&(clearTimeout(n.data("_delay")),n.data("_delay",setTimeout(function(){t._show(n.children(".is-dropdown-submenu"));},t.options.hoverDelay)));}).on("mouseleave.zf.dropdownmenu",function(e){var n=r()(this);if(n.hasClass(i)&&t.options.autoclose){if("true"===n.attr("data-is-click")&&t.options.clickOpen)return !1;clearTimeout(n.data("_delay")),n.data("_delay",setTimeout(function(){t._hide(n);},t.options.closingTime));}}),this.$menuItems.on("keydown.zf.dropdownmenu",function(e){var i,n,s=r()(e.target).parentsUntil("ul",'[role="menuitem"]'),o=t.$tabs.index(s)>-1,a=o?t.$tabs:s.siblings("li").add(s);a.each(function(t){if(r()(this).is(s))return i=a.eq(t-1),void (n=a.eq(t+1));});var u=function(){n.children("a:first").focus(),e.preventDefault();},c=function(){i.children("a:first").focus(),e.preventDefault();},h=function(){var i=s.children("ul.is-dropdown-submenu");i.length&&(t._show(i),s.find("li > a:first").focus(),e.preventDefault());},d=function(){var i=s.parent("ul").parent("li");i.children("a:first").focus(),t._hide(i),e.preventDefault();},f={open:h,close:function(){t._hide(t.$element),t.$menuItems.eq(0).children("a").focus(),e.preventDefault();},handled:function(){e.stopImmediatePropagation();}};o?t._isVertical()?t._isRtl()?r.a.extend(f,{down:u,up:c,next:d,previous:h}):r.a.extend(f,{down:u,up:c,next:h,previous:d}):t._isRtl()?r.a.extend(f,{next:c,previous:u,down:h,up:d}):r.a.extend(f,{next:u,previous:c,down:h,up:d}):t._isRtl()?r.a.extend(f,{next:d,previous:h,down:u,up:c}):r.a.extend(f,{next:h,previous:d,down:u,up:c}),l.a.handleKey(e,"DropdownMenu",f);});}},{key:"_addBodyHandler",value:function(){var t=r()(document.body),e=this;t.off("mouseup.zf.dropdownmenu touchend.zf.dropdownmenu").on("mouseup.zf.dropdownmenu touchend.zf.dropdownmenu",function(i){e.$element.find(i.target).length||(e._hide(),t.off("mouseup.zf.dropdownmenu touchend.zf.dropdownmenu"));});}},{key:"_show",value:function(t){var e=this.$tabs.index(this.$tabs.filter(function(e,i){return r()(i).find(t).length>0;})),i=t.parent("li.is-dropdown-submenu-parent").siblings("li.is-dropdown-submenu-parent");this._hide(i,e),t.css("visibility","hidden").addClass("js-dropdown-active").parent("li.is-dropdown-submenu-parent").addClass("is-active");var n=c.a.ImNotTouchingYou(t,null,!0);if(!n){var s="left"===this.options.alignment?"-right":"-left",o=t.parent(".is-dropdown-submenu-parent");o.removeClass("opens"+s).addClass("opens-"+this.options.alignment),n=c.a.ImNotTouchingYou(t,null,!0),n||o.removeClass("opens-"+this.options.alignment).addClass("opens-inner"),this.changed=!0;}t.css("visibility",""),this.options.closeOnClick&&this._addBodyHandler(),this.$element.trigger("show.zf.dropdownmenu",[t]);}},{key:"_hide",value:function(t,e){var i;if(i=t&&t.length?t:void 0!==e?this.$tabs.not(function(t,i){return t===e;}):this.$element,i.hasClass("is-active")||i.find(".is-active").length>0){if(i.find("li.is-active").add(i).attr({"data-is-click":!1}).removeClass("is-active"),i.find("ul.js-dropdown-active").removeClass("js-dropdown-active"),this.changed||i.find("opens-inner").length){var n="left"===this.options.alignment?"right":"left";i.find("li.is-dropdown-submenu-parent").add(i).removeClass("opens-inner opens-"+this.options.alignment).addClass("opens-"+n),this.changed=!1;}this.$element.trigger("hide.zf.dropdownmenu",[i]);}}},{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"),r()(document.body).off(".zf.dropdownmenu"),u.a.Burn(this.$element,"dropdown");}}]),e;}(d.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};}
3,function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !e||"object"!=typeof e&&"function"!=typeof e?t:e;}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e);}function a(t,e){var i=e.indexOf(t);return i===e.length-1?e[0]:e[i+1];}i.d(e,"a",function(){return m;});var r=i(7),l=i(2),u=i(1),c=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value" in n&&(n.writable=!0),Object.defineProperty(t,n.key,n);}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e;};}(),h=["left","right","top","bottom"],d=["top","bottom","center"],f=["left","right","center"],p={left:d,right:d,top:f,bottom:f},m=function(t){function e(){return n(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments));}return o(e,t),c(e,[{key:"_init",value:function(){this.triedPositions={},this.position="auto"===this.options.position?this._getDefaultPosition():this.options.position,this.alignment="auto"===this.options.alignment?this._getDefaultAlignment():this.options.alignment;}},{key:"_getDefaultPosition",value:function(){return "bottom";}},{key:"_getDefaultAlignment",value:function(){switch(this.position){case "bottom":case "top":return i.i(u.a)()?"right":"left";case "left":case "right":return "bottom";}}},{key:"_reposition",value:function(){this._alignmentsExhausted(this.position)?(this.position=a(this.position,h),this.alignment=p[this.position][0]):this._realign();}},{key:"_realign",value:function(){this._addTriedPosition(this.position,this.alignment),this.alignment=a(this.alignment,p[this.position]);}},{key:"_addTriedPosition",value:function(t,e){this.triedPositions[t]=this.triedPositions[t]||[],this.triedPositions[t].push(e);}},{key:"_positionsExhausted",value:function(){for(var t=!0,e=0;e<h.length;e++)t=t&&this._alignmentsExhausted(h[e]);return t;}},{key:"_alignmentsExhausted",value:function(t){return this.triedPositions[t]&&this.triedPositions[t].length==p[t].length;}},{key:"_getVOffset",value:function(){return this.options.vOffset;}},{key:"_getHOffset",value:function(){return this.options.hOffset;}},{key:"_setPosition",value:function(t,e,i){if("false"===t.attr("aria-expanded"))return !1;r.a.GetDimensions(e),r.a.GetDimensions(t);if(e.offset(r.a.GetExplicitOffsets(e,t,this.position,this.alignment,this._getVOffset(),this._getHOffset())),!this.options.allowOverlap){for(var n=1e8,s={position:this.position,alignment:this.alignment};!this._positionsExhausted();){var o=r.a.OverlapArea(e,i,!1,!1,this.options.allowBottomOverlap);if(0===o)return;o<n&&(n=o,s={position:this.position,alignment:this.alignment}),this._reposition(),e.offset(r.a.GetExplicitOffsets(e,t,this.position,this.alignment,this._getVOffset(),this._getHOffset()));}this.position=s.position,this.alignment=s.alignment,e.offset(r.a.GetExplicitOffsets(e,t,this.position,this.alignment,this._getVOffset(),this._getHOffset()));}}}]),e;}(l.a);m.defaults={position:"auto",alignment:"auto",allowOverlap:!1,allowBottomOverlap:!0,vOffset:0,hOffset:0};},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !e||"object"!=typeof e&&"function"!=typeof e?t:e;}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e);}i.d(e,"a",function(){return h;});var a=i(0),r=i.n(a),l=i(1),u=i(2),c=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];
3n.enumerable=n.enumerable||!1,n.configurable=!0,"value" in n&&(n.writable=!0),Object.defineProperty(t,n.key,n);}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e;};}(),h=function(t){function e(){return n(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments));}return o(e,t),c(e,[{key:"_setup",value:function(t,i){this.$element=t,this.options=r.a.extend({},e.defaults,this.$element.data(),i),this.className="SmoothScroll",this._init();}},{key:"_init",value:function(){var t=this.$element[0].id||i.i(l.b)(6,"smooth-scroll");this.$element.attr({id:t}),this._events();}},{key:"_events",value:function(){var t=this,i=function(i){if(!r()(this).is('a[href^="#"]'))return !1;var n=this.getAttribute("href");t._inTransition=!0,e.scrollToLoc(n,t.options,function(){t._inTransition=!1;}),i.preventDefault();};this.$element.on("click.zf.smoothScroll",i),this.$element.on("click.zf.smoothScroll",'a[href^="#"]',i);}}],[{key:"scrollToLoc",value:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.defaults,n=arguments[2];if(!r()(t).length)return !1;var s=Math.round(r()(t).offset().top-i.threshold/2-i.offset);r()("html, body").stop(!0).animate({scrollTop:s},i.animationDuration,i.animationEasing,function(){n&&"function"==typeof n&&n();});}}]),e;}(u.a);h.defaults={animationDuration:500,animationEasing:"linear",threshold:50,offset:0};},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !e||"object"!=typeof e&&"function"!=typeof e?t:e;}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e);}i.d(e,"a",function(){return d;});var a=i(0),r=i.n(a),l=i(3),u=i(8),c=i(2),h=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value" in n&&(n.writable=!0),Object.defineProperty(t,n.key,n);}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e;};}(),d=function(t){function e(){return n(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments));}return o(e,t),h(e,[{key:"_setup",value:function(t,i){this.$element=t,this.options=r.a.extend({},e.defaults,this.$element.data(),i),this.className="Tabs",this._init(),l.a.register("Tabs",{ENTER:"open",SPACE:"open",ARROW_RIGHT:"next",ARROW_UP:"previous",ARROW_DOWN:"next",ARROW_LEFT:"previous"});}},{key:"_init",value:function(){var t=this,e=this;if(this.$element.attr({role:"tablist"}),this.$tabTitles=this.$element.find("."+this.options.linkClass),this.$tabContent=r()('[data-tabs-content="'+this.$element[0].id+'"]'),this.$tabTitles.each(function(){var t=r()(this),i=t.find("a"),n=t.hasClass(""+e.options.linkActiveClass),s=i.attr("data-tabs-target")||i[0].hash.slice(1),o=i[0].id?i[0].id:s+"-label",a=r()("#"+s);t.attr({role:"presentation"}),i.attr({role:"tab","aria-controls":s,"aria-selected":n,id:o,tabindex:n?"0":"-1"}),a.attr({role:"tabpanel","aria-labelledby":o}),n||a.attr("aria-hidden","true"),n&&e.options.autoFocus&&r()(window).load(function(){r()("html, body").animate({scrollTop:t.offset().top},e.options.deepLinkSmudgeDelay,function(){i.focus();});});}),this.options.matchHeight){var n=this.$tabContent.find("img");n.length?i.i(u.a)(n,this._setHeight.bind(this)):this._setHeight();}this._checkDeepLink=function(){var e=window.location.hash;if(e.length){var i=t.$element.find('[href$="'+e+'"]');if(i.length){if(t.selectTab(r()(e),!0),t.options.deepLinkSmudge){var n=t.$element.offset();r()("html, body").animate({scrollTop:n.top},t.options.deepLinkSmudgeDelay);}t.$element.trigger("deeplink.zf.tabs",[i,r()(e)]);}}},this.options.deepLink&&this._checkDeepLink(),this._events();}},{key:"_events",value:function(){this._addKeyHandler(),this._addClickHandler(),this._setHeightMqHandler=null,this.options.matchHeight&&(this._setHeightMqHandler=this._setHeight.bind(this),r()(window).on("changed.zf.mediaquery",this._setHeightMqHandler)),this.options.deepLink&&r()(window).on("popstate",this._checkDeepLink);}},{key:"_addClickHandler",value:function(){var t=this;this.$element.off("click.zf.tabs").on("click.zf.tabs","."+this.options.linkClass,function(e){e.preventDefault(),e.stopPropagation(),t._handleTabChange(r()(this));});}},{key:"_addKeyHandler",value:function(){var t=this;this.$tabTitles.off("keydown.zf.tabs").on("keydown.zf.tabs",function(e){if(9!==e.which){var i,n,s=r()(this),o=s.parent("ul").children("li");o.each(function(e){if(r()(this).is(s))return void (t.options.wrapOnKeys?(i=0===e?o.last():o.eq(e-1),n=e===o.length-1?o.first():o.eq(e+1)):(i=o.eq(Math.max(0,e-1)),n=o.eq(Math.min(e+1,o.length-1))));}),l.a.handleKey(e,"Tabs",{open:function(){s.find('[role="tab"]').focus(),t._handleTabChange(s);},previous:function(){i.find('[role="tab"]').focus(),t._handleTabChange(i);},next:function(){n.find('[role="tab"]').focus(),t._handleTabChange(n);},handled:function(){e.stopPropagation(),e.preventDefault();}});}});}},{key:"_handleTabChange",value:function(t,e){if(t.hasClass(""+this.options.linkActiveClass))return void (this.options.activeCollapse&&(this._collapseTab(t),this.$element.trigger("collapse.zf.tabs",[t])));var i=this.$element.find("."+this.options.linkClass+"."+this.options.linkActiveClass),n=t.find('[role="tab"]'),s=n.attr("data-tabs-target")||n[0].hash.slice(1),o=this.$tabContent.find("#"+s);if(this._collapseTab(i),this._openTab(t),this.options.deepLink&&!e){var a=t.find("a").attr("href");this.options.updateHistory?history.pushState({},"",a):history.replaceState({},"",a);}this.$element.trigger("change.zf.tabs",[t,o]),o.find("[data-mutate]").trigger("mutateme.zf.trigger");}},{key:"_openTab",value:function(t){var e=t.find('[role="tab"]'),i=e.attr("data-tabs-target")||e[0].hash.slice(1),n=this.$tabContent.find("#"+i);t.addClass(""+this.options.linkActiveClass),e.attr({"aria-selected":"true",tabindex:"0"}),n.addClass(""+this.options.panelActiveClass).removeAttr("aria-hidden");}},{key:"_collapseTab",value:function(t){var e=t.removeClass(""+this.options.linkActiveClass).find('[role="tab"]').attr({"aria-selected":"false",tabindex:-1});r()("#"+e.attr("aria-controls")).removeClass(""+this.options.panelActiveClass).attr({"aria-hidden":"true"});}},{key:"selectTab",value:function(t,e){var i;i="object"==typeof t?t[0].id:t,i.indexOf("#")<0&&(i="#"+i);var n=this.$tabTitles.find('[href$="'+i+'"]').parent("."+this.options.linkClass);this._handleTabChange(n,e);}},{key:"_setHeight",value:function(){var t=0,e=this;this.$tabContent.find("."+this.options.panelClass).css("height","").each(function(){var i=r()(this),n=i.hasClass(""+e.options.panelActiveClass);n||i.css({visibility:"hidden",display:"block"});var s=this.getBoundingClientRect().height;n||i.css({visibility:"",display:""}),t=s>t?s:t;}).css("height",t+"px");}},{key:"_destroy",value:function(){this.$element.find("."+this.options.linkClass).off(".zf.tabs").hide().end().find("."+this.options.panelClass).hide(),this.options.matchHeight&&null!=this._setHeightMqHandler&&r()(window).off("changed.zf.mediaquery",this._setHeightMqHandler),this.options.deepLink&&r()(window).off("popstate",this._checkDeepLink);}}]),e;}(c.a);d.defaults={deepLink:!1,deepLinkSmudge:!1,deepLinkSmudgeDelay:300,updateHistory:!1,autoFocus:!1,wrapOnKeys:!0,matchHeight:!1,activeCollapse:!1,linkClass:"tabs-title",linkActiveClass:"is-active",panelClass:"tabs-panel",panelActiveClass:"is-active"};}
3,function(t,e,i){"use strict";function n(t,e,i){var n,s,o=this,a=e.duration,r=Object.keys(t.data())[0]||"timer",l=-1;this.isPaused=!1,this.restart=function(){l=-1,clearTimeout(s),this.start();},this.start=function(){this.isPaused=!1,clearTimeout(s),l=l<=0?a:l,t.data("paused",!1),n=Date.now(),s=setTimeout(function(){e.infinite&&o.restart(),i&&"function"==typeof i&&i();},l),t.trigger("timerstart.zf."+r);},this.pause=function(){this.isPaused=!0,clearTimeout(s),t.data("paused",!0);var e=Date.now();l-=e-n,t.trigger("timerpaused.zf."+r);};}i.d(e,"a",function(){return n;});var s=i(0);i.n(s);},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),s=i.n(n),o=i(21),a=i(1),r=i(7),l=i(8),u=i(3),c=i(4),h=i(6),d=i(9),f=i(18),p=i(10),m=i(5),g=i(20),v=i(11),b=i(12),y=i(13),w=i(22),_=i(14),$=i(23),k=i(24),C=i(25),z=i(26),O=i(27),T=i(29),E=i(30),P=i(31),A=i(32),F=i(16),x=i(33),D=i(17),S=i(34),R=i(35),H=i(28);o.a.addToJquery(s.a),o.a.rtl=a.a,o.a.GetYoDigits=a.b,o.a.transitionend=a.c,o.a.Box=r.a,o.a.onImagesLoaded=l.a,o.a.Keyboard=u.a,o.a.MediaQuery=c.a,o.a.Motion=h.a,o.a.Move=h.b,o.a.Nest=d.a,o.a.Timer=f.a,p.a.init(s.a),m.a.init(s.a,o.a),o.a.plugin(g.a,"Abide"),o.a.plugin(v.a,"Accordion"),o.a.plugin(b.a,"AccordionMenu"),o.a.plugin(y.a,"Drilldown"),o.a.plugin(w.a,"Dropdown"),o.a.plugin(_.a,"DropdownMenu"),o.a.plugin($.a,"Equalizer"),o.a.plugin(k.a,"Interchange"),o.a.plugin(C.a,"Magellan"),o.a.plugin(z.a,"OffCanvas"),o.a.plugin(O.a,"Orbit"),o.a.plugin(T.a,"ResponsiveMenu"),o.a.plugin(E.a,"ResponsiveToggle"),o.a.plugin(P.a,"Reveal"),o.a.plugin(A.a,"Slider"),o.a.plugin(F.a,"SmoothScroll"),o.a.plugin(x.a,"Sticky"),o.a.plugin(D.a,"Tabs"),o.a.plugin(S.a,"Toggler"),o.a.plugin(R.a,"Tooltip"),o.a.plugin(H.a,"ResponsiveAccordionTabs");},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !e||"object"!=typeof e&&"function"!=typeof e?t:e;}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e);}i.d(e,"a",function(){return c;});var a=i(0),r=i.n(a),l=i(2),u=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value" in n&&(n.writable=!0),Object.defineProperty(t,n.key,n);}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e;};}(),c=function(t){function e(){return n(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments));}return o(e,t),u(e,[{key:"_setup",value:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.$element=t,this.options=r.a.extend(!0,{},e.defaults,this.$element.data(),i),this.className="Abide",this._init();}},{key:"_init",value:function(){this.$inputs=this.$element.find("input, textarea, select"),this._events();}},{key:"_events",value:function(){var t=this;this.$element.off(".abide").on("reset.zf.abide",function(){t.resetForm();}).on("submit.zf.abide",function(){return t.validateForm();}),"fieldChange"===this.options.validateOn&&this.$inputs.off("change.zf.abide").on("change.zf.abide",function(e){t.validateInput(r()(e.target));}),this.options.liveValidate&&this.$inputs.off("input.zf.abide").on("input.zf.abide",function(e){t.validateInput(r()(e.target));}),this.options.validateOnBlur&&this.$inputs.off("blur.zf.abide").on("blur.zf.abide",function(e){t.validateInput(r()(e.target));});}},{key:"_reflow",value:function(){this._init();}},{key:"requiredCheck",value:function(t){if(!t.attr("required"))return !0;var e=!0;switch(t[0].type){case "checkbox":e=t[0].checked;break;case "select":case "select-one":case "select-multiple":var i=t.find("option:selected");i.length&&i.val()||(e=!1);break;default:t.val()&&t.val().length||(e=!1);}return e;}},{key:"findFormError",value:function(t){var e=t[0].id,i=t.siblings(this.options.formErrorSelector);return i.length||(i=t.parent().find(this.options.formErrorSelector)),i=i.add(this.$element.find('[data-form-error-for="'+e+'"]'));}},{key:"findLabel",value:function(t){var e=t[0].id,i=this.$element.find('label[for="'+e+'"]');return i.length?i:t.closest("label");}},{key:"findRadioLabels",value:function(t){var e=this,i=t.map(function(t,i){var n=i.id,s=e.$element.find('label[for="'+n+'"]');
3return s.length||(s=r()(i).closest("label")),s[0];});return r()(i);}},{key:"addErrorClasses",value:function(t){var e=this.findLabel(t),i=this.findFormError(t);e.length&&e.addClass(this.options.labelErrorClass),i.length&&i.addClass(this.options.formErrorClass),t.addClass(this.options.inputErrorClass).attr("data-invalid","");}},{key:"removeRadioErrorClasses",value:function(t){var e=this.$element.find(':radio[name="'+t+'"]'),i=this.findRadioLabels(e),n=this.findFormError(e);i.length&&i.removeClass(this.options.labelErrorClass),n.length&&n.removeClass(this.options.formErrorClass),e.removeClass(this.options.inputErrorClass).removeAttr("data-invalid");}},{key:"removeErrorClasses",value:function(t){if("radio"==t[0].type)return this.removeRadioErrorClasses(t.attr("name"));var e=this.findLabel(t),i=this.findFormError(t);e.length&&e.removeClass(this.options.labelErrorClass),i.length&&i.removeClass(this.options.formErrorClass),t.removeClass(this.options.inputErrorClass).removeAttr("data-invalid");}},{key:"validateInput",value:function(t){var e=this.requiredCheck(t),i=!1,n=!0,s=t.attr("data-validator"),o=!0;if(t.is("[data-abide-ignore]")||t.is('[type="hidden"]')||t.is("[disabled]"))return !0;switch(t[0].type){case "radio":i=this.validateRadio(t.attr("name"));break;case "checkbox":i=e;break;case "select":case "select-one":case "select-multiple":i=e;break;default:i=this.validateText(t);}s&&(n=this.matchValidation(t,s,t.attr("required"))),t.attr("data-equalto")&&(o=this.options.validators.equalTo(t));var a=-1===[e,i,n,o].indexOf(!1),l=(a?"valid":"invalid")+".zf.abide";if(a){var u=this.$element.find('[data-equalto="'+t.attr("id")+'"]');if(u.length){var c=this;u.each(function(){r()(this).val()&&c.validateInput(r()(this));});}}return this[a?"removeErrorClasses":"addErrorClasses"](t),t.trigger(l,[t]),a;}},{key:"validateForm",value:function(){var t=[],e=this;this.$inputs.each(function(){t.push(e.validateInput(r()(this)));});var i=-1===t.indexOf(!1);return this.$element.find("[data-abide-error]").css("display",i?"none":"block"),this.$element.trigger((i?"formvalid":"forminvalid")+".zf.abide",[this.$element]),i;}},{key:"validateText",value:function(t,e){e=e||t.attr("pattern")||t.attr("type");;var i=t.val(),n=!1;return i.length?n=this.options.patterns.hasOwnProperty(e)?this.options.patterns[e].test(i):e===t.attr("type")||new RegExp(e).test(i):t.prop("required")||(n=!0),n;}},{key:"validateRadio",value:function(t){var e=this.$element.find(':radio[name="'+t+'"]'),i=!1,n=!1;return e.each(function(t,e){r()(e).attr("required")&&(n=!0);}),n||(i=!0),i||e.each(function(t,e){r()(e).prop("checked")&&(i=!0);}),i;}},{key:"matchValidation",value:function(t,e,i){var n=this;return i=!!i,-1===e.split(" ").map(function(e){return n.options.validators[e](t,i,t.parent());}).indexOf(!1);}},{key:"resetForm",value:function(){var t=this.$element,e=this.options;r()("."+e.labelErrorClass,t).not("small").removeClass(e.labelErrorClass),r()("."+e.inputErrorClass,t).not("small").removeClass(e.inputErrorClass),r()(e.formErrorSelector+"."+e.formErrorClass).removeClass(e.formErrorClass),t.find("[data-abide-error]").css("display","none"),r()(":input",t).not(":button, :submit, :reset, :hidden, :radio, :checkbox, [data-abide-ignore]").val("").removeAttr("data-invalid"),r()(":input:radio",t).not("[data-abide-ignore]").prop("checked",!1).removeAttr("data-invalid"),r()(":input:checkbox",t).not("[data-abide-ignore]").prop("checked",!1).removeAttr("data-invalid"),t.trigger("formreset.zf.abide",[t]);}},{key:"_destroy",value:function(){var t=this;this.$element.off(".abide").find("[data-abide-error]").css("display","none"),this.$inputs.off(".abide").each(function(){t.removeErrorClasses(r()(this));});}}]),e;}(l.a);c.defaults={validateOn:"fieldChange",labelErrorClass:"is-invalid-label",inputErrorClass:"is-invalid-input",formErrorSelector:".form-error",formErrorClass:"is-visible",liveValidate:!1,validateOnBlur:!1,patterns:{alpha:/^[a-zA-Z]+$/,alpha_numeric:/^[a-zA-Z0-9]+$/,integer:/^[-+]?\d+$/,number:/^[-+]?\d*(?:[\.\,]\d+)?$/,card:/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|(?:222[1-9]|2[3-6][0-9]{2}|27[0-1][0-9]|2720)[0-9]{12}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/,cvv:/^([0-9]){3,4}$/,email:/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+$/,url:/^(https?|ftp|file|ssh):\/\/(((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/,domain:/^([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,8}$/,datetime:/^([0-2][0-9]{3})\-([0-1][0-9])\-([0-3][0-9])T([0-5][0-9])\:([0-5][0-9])\:([0-5][0-9])(Z|([\-\+]([0-1][0-9])\:00))$/,date:/(?:19|20)[0-9]{2}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-9])|(?:(?!02)(?:0[1-9]|1[0-2])-(?:30))|(?:(?:0[13578]|1[02])-31))$/,time:/^(0[0-9]|1[0-9]|2[0-3])(:[0-5][0-9]){2}$/,dateISO:/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}$/,month_day_year:/^(0[1-9]|1[012])[- \/.](0[1-9]|[12][0-9]|3[01])[- \/.]\d{4}$/,day_month_year:/^(0[1-9]|[12][0-9]|3[01])[- \/.](0[1-9]|1[012])[- \/.]\d{4}$/,color:/^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/,website:{test:function(t){return c.defaults.patterns.domain.test(t)||c.defaults.patterns.url.test(t);}}}
3,validators:{equalTo:function(t,e,i){return r()("#"+t.attr("data-equalto")).val()===t.val();}}};},function(t,e,i){"use strict";function n(t){if(void 0===Function.prototype.name){var e=/function\s([^(]{1,})\(/,i=e.exec(t.toString());return i&&i.length>1?i[1].trim():"";}return void 0===t.prototype?t.constructor.name:t.prototype.constructor.name;}function s(t){return "true"===t||"false"!==t&&(isNaN(1*t)?t:parseFloat(t));}function o(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();}i.d(e,"a",function(){return c;});var a=i(0),r=i.n(a),l=i(1),u=i(4),c={version:"6.4.3",_plugins:{},_uuids:[],plugin:function(t,e){var i=e||n(t),s=o(i);this._plugins[s]=this[i]=t;},registerPlugin:function(t,e){var s=e?o(e):n(t.constructor).toLowerCase();t.uuid=i.i(l.b)(6,s),t.$element.attr("data-"+s)||t.$element.attr("data-"+s,t.uuid),t.$element.data("zfPlugin")||t.$element.data("zfPlugin",t),t.$element.trigger("init.zf."+s),this._uuids.push(t.uuid);},unregisterPlugin:function(t){var e=o(n(t.$element.data("zfPlugin").constructor));this._uuids.splice(this._uuids.indexOf(t.uuid),1),t.$element.removeAttr("data-"+e).removeData("zfPlugin").trigger("destroyed.zf."+e);for(var i in t)t[i]=null;},reInit:function(t){var e=t instanceof r.a;try{if(e)t.each(function(){r()(this).data("zfPlugin")._init();});else{var i=typeof t,n=this;({object:function(t){t.forEach(function(t){t=o(t),r()("[data-"+t+"]").foundation("_init");});},string:function(){t=o(t),r()("[data-"+t+"]").foundation("_init");},undefined:function(){this.object(Object.keys(n._plugins));}})[i](t);}}catch(t){console.error(t);}finally{return t;}},reflow:function(t,e){void 0===e?e=Object.keys(this._plugins):"string"==typeof e&&(e=[e]);var i=this;r.a.each(e,function(e,n){var o=i._plugins[n];r()(t).find("[data-"+n+"]").addBack("[data-"+n+"]").each(function(){var t=r()(this),e={};if(t.data("zfPlugin"))return void console.warn("Tried to initialize "+n+" on an element that already has a Foundation plugin.");t.attr("data-options")&&t.attr("data-options").split(";").forEach(function(t,i){var n=t.split(":").map(function(t){return t.trim();});n[0]&&(e[n[0]]=s(n[1]));});try{t.data("zfPlugin",new o(r()(this),e));}catch(t){console.error(t);}finally{return;}});});},getFnName:n,addToJquery:function(t){var e=function(e){var i=typeof e,s=t(".no-js");if(s.length&&s.removeClass("no-js"),"undefined"===i)u.a._init(),c.reflow(this);else{if("string"!==i)throw new TypeError("We're sorry, "+i+" 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[e])throw new ReferenceError("We're sorry, '"+e+"' is not an available method for "+(a?n(a):"this element")+".");1===this.length?a[e].apply(a,o):this.each(function(i,n){a[e].apply(t(n).data("zfPlugin"),o);});}return this;};return t.fn.foundation=e,t;}};c.util={throttle:function(t,e){var i=null;return function(){var n=this,s=arguments;null===i&&(i=setTimeout(function(){t.apply(n,s),i=null;},e));};}},window.Foundation=c,function(){Date.now&&window.Date.now||(window.Date.now=Date.now=function(){return (new Date()).getTime();});for(var t=["webkit","moz"],e=0;e<t.length&&!window.requestAnimationFrame;++e){var i=t[e];window.requestAnimationFrame=window[i+"RequestAnimationFrame"],window.cancelAnimationFrame=window[i+"CancelAnimationFrame"]||window[i+"CancelRequestAnimationFrame"];}if(/iP(ad|hone|od).*OS 6/.test(window.navigator.userAgent)||!window.requestAnimationFrame||!window.cancelAnimationFrame){var n=0;window.requestAnimationFrame=function(t){var e=Date.now(),i=Math.max(n+16,e);return setTimeout(function(){t(n=i);},i-e);},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(t){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var e=Array.prototype.slice.call(arguments,1),i=this,n=function(){},s=function(){return i.apply(this instanceof n?this:t,e.concat(Array.prototype.slice.call(arguments)));};return this.prototype&&(n.prototype=this.prototype),s.prototype=new n(),s;});}
3,function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !e||"object"!=typeof e&&"function"!=typeof e?t:e;}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e);}i.d(e,"a",function(){return p;});var a=i(0),r=i.n(a),l=i(3),u=i(1),c=i(15),h=i(5),d=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value" in n&&(n.writable=!0),Object.defineProperty(t,n.key,n);}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e;};}(),f=function t(e,i,n){null===e&&(e=Function.prototype);var s=Object.getOwnPropertyDescriptor(e,i);if(void 0===s){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,i,n);}if("value" in s)return s.value;var a=s.get;if(void 0!==a)return a.call(n);},p=function(t){function e(){return n(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments));}return o(e,t),d(e,[{key:"_setup",value:function(t,i){this.$element=t,this.options=r.a.extend({},e.defaults,this.$element.data(),i),this.className="Dropdown",h.a.init(r.a),this._init(),l.a.register("Dropdown",{ENTER:"open",SPACE:"open",ESCAPE:"close"});}},{key:"_init",value:function(){var t=this.$element.attr("id");this.$anchors=r()('[data-toggle="'+t+'"]').length?r()('[data-toggle="'+t+'"]'):r()('[data-open="'+t+'"]'),this.$anchors.attr({"aria-controls":t,"data-is-focus":!1,"data-yeti-box":t,"aria-haspopup":!0,"aria-expanded":!1}),this._setCurrentAnchor(this.$anchors.first()),this.options.parentClass?this.$parent=this.$element.parents("."+this.options.parentClass):this.$parent=null,this.$element.attr({"aria-hidden":"true","data-yeti-box":t,"data-resize":t,"aria-labelledby":this.$currentAnchor.id||i.i(u.b)(6,"dd-anchor")}),f(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"_init",this).call(this),this._events();}},{key:"_getDefaultPosition",value:function(){var t=this.$element[0].className.match(/(top|left|right|bottom)/g);return t?t[0]:"bottom";}},{key:"_getDefaultAlignment",value:function(){var t=/float-(\S+)/.exec(this.$currentAnchor.className);return t?t[1]:f(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"_getDefaultAlignment",this).call(this);}},{key:"_setPosition",value:function(){f(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"_setPosition",this).call(this,this.$currentAnchor,this.$element,this.$parent);}},{key:"_setCurrentAnchor",value:function(t){this.$currentAnchor=r()(t);}},{key:"_events",value:function(){var t=this;this.$element.on({"open.zf.trigger":this.open.bind(this),"close.zf.trigger":this.close.bind(this),"toggle.zf.trigger":this.toggle.bind(this),"resizeme.zf.trigger":this._setPosition.bind(this)}),this.$anchors.off("click.zf.trigger").on("click.zf.trigger",function(){t._setCurrentAnchor(this);}),this.options.hover&&(this.$anchors.off("mouseenter.zf.dropdown mouseleave.zf.dropdown").on("mouseenter.zf.dropdown",function(){t._setCurrentAnchor(this);var e=r()("body").data();void 0!==e.whatinput&&"mouse"!==e.whatinput||(clearTimeout(t.timeout),t.timeout=setTimeout(function(){t.open(),t.$anchors.data("hover",!0);},t.options.hoverDelay));}).on("mouseleave.zf.dropdown",function(){clearTimeout(t.timeout),t.timeout=setTimeout(function(){t.close(),t.$anchors.data("hover",!1);},t.options.hoverDelay);}),this.options.hoverPane&&this.$element.off("mouseenter.zf.dropdown mouseleave.zf.dropdown").on("mouseenter.zf.dropdown",function(){clearTimeout(t.timeout);}).on("mouseleave.zf.dropdown",function(){clearTimeout(t.timeout),t.timeout=setTimeout(function(){t.close(),t.$anchors.data("hover",!1);},t.options.hoverDelay);})),this.$anchors.add(this.$element).on("keydown.zf.dropdown",function(e){var i=r()(this);l.a.findFocusable(t.$element);l.a.handleKey(e,"Dropdown",{open:function(){i.is(t.$anchors)&&(t.open(),t.$element.attr("tabindex",-1).focus(),e.preventDefault());},close:function(){t.close(),t.$anchors.focus();}});});}},{key:"_addBodyHandler",value:function(){var t=r()(document.body).not(this.$element),e=this;t.off("click.zf.dropdown").on("click.zf.dropdown",function(i){e.$anchors.is(i.target)||e.$anchors.find(i.target).length||e.$element.find(i.target).length||(e.close(),t.off("click.zf.dropdown"));});}},{key:"open",value:function(){if(this.$element.trigger("closeme.zf.dropdown",this.$element.attr("id")),this.$anchors.addClass("hover").attr({"aria-expanded":!0}),this.$element.addClass("is-opening"),this._setPosition(),this.$element.removeClass("is-opening").addClass("is-open").attr({"aria-hidden":!1}),this.options.autoFocus){var t=l.a.findFocusable(this.$element);t.length&&t.eq(0).focus();}this.options.closeOnClick&&this._addBodyHandler(),this.options.trapFocus&&l.a.trapFocus(this.$element),this.$element.trigger("show.zf.dropdown",[this.$element]);}},{key:"close",value:function(){if(!this.$element.hasClass("is-open"))return !1;this.$element.removeClass("is-open").attr({"aria-hidden":!0}),this.$anchors.removeClass("hover").attr("aria-expanded",!1),this.$element.trigger("hide.zf.dropdown",[this.$element]),this.options.trapFocus&&l.a.releaseFocus(this.$element);}},{key:"toggle",value:function(){if(this.$element.hasClass("is-open")){if(this.$anchors.data("hover"))return;this.close();}else this.open();}},{key:"_destroy",value:function(){this.$element.off(".zf.trigger").hide(),this.$anchors.off(".zf.dropdown"),r()(document.body).off("click.zf.dropdown");}}]),e;}(c.a);p.defaults={parentClass:null,hoverDelay:250,hover:!1,hoverPane:!1,vOffset:0,hOffset:0,positionClass:"",position:"auto",alignment:"auto",allowOverlap:!1,allowBottomOverlap:!0,trapFocus:!1,autoFocus:!1,closeOnClick:!1};}
3,function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !e||"object"!=typeof e&&"function"!=typeof e?t:e;}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e);}i.d(e,"a",function(){return f;});var a=i(0),r=i.n(a),l=i(4),u=i(8),c=i(1),h=i(2),d=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value" in n&&(n.writable=!0),Object.defineProperty(t,n.key,n);}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e;};}(),f=function(t){function e(){return n(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments));}return o(e,t),d(e,[{key:"_setup",value:function(t,i){this.$element=t,this.options=r.a.extend({},e.defaults,this.$element.data(),i),this.className="Equalizer",this._init();}},{key:"_init",value:function(){var t=this.$element.attr("data-equalizer")||"",e=this.$element.find('[data-equalizer-watch="'+t+'"]');l.a._init(),this.$watched=e.length?e:this.$element.find("[data-equalizer-watch]"),this.$element.attr("data-resize",t||i.i(c.b)(6,"eq")),this.$element.attr("data-mutate",t||i.i(c.b)(6,"eq")),this.hasNested=this.$element.find("[data-equalizer]").length>0,this.isNested=this.$element.parentsUntil(document.body,"[data-equalizer]").length>0,this.isOn=!1,this._bindHandler={onResizeMeBound:this._onResizeMe.bind(this),onPostEqualizedBound:this._onPostEqualized.bind(this)};var n,s=this.$element.find("img");this.options.equalizeOn?(n=this._checkMQ(),r()(window).on("changed.zf.mediaquery",this._checkMQ.bind(this))):this._events(),(void 0!==n&&!1===n||void 0===n)&&(s.length?i.i(u.a)(s,this._reflow.bind(this)):this._reflow());}},{key:"_pauseEvents",value:function(){this.isOn=!1,this.$element.off({".zf.equalizer":this._bindHandler.onPostEqualizedBound,"resizeme.zf.trigger":this._bindHandler.onResizeMeBound,"mutateme.zf.trigger":this._bindHandler.onResizeMeBound});}},{key:"_onResizeMe",value:function(t){this._reflow();}},{key:"_onPostEqualized",value:function(t){t.target!==this.$element[0]&&this._reflow();}},{key:"_events",value:function(){this._pauseEvents(),this.hasNested?this.$element.on("postequalized.zf.equalizer",this._bindHandler.onPostEqualizedBound):(this.$element.on("resizeme.zf.trigger",this._bindHandler.onResizeMeBound),this.$element.on("mutateme.zf.trigger",this._bindHandler.onResizeMeBound)),this.isOn=!0;}},{key:"_checkMQ",value:function(){var t=!l.a.is(this.options.equalizeOn);return t?this.isOn&&(this._pauseEvents(),this.$watched.css("height","auto")):this.isOn||this._events(),t;}},{key:"_killswitch",value:function(){}},{key:"_reflow",value:function(){if(!this.options.equalizeOnStack&&this._isStacked())return this.$watched.css("height","auto"),!1;this.options.equalizeByRow?this.getHeightsByRow(this.applyHeightByRow.bind(this)):this.getHeights(this.applyHeight.bind(this));}},{key:"_isStacked",value:function(){return !this.$watched[0]||!this.$watched[1]||this.$watched[0].getBoundingClientRect().top!==this.$watched[1].getBoundingClientRect().top;}},{key:"getHeights",value:function(t){for(var e=[],i=0,n=this.$watched.length;i<n;i++)this.$watched[i].style.height="auto",e.push(this.$watched[i].offsetHeight);t(e);}},{key:"getHeightsByRow",value:function(t){var e=this.$watched.length?this.$watched.first().offset().top:0,i=[],n=0;i[n]=[];for(var s=0,o=this.$watched.length;s<o;s++){this.$watched[s].style.height="auto";var a=r()(this.$watched[s]).offset().top;a!=e&&(n++,i[n]=[],e=a),i[n].push([this.$watched[s],this.$watched[s].offsetHeight]);}for(var l=0,u=i.length;l<u;l++){var c=r()(i[l]).map(function(){return this[1];}).get(),h=Math.max.apply(null,c);i[l].push(h);}t(i);}},{key:"applyHeight",value:function(t){var e=Math.max.apply(null,t);
3this.$element.trigger("preequalized.zf.equalizer"),this.$watched.css("height",e),this.$element.trigger("postequalized.zf.equalizer");}},{key:"applyHeightByRow",value:function(t){this.$element.trigger("preequalized.zf.equalizer");for(var e=0,i=t.length;e<i;e++){var n=t[e].length,s=t[e][n-1];if(n<=2)r()(t[e][0][0]).css({height:"auto"});else{this.$element.trigger("preequalizedrow.zf.equalizer");for(var o=0,a=n-1;o<a;o++)r()(t[e][o][0]).css({height:s});this.$element.trigger("postequalizedrow.zf.equalizer");}}this.$element.trigger("postequalized.zf.equalizer");}},{key:"_destroy",value:function(){this._pauseEvents(),this.$watched.css("height","auto");}}]),e;}(h.a);f.defaults={equalizeOnStack:!1,equalizeByRow:!1,equalizeOn:""};},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !e||"object"!=typeof e&&"function"!=typeof e?t:e;}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e);}i.d(e,"a",function(){return d;});var a=i(0),r=i.n(a),l=i(4),u=i(2),c=i(1),h=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value" in n&&(n.writable=!0),Object.defineProperty(t,n.key,n);}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e;};}(),d=function(t){function e(){return n(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments));}return o(e,t),h(e,[{key:"_setup",value:function(t,i){this.$element=t,this.options=r.a.extend({},e.defaults,i),this.rules=[],this.currentPath="",this.className="Interchange",this._init(),this._events();}},{key:"_init",value:function(){l.a._init();var t=this.$element[0].id||i.i(c.b)(6,"interchange");this.$element.attr({"data-resize":t,id:t}),this._addBreakpoints(),this._generateRules(),this._reflow();}},{key:"_events",value:function(){var t=this;this.$element.off("resizeme.zf.trigger").on("resizeme.zf.trigger",function(){return t._reflow();});}},{key:"_reflow",value:function(){var t;for(var e in this.rules)if(this.rules.hasOwnProperty(e)){var i=this.rules[e];window.matchMedia(i.query).matches&&(t=i);}t&&this.replace(t.path);}},{key:"_addBreakpoints",value:function(){for(var t in l.a.queries)if(l.a.queries.hasOwnProperty(t)){var i=l.a.queries[t];e.SPECIAL_QUERIES[i.name]=i.value;}}},{key:"_generateRules",value:function(t){var i,n=[];i=this.options.rules?this.options.rules:this.$element.data("interchange"),i="string"==typeof i?i.match(/\[.*?\]/g):i;for(var s in i)if(i.hasOwnProperty(s)){var o=i[s].slice(1,-1).split(", "),a=o.slice(0,-1).join(""),r=o[o.length-1];e.SPECIAL_QUERIES[r]&&(r=e.SPECIAL_QUERIES[r]),n.push({path:a,query:r});}this.rules=n;}},{key:"replace",value:function(t){if(this.currentPath!==t){var e=this,i="replaced.zf.interchange";"IMG"===this.$element[0].nodeName?this.$element.attr("src",t).on("load",function(){e.currentPath=t;}).trigger(i):t.match(/\.(gif|jpg|jpeg|png|svg|tiff)([?#].*)?/i)?(t=t.replace(/\(/g,"%28").replace(/\)/g,"%29"),this.$element.css({"background-image":"url("+t+")"}).trigger(i)):r.a.get(t,function(n){e.$element.html(n).trigger(i),r()(n).foundation(),e.currentPath=t;});}}},{key:"_destroy",value:function(){this.$element.off("resizeme.zf.trigger");}}]),e;}(u.a);d.defaults={rules:null},d.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(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !e||"object"!=typeof e&&"function"!=typeof e?t:e;}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e);}i.d(e,"a",function(){return d;});var a=i(0),r=i.n(a),l=i(1),u=i(2),c=i(16),h=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];
3n.enumerable=n.enumerable||!1,n.configurable=!0,"value" in n&&(n.writable=!0),Object.defineProperty(t,n.key,n);}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e;};}(),d=function(t){function e(){return n(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments));}return o(e,t),h(e,[{key:"_setup",value:function(t,i){this.$element=t,this.options=r.a.extend({},e.defaults,this.$element.data(),i),this.className="Magellan",this._init(),this.calcPoints();}},{key:"_init",value:function(){var t=this.$element[0].id||i.i(l.b)(6,"magellan");this.$targets=r()("[data-magellan-target]"),this.$links=this.$element.find("a"),this.$element.attr({"data-resize":t,"data-scroll":t,id:t}),this.$active=r()(),this.scrollPos=parseInt(window.pageYOffset,10),this._events();}},{key:"calcPoints",value:function(){var t=this,e=document.body,i=document.documentElement;this.points=[],this.winHeight=Math.round(Math.max(window.innerHeight,i.clientHeight)),this.docHeight=Math.round(Math.max(e.scrollHeight,e.offsetHeight,i.clientHeight,i.scrollHeight,i.offsetHeight)),this.$targets.each(function(){var e=r()(this),i=Math.round(e.offset().top-t.options.threshold);e.targetPoint=i,t.points.push(i);});}},{key:"_events",value:function(){var t=this;r()("html, body"),t.options.animationDuration,t.options.animationEasing;r()(window).one("load",function(){t.options.deepLinking&&location.hash&&t.scrollToLoc(location.hash),t.calcPoints(),t._updateActive();}),this.$element.on({"resizeme.zf.trigger":this.reflow.bind(this),"scrollme.zf.trigger":this._updateActive.bind(this)}).on("click.zf.magellan",'a[href^="#"]',function(e){e.preventDefault();var i=this.getAttribute("href");t.scrollToLoc(i);}),this._deepLinkScroll=function(e){t.options.deepLinking&&t.scrollToLoc(window.location.hash);},r()(window).on("popstate",this._deepLinkScroll);}},{key:"scrollToLoc",value:function(t){this._inTransition=!0;var e=this,i={animationEasing:this.options.animationEasing,animationDuration:this.options.animationDuration,threshold:this.options.threshold,offset:this.options.offset};c.a.scrollToLoc(t,i,function(){e._inTransition=!1,e._updateActive();});}},{key:"reflow",value:function(){this.calcPoints(),this._updateActive();}},{key:"_updateActive",value:function(){if(!this._inTransition){var t,e=parseInt(window.pageYOffset,10);if(e+this.winHeight===this.docHeight)t=this.points.length-1;else if(e<this.points[0])t=void 0;else{var i=this.scrollPos<e,n=this,s=this.points.filter(function(t,s){return i?t-n.options.offset<=e:t-n.options.offset-n.options.threshold<=e;});t=s.length?s.length-1:0;}if(this.$active.removeClass(this.options.activeClass),this.$active=this.$links.filter('[href="#'+this.$targets.eq(t).data("magellan-target")+'"]').addClass(this.options.activeClass),this.options.deepLinking){var o="";void 0!=t&&(o=this.$active[0].getAttribute("href")),o!==window.location.hash&&(window.history.pushState?window.history.pushState(null,null,o):window.location.hash=o);}this.scrollPos=e,this.$element.trigger("update.zf.magellan",[this.$active]);}}},{key:"_destroy",value:function(){if(this.$element.off(".zf.trigger .zf.magellan").find("."+this.options.activeClass).removeClass(this.options.activeClass),this.options.deepLinking){var t=this.$active[0].getAttribute("href");window.location.hash.replace(t,"");}r()(window).off("popstate",this._deepLinkScroll);}}]),e;}(u.a);d.defaults={animationDuration:500,animationEasing:"linear",threshold:50,activeClass:"is-active",deepLinking:!1,offset:0};},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !e||"object"!=typeof e&&"function"!=typeof e?t:e;}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e);}i.d(e,"a",function(){return p;});var a=i(0),r=i.n(a),l=i(3),u=i(4),c=i(1),h=i(2),d=i(5),f=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];
3n.enumerable=n.enumerable||!1,n.configurable=!0,"value" in n&&(n.writable=!0),Object.defineProperty(t,n.key,n);}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e;};}(),p=function(t){function e(){return n(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments));}return o(e,t),f(e,[{key:"_setup",value:function(t,i){var n=this;this.className="OffCanvas",this.$element=t,this.options=r.a.extend({},e.defaults,this.$element.data(),i),this.contentClasses={base:[],reveal:[]},this.$lastTrigger=r()(),this.$triggers=r()(),this.position="left",this.$content=r()(),this.nested=!!this.options.nested,r()(["push","overlap"]).each(function(t,e){n.contentClasses.base.push("has-transition-"+e);}),r()(["left","right","top","bottom"]).each(function(t,e){n.contentClasses.base.push("has-position-"+e),n.contentClasses.reveal.push("has-reveal-"+e);}),d.a.init(r.a),u.a._init(),this._init(),this._events(),l.a.register("OffCanvas",{ESCAPE:"close"});}},{key:"_init",value:function(){var t=this.$element.attr("id");if(this.$element.attr("aria-hidden","true"),this.options.contentId?this.$content=r()("#"+this.options.contentId):this.$element.siblings("[data-off-canvas-content]").length?this.$content=this.$element.siblings("[data-off-canvas-content]").first():this.$content=this.$element.closest("[data-off-canvas-content]").first(),this.options.contentId?this.options.contentId&&null===this.options.nested&&console.warn("Remember to use the nested option if using the content ID option!"):this.nested=0===this.$element.siblings("[data-off-canvas-content]").length,!0===this.nested&&(this.options.transition="overlap",this.$element.removeClass("is-transition-push")),this.$element.addClass("is-transition-"+this.options.transition+" is-closed"),this.$triggers=r()(document).find('[data-open="'+t+'"], [data-close="'+t+'"], [data-toggle="'+t+'"]').attr("aria-expanded","false").attr("aria-controls",t),this.position=this.$element.is(".position-left, .position-top, .position-right, .position-bottom")?this.$element.attr("class").match(/position\-(left|top|right|bottom)/)[1]:this.position,!0===this.options.contentOverlay){var e=document.createElement("div"),i="fixed"===r()(this.$element).css("position")?"is-overlay-fixed":"is-overlay-absolute";e.setAttribute("class","js-off-canvas-overlay "+i),this.$overlay=r()(e),"is-overlay-fixed"===i?r()(this.$overlay).insertAfter(this.$element):this.$content.append(this.$overlay);}this.options.isRevealed=this.options.isRevealed||new RegExp(this.options.revealClass,"g").test(this.$element[0].className),!0===this.options.isRevealed&&(this.options.revealOn=this.options.revealOn||this.$element[0].className.match(/(reveal-for-medium|reveal-for-large)/g)[0].split("-")[2],this._setMQChecker()),this.options.transitionTime&&this.$element.css("transition-duration",this.options.transitionTime),this._removeContentClasses();}},{key:"_events",value:function(){if(this.$element.off(".zf.trigger .zf.offcanvas").on({"open.zf.trigger":this.open.bind(this),"close.zf.trigger":this.close.bind(this),"toggle.zf.trigger":this.toggle.bind(this),"keydown.zf.offcanvas":this._handleKeyboard.bind(this)}),!0===this.options.closeOnClick)(this.options.contentOverlay?this.$overlay:this.$content).on({"click.zf.offcanvas":this.close.bind(this)});}},{key:"_setMQChecker",value:function(){var t=this;r()(window).on("changed.zf.mediaquery",function(){u.a.atLeast(t.options.revealOn)?t.reveal(!0):t.reveal(!1);}).one("load.zf.offcanvas",function(){u.a.atLeast(t.options.revealOn)&&t.reveal(!0);});}},{key:"_removeContentClasses",value:function(t){"boolean"!=typeof t?this.$content.removeClass(this.contentClasses.base.join(" ")):!1===t&&this.$content.removeClass("has-reveal-"+this.position);}},{key:"_addContentClasses",value:function(t){this._removeContentClasses(t),"boolean"!=typeof t?this.$content.addClass("has-transition-"+this.options.transition+" has-position-"+this.position):!0===t&&this.$content.addClass("has-reveal-"+this.position);}},{key:"reveal",value:function(t){t?(this.close(),this.isRevealed=!0,this.$element.attr("aria-hidden","false"),this.$element.off("open.zf.trigger toggle.zf.trigger"),this.$element.removeClass("is-closed")):(this.isRevealed=!1,this.$element.attr("aria-hidden","true"),this.$element.off("open.zf.trigger toggle.zf.trigger").on({"open.zf.trigger":this.open.bind(this),"toggle.zf.trigger":this.toggle.bind(this)}),this.$element.addClass("is-closed")),this._addContentClasses(t);}},{key:"_stopScrolling",value:function(t){return !1;}},{key:"_recordScrollable",value:function(t){var e=this;;e.scrollHeight!==e.clientHeight&&(0===e.scrollTop&&(e.scrollTop=1),e.scrollTop===e.scrollHeight-e.clientHeight&&(e.scrollTop=e.scrollHeight-e.clientHeight-1)),e.allowUp=e.scrollTop>0,e.allowDown=e.scrollTop<e.scrollHeight-e.clientHeight,e.lastY=t.originalEvent.pageY;}},{key:"_stopScrollPropagation",value:function(t){var e=this,i=t.pageY<e.lastY,n=!i;e.lastY=t.pageY,i&&e.allowUp||n&&e.allowDown?t.stopPropagation():t.preventDefault();}},{key:"open",value:function(t,e){if(!this.$element.hasClass("is-open")&&!this.isRevealed){var n=this;e&&(this.$lastTrigger=e),"top"===this.options.forceTo?window.scrollTo(0,0):"bottom"===this.options.forceTo&&window.scrollTo(0,document.body.scrollHeight),this.options.transitionTime&&"overlap"
3!==this.options.transition?this.$element.siblings("[data-off-canvas-content]").css("transition-duration",this.options.transitionTime):this.$element.siblings("[data-off-canvas-content]").css("transition-duration",""),this.$element.addClass("is-open").removeClass("is-closed"),this.$triggers.attr("aria-expanded","true"),this.$element.attr("aria-hidden","false").trigger("opened.zf.offcanvas"),this.$content.addClass("is-open-"+this.position),!1===this.options.contentScroll&&(r()("body").addClass("is-off-canvas-open").on("touchmove",this._stopScrolling),this.$element.on("touchstart",this._recordScrollable),this.$element.on("touchmove",this._stopScrollPropagation)),!0===this.options.contentOverlay&&this.$overlay.addClass("is-visible"),!0===this.options.closeOnClick&&!0===this.options.contentOverlay&&this.$overlay.addClass("is-closable"),!0===this.options.autoFocus&&this.$element.one(i.i(c.c)(this.$element),function(){if(n.$element.hasClass("is-open")){var t=n.$element.find("[data-autofocus]");t.length?t.eq(0).focus():n.$element.find("a, button").eq(0).focus();}}),!0===this.options.trapFocus&&(this.$content.attr("tabindex","-1"),l.a.trapFocus(this.$element)),this._addContentClasses();}}},{key:"close",value:function(t){if(this.$element.hasClass("is-open")&&!this.isRevealed){var e=this;this.$element.removeClass("is-open"),this.$element.attr("aria-hidden","true").trigger("closed.zf.offcanvas"),this.$content.removeClass("is-open-left is-open-top is-open-right is-open-bottom"),!1===this.options.contentScroll&&(r()("body").removeClass("is-off-canvas-open").off("touchmove",this._stopScrolling),this.$element.off("touchstart",this._recordScrollable),this.$element.off("touchmove",this._stopScrollPropagation)),!0===this.options.contentOverlay&&this.$overlay.removeClass("is-visible"),!0===this.options.closeOnClick&&!0===this.options.contentOverlay&&this.$overlay.removeClass("is-closable"),this.$triggers.attr("aria-expanded","false"),!0===this.options.trapFocus&&(this.$content.removeAttr("tabindex"),l.a.releaseFocus(this.$element)),this.$element.one(i.i(c.c)(this.$element),function(t){e.$element.addClass("is-closed"),e._removeContentClasses();});}}},{key:"toggle",value:function(t,e){this.$element.hasClass("is-open")?this.close(t,e):this.open(t,e);}},{key:"_handleKeyboard",value:function(t){var e=this;l.a.handleKey(t,"OffCanvas",{close:function(){return e.close(),e.$lastTrigger.focus(),!0;},handled:function(){t.stopPropagation(),t.preventDefault();}});}},{key:"_destroy",value:function(){this.close(),this.$element.off(".zf.trigger .zf.offcanvas"),this.$overlay.off(".zf.offcanvas");}}]),e;}(h.a);p.defaults={closeOnClick:!0,contentOverlay:!0,contentId:null,nested:null,contentScroll:!0,transitionTime:null,transition:"push",forceTo:null,isRevealed:!1,revealOn:null,autoFocus:!0,revealClass:"reveal-for-",trapFocus:!1};},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !e||"object"!=typeof e&&"function"!=typeof e?t:e;}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e);}i.d(e,"a",function(){return g;});var a=i(0),r=i.n(a),l=i(3),u=i(6),c=i(18),h=i(8),d=i(1),f=i(2),p=i(10),m=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value" in n&&(n.writable=!0),Object.defineProperty(t,n.key,n);}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e;};}(),g=function(t){function e(){return n(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments));}return o(e,t),m(e,[{key:"_setup",value:function(t,i){this.$element=t,this.options=r.a.extend({},e.defaults,this.$element.data(),i),this.className="Orbit",p.a.init(r.a),this._init(),l.a.register("Orbit",{ltr:{ARROW_RIGHT:"next",ARROW_LEFT:"previous"},rtl:{ARROW_LEFT:"next",ARROW_RIGHT:"previous"}});}},{key:"_init",value:function(){this._reset(),this.$wrapper=this.$element.find("."+this.options.containerClass),this.$slides=this.$element.find("."+this.options.slideClass);var t=this.$element.find("img"),e=this.$slides.filter(".is-active"),n=this.$element[0].id||i.i(d.b)(6,"orbit");this.$element.attr({"data-resize":n,id:n}),e.length||this.$slides.eq(0).addClass("is-active"),this.options.useMUI||this.$slides.addClass("no-motionui"),t.length?
3i.i(h.a)(t,this._prepareForOrbit.bind(this)):this._prepareForOrbit(),this.options.bullets&&this._loadBullets(),this._events(),this.options.autoPlay&&this.$slides.length>1&&this.geoSync(),this.options.accessible&&this.$wrapper.attr("tabindex",0);}},{key:"_loadBullets",value:function(){this.$bullets=this.$element.find("."+this.options.boxOfBullets).find("button");}},{key:"geoSync",value:function(){var t=this;this.timer=new c.a(this.$element,{duration:this.options.timerDelay,infinite:!1},function(){t.changeSlide(!0);}),this.timer.start();}},{key:"_prepareForOrbit",value:function(){this._setWrapperHeight();}},{key:"_setWrapperHeight",value:function(t){var e,i=0,n=0,s=this;this.$slides.each(function(){e=this.getBoundingClientRect().height,r()(this).attr("data-slide",n),/mui/g.test(r()(this)[0].className)||s.$slides.filter(".is-active")[0]===s.$slides.eq(n)[0]||r()(this).css({position:"relative",display:"none"}),i=e>i?e:i,n++;}),n===this.$slides.length&&(this.$wrapper.css({height:i}),t&&t(i));}},{key:"_setSlideHeight",value:function(t){this.$slides.each(function(){r()(this).css("max-height",t);});}},{key:"_events",value:function(){var t=this;if(this.$element.off(".resizeme.zf.trigger").on({"resizeme.zf.trigger":this._prepareForOrbit.bind(this)}),this.$slides.length>1){if(this.options.swipe&&this.$slides.off("swipeleft.zf.orbit swiperight.zf.orbit").on("swipeleft.zf.orbit",function(e){e.preventDefault(),t.changeSlide(!0);}).on("swiperight.zf.orbit",function(e){e.preventDefault(),t.changeSlide(!1);}),this.options.autoPlay&&(this.$slides.on("click.zf.orbit",function(){t.$element.data("clickedOn",!t.$element.data("clickedOn")),t.timer[t.$element.data("clickedOn")?"pause":"start"]();}),this.options.pauseOnHover&&this.$element.on("mouseenter.zf.orbit",function(){t.timer.pause();}).on("mouseleave.zf.orbit",function(){t.$element.data("clickedOn")||t.timer.start();})),this.options.navButtons)this.$element.find("."+this.options.nextClass+", ."+this.options.prevClass).attr("tabindex",0).on("click.zf.orbit touchend.zf.orbit",function(e){e.preventDefault(),t.changeSlide(r()(this).hasClass(t.options.nextClass));});this.options.bullets&&this.$bullets.on("click.zf.orbit touchend.zf.orbit",function(){if(/is-active/g.test(this.className))return !1;var e=r()(this).data("slide"),i=e>t.$slides.filter(".is-active").data("slide"),n=t.$slides.eq(e);t.changeSlide(i,n,e);}),this.options.accessible&&this.$wrapper.add(this.$bullets).on("keydown.zf.orbit",function(e){l.a.handleKey(e,"Orbit",{next:function(){t.changeSlide(!0);},previous:function(){t.changeSlide(!1);},handled:function(){r()(e.target).is(t.$bullets)&&t.$bullets.filter(".is-active").focus();}});});}}},{key:"_reset",value:function(){void 0!==this.$slides&&this.$slides.length>1&&(this.$element.off(".zf.orbit").find("*").off(".zf.orbit"),this.options.autoPlay&&this.timer.restart(),this.$slides.each(function(t){r()(t).removeClass("is-active is-active is-in").removeAttr("aria-live").hide();}),this.$slides.first().addClass("is-active").show(),this.$element.trigger("slidechange.zf.orbit",[this.$slides.first()]),this.options.bullets&&this._updateBullets(0));}},{key:"changeSlide",value:function(t,e,i){if(this.$slides){var n=this.$slides.filter(".is-active").eq(0);if(/mui/g.test(n[0].className))return !1;var s,o=this.$slides.first(),a=this.$slides.last(),r=t?"Right":"Left",l=t?"Left":"Right",c=this;s=e||(t?this.options.infiniteWrap?n.next("."+this.options.slideClass).length?n.next("."+this.options.slideClass):o:n.next("."+this.options.slideClass):this.options.infiniteWrap?n.prev("."+this.options.slideClass).length?n.prev("."+this.options.slideClass):a:n.prev("."+this.options.slideClass)),s.length&&(this.$element.trigger("beforeslidechange.zf.orbit",[n,s]),this.options.bullets&&(i=i||this.$slides.index(s),this._updateBullets(i)),this.options.useMUI&&!this.$element.is(":hidden")?(u.a.animateIn(s.addClass("is-active").css({position:"absolute",top:0}),this.options["animInFrom"+r],function(){s.css({position:"relative",display:"block"}).attr("aria-live","polite");}),u.a.animateOut(n.removeClass("is-active"),this.options["animOutTo"+l],function(){n.removeAttr("aria-live"),c.options.autoPlay&&!c.timer.isPaused&&c.timer.restart();})):(n.removeClass("is-active is-in").removeAttr("aria-live").hide(),s.addClass("is-active is-in").attr("aria-live","polite").show(),this.options.autoPlay&&!this.timer.isPaused&&this.timer.restart()),this.$element.trigger("slidechange.zf.orbit",[s]));}}},{key:"_updateBullets",value:function(t){var e=this.$element.find("."+this.options.boxOfBullets).find(".is-active").removeClass("is-active").blur(),i=e.find("span:last").detach();this.$bullets.eq(t).addClass("is-active").append(i);}},{key:"_destroy",value:function(){this.$element.off(".zf.orbit").find("*").off(".zf.orbit").end().hide();}}]),e;}(f.a);g.defaults={bullets:!0,navButtons:!0,animInFromRight:"slide-in-right",animOutToRight:"slide-out-right",animInFromLeft:"slide-in-left",animOutToLeft:"slide-out-left",autoPlay:!0,timerDelay:5e3,infiniteWrap:!0,swipe:!0,pauseOnHover:!0,accessible:!0,containerClass:"orbit-container",slideClass:"orbit-slide",boxOfBullets:"orbit-bullets",nextClass:"orbit-next",prevClass:"orbit-previous",useMUI:!0};}
3,function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !e||"object"!=typeof e&&"function"!=typeof e?t:e;}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e);}i.d(e,"a",function(){return m;});var a=i(0),r=i.n(a),l=i(4),u=i(1),c=i(2),h=i(11),d=i(17),f=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value" in n&&(n.writable=!0),Object.defineProperty(t,n.key,n);}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e;};}(),p={tabs:{cssClass:"tabs",plugin:d.a},accordion:{cssClass:"accordion",plugin:h.a}},m=function(t){function e(){return n(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments));}return o(e,t),f(e,[{key:"_setup",value:function(t,e){this.$element=r()(t),this.options=r.a.extend({},this.$element.data(),e),this.rules=this.$element.data("responsive-accordion-tabs"),this.currentMq=null,this.currentPlugin=null,this.className="ResponsiveAccordionTabs",this.$element.attr("id")||this.$element.attr("id",i.i(u.b)(6,"responsiveaccordiontabs")),this._init(),this._events();}},{key:"_init",value:function(){if(l.a._init(),"string"==typeof this.rules){for(var t={},e=this.rules.split(" "),i=0;i<e.length;i++){var n=e[i].split("-"),s=n.length>1?n[0]:"small",o=n.length>1?n[1]:n[0];null!==p[o]&&(t[s]=p[o]);}this.rules=t;}this._getAllOptions(),r.a.isEmptyObject(this.rules)||this._checkMediaQueries();}},{key:"_getAllOptions",value:function(){var t=this;t.allOptions={};for(var e in p)if(p.hasOwnProperty(e)){var i=p[e];try{var n=r()("<ul></ul>"),s=new i.plugin(n,t.options);for(var o in s.options)if(s.options.hasOwnProperty(o)&&"zfPlugin"!==o){var a=s.options[o];t.allOptions[o]=a;}s.destroy();}catch(t){}}}},{key:"_events",value:function(){var t=this;r()(window).on("changed.zf.mediaquery",function(){t._checkMediaQueries();});}},{key:"_checkMediaQueries",value:function(){var t,e=this;r.a.each(this.rules,function(e){l.a.atLeast(e)&&(t=e);}),t&&(this.currentPlugin instanceof this.rules[t].plugin||(r.a.each(p,function(t,i){e.$element.removeClass(i.cssClass);}),this.$element.addClass(this.rules[t].cssClass),this.currentPlugin&&(!this.currentPlugin.$element.data("zfPlugin")&&this.storezfData&&this.currentPlugin.$element.data("zfPlugin",this.storezfData),this.currentPlugin.destroy()),this._handleMarkup(this.rules[t].cssClass),this.currentPlugin=new this.rules[t].plugin(this.$element,{}),this.storezfData=this.currentPlugin.$element.data("zfPlugin")));}},{key:"_handleMarkup",value:function(t){var e=this,n="accordion",s=r()("[data-tabs-content="+this.$element.attr("id")+"]");if(s.length&&(n="tabs"),n!==t){var o=e.allOptions.linkClass?e.allOptions.linkClass:"tabs-title",a=e.allOptions.panelClass?e.allOptions.panelClass:"tabs-panel";this.$element.removeAttr("role");var l=this.$element.children("."+o+",[data-accordion-item]").removeClass(o).removeClass("accordion-item").removeAttr("data-accordion-item"),c=l.children("a").removeClass("accordion-title");if("tabs"===n?(s=s.children("."+a).removeClass(a).removeAttr("role").removeAttr("aria-hidden").removeAttr("aria-labelledby"),s.children("a").removeAttr("role").removeAttr("aria-controls").removeAttr("aria-selected")):s=l.children("[data-tab-content]").removeClass("accordion-content"),s.css({display:"",visibility:""}),l.css({display:"",visibility:""}),"accordion"===t)s.each(function(t,i){r()(i).appendTo(l.get(t)).addClass("accordion-content").attr("data-tab-content","").removeClass("is-active").css({height:""}),r()("[data-tabs-content="+e.$element.attr("id")+"]").after('<div id="tabs-placeholder-'+e.$element.attr("id")+'"></div>').detach(),l.addClass("accordion-item").attr("data-accordion-item",""),c.addClass("accordion-title");});else{if("tabs"===t){var h=r()("[data-tabs-content="+e.$element.attr("id")+"]"),d=r()("#tabs-placeholder-"+e.$element.attr("id"));d.length?(h=r()('<div class="tabs-content"></div>').insertAfter(d).attr("data-tabs-content",e.$element.attr("id")),d.remove()):h=r()('<div class="tabs-content"></div>').insertAfter(e.$element).attr("data-tabs-content",e.$element.attr("id")),s.each(function(t,e){var n=r()(e).appendTo(h).addClass(a),s=c.get(t).hash.slice(1),o=r()(e).attr("id")||i.i(u.b)(6,"accordion");s!==o&&(""!==s?r()(e).attr("id",s):(s=o,r()(e).attr("id",s),r()(c.get(t)).attr("href",r()(c.get(t)).attr("href").replace("#","")+"#"+s))),r()(l.get(t)).hasClass("is-active")&&n.addClass("is-active");}),l.addClass(o);}}}}},{key:"_destroy",value:function(){this.currentPlugin&&this.currentPlugin.destroy(),r()(window).off(".zf.ResponsiveAccordionTabs");}}]),e;}(c.a);m.defaults={};}
3,function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !e||"object"!=typeof e&&"function"!=typeof e?t:e;}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e);}i.d(e,"a",function(){return g;});var a=i(0),r=i.n(a),l=i(4),u=i(1),c=i(2),h=i(14),d=i(13),f=i(12),p=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value" in n&&(n.writable=!0),Object.defineProperty(t,n.key,n);}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e;};}(),m={dropdown:{cssClass:"dropdown",plugin:h.a},drilldown:{cssClass:"drilldown",plugin:d.a},accordion:{cssClass:"accordion-menu",plugin:f.a}},g=function(t){function e(){return n(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments));}return o(e,t),p(e,[{key:"_setup",value:function(t,e){this.$element=r()(t),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 t={},e=this.rules.split(" "),n=0;n<e.length;n++){var s=e[n].split("-"),o=s.length>1?s[0]:"small",a=s.length>1?s[1]:s[0];null!==m[a]&&(t[o]=m[a]);}this.rules=t;}r.a.isEmptyObject(this.rules)||this._checkMediaQueries(),this.$element.attr("data-mutate",this.$element.attr("data-mutate")||i.i(u.b)(6,"responsive-menu"));}},{key:"_events",value:function(){var t=this;r()(window).on("changed.zf.mediaquery",function(){t._checkMediaQueries();});}},{key:"_checkMediaQueries",value:function(){var t,e=this;r.a.each(this.rules,function(e){l.a.atLeast(e)&&(t=e);}),t&&(this.currentPlugin instanceof this.rules[t].plugin||(r.a.each(m,function(t,i){e.$element.removeClass(i.cssClass);}),this.$element.addClass(this.rules[t].cssClass),this.currentPlugin&&this.currentPlugin.destroy(),this.currentPlugin=new this.rules[t].plugin(this.$element,{})));}},{key:"_destroy",value:function(){this.currentPlugin.destroy(),r()(window).off(".zf.ResponsiveMenu");}}]),e;}(c.a);g.defaults={};},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !e||"object"!=typeof e&&"function"!=typeof e?t:e;}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e);}i.d(e,"a",function(){return d;});var a=i(0),r=i.n(a),l=i(4),u=i(6),c=i(2),h=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value" in n&&(n.writable=!0),Object.defineProperty(t,n.key,n);}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e;};}(),d=function(t){function e(){return n(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments));}return o(e,t),h(e,[{key:"_setup",value:function(t,i){this.$element=r()(t),this.options=r.a.extend({},e.defaults,this.$element.data(),i),this.className="ResponsiveToggle",this._init(),this._events();}},{key:"_init",value:function(){l.a._init();var t=this.$element.data("responsive-toggle");if(t||console.error("Your tab bar needs an ID of a Menu as the value of data-tab-bar."),this.$targetMenu=r()("#"+t),this.$toggler=this.$element.find("[data-toggle]").filter(function(){var e=r()(this).data("toggle");return e===t||""===e;}),this.options=r.a.extend({},this.options,this.$targetMenu.data()),this.options.animate){var e=this.options.animate.split(" ");this.animationIn=e[0],this.animationOut=e[1]||null;}this._update();}},{key:"_events",value:function(){this._updateMqHandler=this._update.bind(this),r()(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 t=this;l.a.atLeast(this.options.hideFor)||(this.options.animate?this.$targetMenu.is(":hidden")?u.a.animateIn(this.$targetMenu,this.animationIn,function(){t.$element.trigger("toggled.zf.responsiveToggle"),t.$targetMenu.find("[data-mutate]").triggerHandler("mutateme.zf.trigger");}):u.a.animateOut(this.$targetMenu,this.animationOut,function(){t.$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"),r()(window).off("changed.zf.mediaquery",this._updateMqHandler);}}]),e;}(c.a);d.defaults={hideFor:"medium",animate:!1};}
3,function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !e||"object"!=typeof e&&"function"!=typeof e?t:e;}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e);}function a(){return /iP(ad|hone|od).*OS/.test(window.navigator.userAgent);}function r(){return /Android/.test(window.navigator.userAgent);}function l(){return a()||r();}i.d(e,"a",function(){return v;});var u=i(0),c=i.n(u),h=i(3),d=i(4),f=i(6),p=i(2),m=i(5),g=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value" in n&&(n.writable=!0),Object.defineProperty(t,n.key,n);}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e;};}(),v=function(t){function e(){return n(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments));}return o(e,t),g(e,[{key:"_setup",value:function(t,i){this.$element=t,this.options=c.a.extend({},e.defaults,this.$element.data(),i),this.className="Reveal",this._init(),m.a.init(c.a),h.a.register("Reveal",{ESCAPE:"close"});}},{key:"_init",value:function(){d.a._init(),this.id=this.$element.attr("id"),this.isActive=!1,this.cached={mq:d.a.current},this.isMobile=l(),this.$anchor=c()('[data-open="'+this.id+'"]').length?c()('[data-open="'+this.id+'"]'):c()('[data-toggle="'+this.id+'"]'),this.$anchor.attr({"aria-controls":this.id,"aria-haspopup":!0,tabindex:0}),(this.options.fullScreen||this.$element.hasClass("full"))&&(this.options.fullScreen=!0,this.options.overlay=!1),this.options.overlay&&!this.$overlay&&(this.$overlay=this._makeOverlay(this.id)),this.$element.attr({role:"dialog","aria-hidden":!0,"data-yeti-box":this.id,"data-resize":this.id}),this.$overlay?this.$element.detach().appendTo(this.$overlay):(this.$element.detach().appendTo(c()(this.options.appendTo)),this.$element.addClass("without-overlay")),this._events(),this.options.deepLink&&window.location.hash==="#"+this.id&&c()(window).one("load.zf.reveal",this.open.bind(this));}},{key:"_makeOverlay",value:function(){var t="";return this.options.additionalOverlayClasses&&(t=" "+this.options.additionalOverlayClasses),c()("<div></div>").addClass("reveal-overlay"+t).appendTo(this.options.appendTo);}},{key:"_updatePosition",value:function(){var t,e,i=this.$element.outerWidth(),n=c()(window).width(),s=this.$element.outerHeight(),o=c()(window).height();t="auto"===this.options.hOffset?parseInt((n-i)/2,10):parseInt(this.options.hOffset,10),e="auto"===this.options.vOffset?s>o?parseInt(Math.min(100,o/10),10):parseInt((o-s)/4,10):parseInt(this.options.vOffset,10),this.$element.css({top:e+"px"}),this.$overlay&&"auto"===this.options.hOffset||(this.$element.css({left:t+"px"}),this.$element.css({margin:"0px"}));}},{key:"_events",value:function(){var t=this,e=this;this.$element.on({"open.zf.trigger":this.open.bind(this),"close.zf.trigger":function(i,n){if(i.target===e.$element[0]||c()(i.target).parents("[data-closable]")[0]===n)return t.close.apply(t);},"toggle.zf.trigger":this.toggle.bind(this),"resizeme.zf.trigger":function(){e._updatePosition();}}),this.options.closeOnClick&&this.options.overlay&&this.$overlay.off(".zf.reveal").on("click.zf.reveal",function(t){t.target!==e.$element[0]&&!c.a.contains(e.$element[0],t.target)&&c.a.contains(document,t.target)&&e.close();}),this.options.deepLink&&c()(window).on("popstate.zf.reveal:"+this.id,this._handleState.bind(this));}},{key:"_handleState",value:function(t){window.location.hash!=="#"+this.id||this.isActive?this.close():this.open();}},{key:"open",value:function(){function t(){n.isMobile?(n.originalScrollPos||(n.originalScrollPos=window.pageYOffset),c()("html, body").addClass("is-reveal-open")):c()("body").addClass("is-reveal-open");}var e=this;if(this.options.deepLink){var i="#"+this.id;window.history.pushState?this.options.updateHistory?window.history.pushState({},"",i):window.history.replaceState({},"",i):window.location.hash=i;}this.isActive=!0,this.$element.css({visibility:"hidden"}).show().scrollTop(0),this.options.overlay&&this.$overlay.css({visibility:"hidden"}).show(),this._updatePosition(),this.$element.hide().css({visibility:""}),this.$overlay&&(this.$overlay.css({visibility:""}).hide(),this.$element.hasClass("fast")?this.$overlay.addClass("fast"):this.$element.hasClass("slow")&&this.$overlay.addClass("slow")),this.options.multipleOpened||this.$element.trigger("closeme.zf.reveal",this.id);var n=this;if(this.options.animationIn){var s=function(){n.$element.attr({"aria-hidden":!1,tabindex:-1}).focus(),t(),h.a.trapFocus(n.$element);};this.options.overlay&&f.a.animateIn(this.$overlay,"fade-in"),f.a.animateIn(this.$element,this.options.animationIn,function(){e.$element&&(e.focusableElements=h.a.findFocusable(e.$element),s());});}else this.options.overlay&&this.$overlay.show(0),this.$element.show(this.options.showDelay);this.$element.attr({"aria-hidden":!1,tabindex:-1}).focus(),h.a.trapFocus(this.$element),t(),this._extraHandlers(),this.$element.trigger("open.zf.reveal");}},{key:"_extraHandlers",value:function(){var t=this;this.$element&&(this.focusableElements=h.a.findFocusable(this.$element),this.options.overlay||!this.options.closeOnClick||this.options.fullScreen||c()("body").on("click.zf.reveal",function(e){e.target!==t.$element[0]&&!c.a.contains(t.$element[0],e.target)&&c.a.contains(document,e.target)&&t.close();}),this.options.closeOnEsc&&c()(window).on("keydown.zf.reveal",function(e){h.a.handleKey(e,"Reveal",{close:function(){t.options.closeOnEsc&&t.close();}});}));}},{key:"close",value:function(){function t(){e.isMobile?(0===c()(".reveal:visible").length&&c()("html, body").removeClass("is-reveal-open"),e.originalScrollPos&&(c()("body").scrollTop(e.originalScrollPos),e.originalScrollPos=null)):0===c()(".reveal:visible").length&&c()("body").removeClass("is-reveal-open"),h.a.releaseFocus(e.$element),e.$element.attr("aria-hidden",!0),e.$element.trigger("closed.zf.reveal");}if(!this.isActive||!this.$element.is(":visible"))return !1;var e=this;this.options.animationOut?(this.options.overlay&&f.a.animateOut(this.$overlay,"fade-out"),f.a.animateOut(this.$element,this.options.animationOut,t)):(this.$element.hide(this.options.hideDelay),this.options.overlay?this.$overlay.hide(0,t):t()),this.options.closeOnEsc&&c()(window).off("keydown.zf.reveal"),!this.options.overlay&&this.options.closeOnClick&&c()("body").off("
3click.zf.reveal"),this.$element.off("keydown.zf.reveal"),this.options.resetOnClose&&this.$element.html(this.$element.html()),this.isActive=!1,e.options.deepLink&&(window.history.replaceState?window.history.replaceState("",document.title,window.location.href.replace("#"+this.id,"")):window.location.hash=""),this.$anchor.focus();}},{key:"toggle",value:function(){this.isActive?this.close():this.open();}},{key:"_destroy",value:function(){this.options.overlay&&(this.$element.appendTo(c()(this.options.appendTo)),this.$overlay.hide().off().remove()),this.$element.hide().off(),this.$anchor.off(".zf"),c()(window).off(".zf.reveal:"+this.id);}}]),e;}(p.a);v.defaults={animationIn:"",animationOut:"",showDelay:0,hideDelay:0,closeOnClick:!0,closeOnEsc:!0,multipleOpened:!1,vOffset:"auto",hOffset:"auto",fullScreen:!1,btmOffsetPct:10,overlay:!0,resetOnClose:!1,deepLink:!1,updateHistory:!1,appendTo:"body",additionalOverlayClasses:""};},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !e||"object"!=typeof e&&"function"!=typeof e?t:e;}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e);}function a(t,e){return t/e;}function r(t,e,i,n){return Math.abs(t.position()[e]+t[n]()/2-i);}function l(t,e){return Math.log(e)/Math.log(t);}i.d(e,"a",function(){return b;});var u=i(0),c=i.n(u),h=i(3),d=i(6),f=i(1),p=i(2),m=i(10),g=i(5),v=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value" in n&&(n.writable=!0),Object.defineProperty(t,n.key,n);}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e;};}(),b=function(t){function e(){return n(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments));}return o(e,t),v(e,[{key:"_setup",value:function(t,i){this.$element=t,this.options=c.a.extend({},e.defaults,this.$element.data(),i),this.className="Slider",m.a.init(c.a),g.a.init(c.a),this._init(),h.a.register("Slider",{ltr:{ARROW_RIGHT:"increase",ARROW_UP:"increase",ARROW_DOWN:"decrease",ARROW_LEFT:"decrease",SHIFT_ARROW_RIGHT:"increase_fast",SHIFT_ARROW_UP:"increase_fast",SHIFT_ARROW_DOWN:"decrease_fast",SHIFT_ARROW_LEFT:"decrease_fast",HOME:"min",END:"max"},rtl:{ARROW_LEFT:"increase",ARROW_RIGHT:"decrease",SHIFT_ARROW_LEFT:"increase_fast",SHIFT_ARROW_RIGHT:"decrease_fast"}});}},{key:"_init",value:function(){this.inputs=this.$element.find("input"),this.handles=this.$element.find("[data-slider-handle]"),this.$handle=this.handles.eq(0),this.$input=this.inputs.length?this.inputs.eq(0):c()("#"+this.$handle.attr("aria-controls")),this.$fill=this.$element.find("[data-slider-fill]").css(this.options.vertical?"height":"width",0);(this.options.disabled||this.$element.hasClass(this.options.disabledClass))&&(this.options.disabled=!0,this.$element.addClass(this.options.disabledClass)),this.inputs.length||(this.inputs=c()().add(this.$input),this.options.binding=!0),this._setInitAttr(0),this.handles[1]&&(this.options.doubleSided=!0,this.$handle2=this.handles.eq(1),this.$input2=this.inputs.length>1?this.inputs.eq(1):c()("#"+this.$handle2.attr("aria-controls")),this.inputs[1]||(this.inputs=this.inputs.add(this.$input2)),!0,this._setInitAttr(1)),this.setHandles(),this._events();}},{key:"setHandles",value:function(){var t=this;this.handles[1]?this._setHandlePos(this.$handle,this.inputs.eq(0).val(),!0,function(){t._setHandlePos(t.$handle2,t.inputs.eq(1).val(),!0);}):this._setHandlePos(this.$handle,this.inputs.eq(0).val(),!0);}},{key:"_reflow",value:function(){this.setHandles();}},{key:"_pctOfBar",value:function(t){var e=a(t-this.options.start,this.options.end-this.options.start);switch(this.options.positionValueFunction){case "pow":e=this._logTransform(e);break;case "log":e=this._powTransform(e);}return e.toFixed(2);}},{key:"_value",value:function(t){switch(this.options.positionValueFunction){case "pow":t=this._powTransform(t);break;case "log":t=this._logTransform(t);}return (this.options.end-this.options.start)*t+this.options.start;}},{key:"_logTransform",value:function(t){return l(this.options.nonLinearBase,t*(this.options.nonLinearBase-1)+1);}},{key:"_powTransform",value:function(t){return (Math.pow(this.options.nonLinearBase,t)-1)/(this.options.nonLinearBase-1);}},{key:"_setHandlePos",value:function(t,e,n,s){if(!this.$element.hasClass(this.options.disabledClass)){e=parseFloat(e),e<this.options.start?e=this.options.start:e>this.options.end&&(e=this.options.end);var o=this.options.doubleSided;
3if(this.options.vertical&&!n&&(e=this.options.end-e),o)if(0===this.handles.index(t)){var r=parseFloat(this.$handle2.attr("aria-valuenow"));e=e>=r?r-this.options.step:e;}else{var l=parseFloat(this.$handle.attr("aria-valuenow"));e=e<=l?l+this.options.step:e;}var u=this,c=this.options.vertical,h=c?"height":"width",f=c?"top":"left",p=t[0].getBoundingClientRect()[h],m=this.$element[0].getBoundingClientRect()[h],g=this._pctOfBar(e),v=(m-p)*g,b=(100*a(v,m)).toFixed(this.options.decimal);e=parseFloat(e.toFixed(this.options.decimal));var y={};if(this._setValues(t,e),o){var w,_=0===this.handles.index(t),$=~~(100*a(p,m));if(_)y[f]=b+"%",w=parseFloat(this.$handle2[0].style[f])-b+$,s&&"function"==typeof s&&s();else{var k=parseFloat(this.$handle[0].style[f]);w=b-(isNaN(k)?(this.options.initialStart-this.options.start)/((this.options.end-this.options.start)/100):k)+$;}y["min-"+h]=w+"%";}this.$element.one("finished.zf.animate",function(){u.$element.trigger("moved.zf.slider",[t]);});var C=this.$element.data("dragging")?1e3/60:this.options.moveTime;i.i(d.b)(C,t,function(){isNaN(b)?t.css(f,100*g+"%"):t.css(f,b+"%"),u.options.doubleSided?u.$fill.css(y):u.$fill.css(h,100*g+"%");}),clearTimeout(u.timeout),u.timeout=setTimeout(function(){u.$element.trigger("changed.zf.slider",[t]);},u.options.changedDelay);}}},{key:"_setInitAttr",value:function(t){var e=0===t?this.options.initialStart:this.options.initialEnd,n=this.inputs.eq(t).attr("id")||i.i(f.b)(6,"slider");this.inputs.eq(t).attr({id:n,max:this.options.end,min:this.options.start,step:this.options.step}),this.inputs.eq(t).val(e),this.handles.eq(t).attr({role:"slider","aria-controls":n,"aria-valuemax":this.options.end,"aria-valuemin":this.options.start,"aria-valuenow":e,"aria-orientation":this.options.vertical?"vertical":"horizontal",tabindex:0});}},{key:"_setValues",value:function(t,e){var i=this.options.doubleSided?this.handles.index(t):0;this.inputs.eq(i).val(e),t.attr("aria-valuenow",e);}},{key:"_handleEvent",value:function(t,e,n){var s,o;if(n)s=this._adjustValue(null,n),o=!0;else{t.preventDefault();var l=this,u=this.options.vertical,h=u?"height":"width",d=u?"top":"left",p=u?t.pageY:t.pageX,m=(this.$handle[0].getBoundingClientRect()[h],this.$element[0].getBoundingClientRect()[h]),g=u?c()(window).scrollTop():c()(window).scrollLeft(),v=this.$element.offset()[d];t.clientY===t.pageY&&(p+=g);var b,y=p-v;b=y<0?0:y>m?m:y;var w=a(b,m);if(s=this._value(w),i.i(f.a)()&&!this.options.vertical&&(s=this.options.end-s),s=l._adjustValue(null,s),o=!1,!e)e=r(this.$handle,d,b,h)<=r(this.$handle2,d,b,h)?this.$handle:this.$handle2;}this._setHandlePos(e,s,o);}},{key:"_adjustValue",value:function(t,e){var i,n,s,o,a=this.options.step,r=parseFloat(a/2);return i=t?parseFloat(t.attr("aria-valuenow")):e,n=i%a,s=i-n,o=s+a,0===n?i:i=i>=s+r?o:s;}},{key:"_events",value:function(){this._eventsForHandle(this.$handle),this.handles[1]&&this._eventsForHandle(this.$handle2);}},{key:"_eventsForHandle",value:function(t){var e,i=this;if(this.inputs.off("change.zf.slider").on("change.zf.slider",function(t){var e=i.inputs.index(c()(this));i._handleEvent(t,i.handles.eq(e),c()(this).val());}),this.options.clickSelect&&this.$element.off("click.zf.slider").on("click.zf.slider",function(t){if(i.$element.data("dragging"))return !1;c()(t.target).is("[data-slider-handle]")||(i.options.doubleSided?i._handleEvent(t):i._handleEvent(t,i.$handle));}),this.options.draggable){this.handles.addTouch();var n=c()("body");t.off("mousedown.zf.slider").on("mousedown.zf.slider",function(s){t.addClass("is-dragging"),i.$fill.addClass("is-dragging"),i.$element.data("dragging",!0),e=c()(s.currentTarget),n.on("mousemove.zf.slider",function(t){t.preventDefault(),i._handleEvent(t,e);}).on("mouseup.zf.slider",function(s){i._handleEvent(s,e),t.removeClass("is-dragging"),i.$fill.removeClass("is-dragging"),i.$element.data("dragging",!1),n.off("mousemove.zf.slider mouseup.zf.slider");});}).on("selectstart.zf.slider touchmove.zf.slider",function(t){t.preventDefault();});}t.off("keydown.zf.slider").on("keydown.zf.slider",function(t){var e,n=c()(this),s=i.options.doubleSided?i.handles.index(n):0,o=parseFloat(i.inputs.eq(s).val());h.a.handleKey(t,"Slider",{decrease:function(){e=o-i.options.step;},increase:function(){e=o+i.options.step;},decrease_fast:function(){e=o-10*i.options.step;},increase_fast:function(){e=o+10*i.options.step;},min:function(){e=i.options.start;},max:function(){e=i.options.end;},handled:function(){t.preventDefault(),i._setHandlePos(n,e,!0);}});});}},{key:"_destroy",value:function(){this.handles.off(".zf.slider"),this.inputs.off(".zf.slider"),this.$element.off(".zf.slider"),clearTimeout(this.timeout);}}]),e;}(p.a);b.defaults={start:0,end:100,step:1,initialStart:0,initialEnd:100,binding:!1,clickSelect:!0,vertical:!1,draggable:!0,disabled:!1,doubleSided:!1,decimal
3:2,moveTime:200,disabledClass:"disabled",invertVertical:!1,changedDelay:500,nonLinearBase:5,positionValueFunction:"linear"};},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !e||"object"!=typeof e&&"function"!=typeof e?t:e;}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e);}function a(t){return parseInt(window.getComputedStyle(document.body,null).fontSize,10)*t;}i.d(e,"a",function(){return p;});var r=i(0),l=i.n(r),u=i(1),c=i(4),h=i(2),d=i(5),f=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value" in n&&(n.writable=!0),Object.defineProperty(t,n.key,n);}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e;};}(),p=function(t){function e(){return n(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments));}return o(e,t),f(e,[{key:"_setup",value:function(t,i){this.$element=t,this.options=l.a.extend({},e.defaults,this.$element.data(),i),this.className="Sticky",d.a.init(l.a),this._init();}},{key:"_init",value:function(){c.a._init();var t=this.$element.parent("[data-sticky-container]"),e=this.$element[0].id||i.i(u.b)(6,"sticky"),n=this;t.length?this.$container=t:(this.wasWrapped=!0,this.$element.wrap(this.options.container),this.$container=this.$element.parent()),this.$container.addClass(this.options.containerClass),this.$element.addClass(this.options.stickyClass).attr({"data-resize":e,"data-mutate":e}),""!==this.options.anchor&&l()("#"+n.options.anchor).attr({"data-mutate":e}),this.scrollCount=this.options.checkEvery,this.isStuck=!1,l()(window).one("load.zf.sticky",function(){n.containerHeight="none"==n.$element.css("display")?0:n.$element[0].getBoundingClientRect().height,n.$container.css("height",n.containerHeight),n.elemHeight=n.containerHeight,""!==n.options.anchor?n.$anchor=l()("#"+n.options.anchor):n._parsePoints(),n._setSizes(function(){var t=window.pageYOffset;n._calc(!1,t),n.isStuck||n._removeSticky(!(t>=n.topPoint));}),n._events(e.split("-").reverse().join("-"));});}},{key:"_parsePoints",value:function(){for(var t=""==this.options.topAnchor?1:this.options.topAnchor,e=""==this.options.btmAnchor?document.documentElement.scrollHeight:this.options.btmAnchor,i=[t,e],n={},s=0,o=i.length;s<o&&i[s];s++){var a;if("number"==typeof i[s])a=i[s];else{var r=i[s].split(":"),u=l()("#"+r[0]);a=u.offset().top,r[1]&&"bottom"===r[1].toLowerCase()&&(a+=u[0].getBoundingClientRect().height);}n[s]=a;}this.points=n;}},{key:"_events",value:function(t){var e=this,i=this.scrollListener="scroll.zf."+t;this.isOn||(this.canStick&&(this.isOn=!0,l()(window).off(i).on(i,function(t){0===e.scrollCount?(e.scrollCount=e.options.checkEvery,e._setSizes(function(){e._calc(!1,window.pageYOffset);})):(e.scrollCount--,e._calc(!1,window.pageYOffset));})),this.$element.off("resizeme.zf.trigger").on("resizeme.zf.trigger",function(i,n){e._eventsHandler(t);}),this.$element.on("mutateme.zf.trigger",function(i,n){e._eventsHandler(t);}),this.$anchor&&this.$anchor.on("mutateme.zf.trigger",function(i,n){e._eventsHandler(t);}));}},{key:"_eventsHandler",value:function(t){var e=this,i=this.scrollListener="scroll.zf."+t;e._setSizes(function(){e._calc(!1),e.canStick?e.isOn||e._events(t):e.isOn&&e._pauseListeners(i);});}},{key:"_pauseListeners",value:function(t){this.isOn=!1,l()(window).off(t),this.$element.trigger("pause.zf.sticky");}},{key:"_calc",value:function(t,e){if(t&&this._setSizes(),!this.canStick)return this.isStuck&&this._removeSticky(!0),!1;e||(e=window.pageYOffset),e>=this.topPoint?e<=this.bottomPoint?this.isStuck||this._setSticky():this.isStuck&&this._removeSticky(!1):this.isStuck&&this._removeSticky(!0);}},{key:"_setSticky",value:function(){var t=this,e=this.options.stickTo,i="top"===e?"marginTop":"marginBottom",n="top"===e?"bottom":"top",s={};s[i]=this.options[i]+"em",s[e]=0,s[n]="auto",this.isStuck=!0,this.$element.removeClass("is-anchored is-at-"+n).addClass("is-stuck is-at-"+e).css(s).trigger("sticky.zf.stuckto:"+e),this.$element.on("transitionend webkitTransitionEnd oTransitionEnd otransitionend MSTransitionEnd",function(){t._setSizes();});}},{key:"_removeSticky",value:function(t){var e=this.options.stickTo,i="top"===e,n={},s=(this.points?this.points[1]-this.points[0]:this.anchorHeight)-this.elemHeight,o=i?"marginTop":"marginBottom",a=t?"top":"bottom";n[o]=0,n.bottom="auto",n.top=t?0:s,this.isStuck=!1,this.$element.removeClass("is-stuck is-at-"+e).addClass("is-anchored is-at-"+a).css(n).trigger("sticky.zf.unstuckfrom:"+a);}},{key:"_setSizes",value:function(t){this.canStick=c.a.is(this.options.stickyOn),this.canStick||t&&"function"==typeof t&&t();var e=this.$container[0].getBoundingClientRect().width,i=window.getComputedStyle(this.$container[0]),n=parseInt(i["padding-left"],10),s=parseInt(i["padding-right"],10);this.$anchor&&this.$anchor.length?this.anchorHeight=this.$anchor[0].getBoundingClientRect().height:this._parsePoints(),this.$element.css({"max-width":e-n-s+"px"});var o=this.$element[0].getBoundingClientRect().height||this.containerHeight;if("none"==this.$element.css("display")&&(o=0),this.containerHeight=o,this.$container.css({height:o}),this.elemHeight=o,!this.isStuck&&this.$element.hasClass("is-at-bottom")){var a=(this.points?this.points[1]-this.$container.offset().top:this.anchorHeight)-this.elemHeight;this.$element.css("top",a);}this._setBreakPoints(o,function(){t&&"function"==typeof t&&t();});}},{key:"_setBreakPoints",value:function(t,e){if(!this.canStick){if(!e||"function"!=typeof e)return !1;e();}var i=a(this.options.marginTop),n=a(this.options.marginBottom),s=this.points?this.points[0]:this.$anchor.offset().top,o=this.points?this.points[1]:s+this.anchorHeight,r=window.innerHeight;"top"===this.options.stickTo?(s-=i,o-=t+i):"bottom"===this.options.stickTo&&(s-=r-(t+n),o-=r-n),this.topPoint=s,this.bottomPoint=o,e&&"function"==typeof e&&e();}},{key:"_destroy",value:function(){this._removeSticky(!0),this.$element.removeClass(this.options.stickyClass+" is-anchored is-at-top").css({height:"",top:"",bottom:"","max-width":""}).off("resizeme.zf.trigger").off("mutateme.zf.trigger"),this.$anchor&&this.$anchor.length&&this.$anchor.off("change.zf.sticky"),l()(window).off(this.scrollListener),this.wasWrapped?this.$element.unwrap():this.$container.removeClass(this.options.containerClass).css({height:""});}}]),e;}(h.a);
3p.defaults={container:"<div data-sticky-container></div>",stickTo:"top",anchor:"",topAnchor:"",btmAnchor:"",marginTop:1,marginBottom:1,stickyOn:"medium",stickyClass:"sticky",containerClass:"sticky-container",checkEvery:-1};},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !e||"object"!=typeof e&&"function"!=typeof e?t:e;}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e);}i.d(e,"a",function(){return d;});var a=i(0),r=i.n(a),l=i(6),u=i(2),c=i(5),h=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value" in n&&(n.writable=!0),Object.defineProperty(t,n.key,n);}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e;};}(),d=function(t){function e(){return n(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments));}return o(e,t),h(e,[{key:"_setup",value:function(t,i){this.$element=t,this.options=r.a.extend({},e.defaults,t.data(),i),this.className="",this.className="Toggler",c.a.init(r.a),this._init(),this._events();}},{key:"_init",value:function(){var t;this.options.animate?(t=this.options.animate.split(" "),this.animationIn=t[0],this.animationOut=t[1]||null):(t=this.$element.data("toggler"),this.className="."===t[0]?t.slice(1):t);var e=this.$element[0].id;r()('[data-open="'+e+'"], [data-close="'+e+'"], [data-toggle="'+e+'"]').attr("aria-controls",e),this.$element.attr("aria-expanded",!this.$element.is(":hidden"));}},{key:"_events",value:function(){this.$element.off("toggle.zf.trigger").on("toggle.zf.trigger",this.toggle.bind(this));}},{key:"toggle",value:function(){this[this.options.animate?"_toggleAnimate":"_toggleClass"]();}},{key:"_toggleClass",value:function(){this.$element.toggleClass(this.className);var t=this.$element.hasClass(this.className);t?this.$element.trigger("on.zf.toggler"):this.$element.trigger("off.zf.toggler"),this._updateARIA(t),this.$element.find("[data-mutate]").trigger("mutateme.zf.trigger");}},{key:"_toggleAnimate",value:function(){var t=this;this.$element.is(":hidden")?l.a.animateIn(this.$element,this.animationIn,function(){t._updateARIA(!0),this.trigger("on.zf.toggler"),this.find("[data-mutate]").trigger("mutateme.zf.trigger");}):l.a.animateOut(this.$element,this.animationOut,function(){t._updateARIA(!1),this.trigger("off.zf.toggler"),this.find("[data-mutate]").trigger("mutateme.zf.trigger");});}},{key:"_updateARIA",value:function(t){this.$element.attr("aria-expanded",!!t);}},{key:"_destroy",value:function(){this.$element.off(".zf.toggler");}}]),e;}(u.a);d.defaults={animate:!1};},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !e||"object"!=typeof e&&"function"!=typeof e?t:e;}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e);}i.d(e,"a",function(){return p;});var a=i(0),r=i.n(a),l=i(1),u=i(4),c=i(5),h=i(15),d=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value" in n&&(n.writable=!0),Object.defineProperty(t,n.key,n);}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e;};}(),f=function t(e,i,n){null===e&&(e=Function.prototype);var s=Object.getOwnPropertyDescriptor(e,i);if(void 0===s){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,i,n);}if("value" in s)return s.value;var a=s.get;if(void 0!==a)return a.call(n);},p=function(t){function e(){return n(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments));}return o(e,t),d(e,[{key:"_setup",value:function(t,i){this.$element=t,this.options=r.a.extend({},e.defaults,this.$element.data(),i),this.className="Tooltip",this.isActive=!1,this.isClick=!1,c.a.init(r.a),this._init();}},{key:"_init",value:function(){u.a._init();var t=this.$element.attr("aria-describedby")||i.i(l.b)(6,"tooltip");this.options.tipText=this.options.tipText||this.$element.attr("title"),this.template=this.options.template?r()(this.options.template):this._buildTemplate(t),this.options.allowHtml?this.template.appendTo(document.body).html(this.options.tipText).hide():this.template.appendTo(document.body).text(this.options.tipText).hide(),this.$element.attr({title:"","aria-describedby":t,"data-yeti-box":t,"data-toggle":t,"data-resize":t}).addClass(this.options.triggerClass),f(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"_init",this).call(this),this._events();}},{key:"_getDefaultPosition",value:function(){var t=this.$element[0].className.match(/\b(top|left|right|bottom)\b/g);return t?t[0]:"top";}},{key:"_getDefaultAlignment",value:function(){return "center";}},{key:"_getHOffset",value:function(){return "left"===this.position||"right"===this.position?this.options.hOffset+this.options.tooltipWidth:this.options.hOffset;}},{key:"_getVOffset",value:function(){return "top"===this.position||"bottom"===this.position?this.options.vOffset+this.options.tooltipHeight:this.options.vOffset;}},{key:"_buildTemplate",value:function(t){var e=(this.options.tooltipClass+" "+this.options.positionClass+" "+this.options.templateClasses).trim();return r()("<div></div>").addClass(e).attr({role:"tooltip","aria-hidden":!0,"data-is-active":!1,"data-is-focus":!1,id:t});}},{key:"_setPosition",value:function(){f(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"_setPosition",this).call(this,this.$element,this.template);}},{key:"show",value:function(){if("all"!==this.options.showOn&&!u.a.is(this.options.showOn))return !1;var t=this;this.template.css("visibility","hidden").show(),this._setPosition(),this.template.removeClass("top bottom left right").addClass(this.position),this.template.removeClass("align-top align-bottom align-left align-right al
3ign-center").addClass("align-"+this.alignment),this.$element.trigger("closeme.zf.tooltip",this.template.attr("id")),this.template.attr({"data-is-active":!0,"aria-hidden":!1}),t.isActive=!0,this.template.stop().hide().css("visibility","").fadeIn(this.options.fadeInDuration,function(){}),this.$element.trigger("show.zf.tooltip");}},{key:"hide",value:function(){var t=this;this.template.stop().attr({"aria-hidden":!0,"data-is-active":!1}).fadeOut(this.options.fadeOutDuration,function(){t.isActive=!1,t.isClick=!1;}),this.$element.trigger("hide.zf.tooltip");}},{key:"_events",value:function(){var t=this,e=(this.template,!1);this.options.disableHover||this.$element.on("mouseenter.zf.tooltip",function(e){t.isActive||(t.timeout=setTimeout(function(){t.show();},t.options.hoverDelay));}).on("mouseleave.zf.tooltip",function(i){clearTimeout(t.timeout),(!e||t.isClick&&!t.options.clickOpen)&&t.hide();}),this.options.clickOpen?this.$element.on("mousedown.zf.tooltip",function(e){e.stopImmediatePropagation(),t.isClick||(t.isClick=!0,!t.options.disableHover&&t.$element.attr("tabindex")||t.isActive||t.show());}):this.$element.on("mousedown.zf.tooltip",function(e){e.stopImmediatePropagation(),t.isClick=!0;}),this.options.disableForTouch||this.$element.on("tap.zf.tooltip touchend.zf.tooltip",function(e){t.isActive?t.hide():t.show();}),this.$element.on({"close.zf.trigger":this.hide.bind(this)}),this.$element.on("focus.zf.tooltip",function(i){if(e=!0,t.isClick)return t.options.clickOpen||(e=!1),!1;t.show();}).on("focusout.zf.tooltip",function(i){e=!1,t.isClick=!1,t.hide();}).on("resizeme.zf.trigger",function(){t.isActive&&t._setPosition();});}},{key:"toggle",value:function(){this.isActive?this.hide():this.show();}},{key:"_destroy",value:function(){this.$element.attr("title",this.template.text()).off(".zf.trigger .zf.tooltip").removeClass("has-tip top right left").removeAttr("aria-describedby aria-haspopup data-disable-hover data-resize data-toggle data-tooltip data-yeti-box"),this.template.remove();}}]),e;}(h.a);p.defaults={disableForTouch:!1,hoverDelay:200,fadeInDuration:150,fadeOutDuration:150,disableHover:!1,templateClasses:"",tooltipClass:"tooltip",triggerClass:"has-tip",showOn:"small",template:"",tipText:"",touchCloseText:"Tap to close.",clickOpen:!0,positionClass:"",position:"auto",alignment:"auto",allowOverlap:!1,allowBottomOverlap:!1,vOffset:0,hOffset:0,tooltipHeight:14,tooltipWidth:12,allowHtml:!1};},function(t,e,i){t.exports=i(19);}]);;
4(function($,Drupal){Drupal.behaviors.foundationInit={attach:function(context,settings){$(context).foundation();}};})(jQuery,Drupal);;
5!function(n,e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):n.MotionUI=e(n.jQuery);}(this,function(n){"use strict";function e(e,a,r,u){function s(){e||a.hide(),m(),u&&u.apply(a);}function m(){a[0].style.transitionDuration=0,a.removeClass(d+" "+c+" "+r);}if(a=n(a).eq(0),a.length){if(null===o)return e?a.show():a.hide(),void u();var d=e?i[0]:i[1],c=e?t[0]:t[1];m(),a.addClass(r),a.css("transition","none"),requestAnimationFrame(function(){a.addClass(d),e&&a.show();}),requestAnimationFrame(function(){a[0].offsetWidth,a.css("transition",""),a.addClass(c);}),a.one("transitionend",s);}}!function(){Date.now||(Date.now=function(){return (new Date()).getTime();});for(var n=["webkit","moz"],e=0;e<n.length&&!window.requestAnimationFrame;++e){var i=n[e];window.requestAnimationFrame=window[i+"RequestAnimationFrame"],window.cancelAnimationFrame=window[i+"CancelAnimationFrame"]||window[i+"CancelRequestAnimationFrame"];}if(/iP(ad|hone|od).*OS 6/.test(window.navigator.userAgent)||!window.requestAnimationFrame||!window.cancelAnimationFrame){var t=0;window.requestAnimationFrame=function(n){var e=Date.now(),i=Math.max(t+16,e);return setTimeout(function(){n(t=i);},i-e);},window.cancelAnimationFrame=clearTimeout;}}();var i=["mui-enter","mui-leave"],t=["mui-enter-active","mui-leave-active"],o=function(){var n={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend"},e=window.document.createElement("div");for(var i in n)if("undefined"!=typeof e.style[i])return n[i];return null;}(),a={animateIn:function(n,i,t){e(!0,n,i,t);},animateOut:function(n,i,t){e(!1,n,i,t);}};return a;});;
6(function($,Drupal,once){Drupal.behaviors.menu={attach:function(context,settings){$(once('colombiatravel','html')).each(function(){let menu=document.getElementById('header');if(menu){let offset=menu.offsetTop;window.addEventListener('scroll',function(){if(window.scrollY>offset){if(!menu.classList.contains('header-menu-fixed')){let posicion=getComputedStyle(menu).position;if(posicion==='static'||posicion==='relative')menu.parentElement.style.paddingTop=menu.offsetHeight+'px';menu.classList.add('header-menu-fixed');}}else{if(menu.classList.contains('header-menu-fixed')){menu.classList.remove('header-menu-fixed');menu.parentElement.style.paddingTop='';}}},{passive:true});}});}};})(jQuery,Drupal,once);;
7!function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery"],i):"undefined"!=typeof exports?module.exports=i(require("jquery")):i(jQuery)}(function(i){"use strict";var e=window.Slick||{};(e=function(){var e=0;return function(t,o){var s,n=this;n.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:i(t),appendDots:i(t),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,t){return i('<button type="button" />').text(t+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},n.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,
vendor: 6,594 bytes, line 7
7sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},i.extend(n,n.initials),n.activeBreakpoint=null,n.animType=null,n.animProp=null,n.breakpoints=[],n.breakpointSettings=[],n.cssTransitions=!1,n.focussed=!1,n.interrupted=!1,n.hidden="hidden",n.paused=!0,n.positionProp=null,n.respondTo=null,n.rowCount=1,n.shouldClick=!0,n.$slider=i(t),n.$slidesCache=null,n.transformType=null,n.transitionType=null,n.visibilityChange="visibilitychange",n.windowWidth=0,n.windowTimer=null,s=i(t).data("slick")||{},n.options=i.extend({},n.defaults,o,s),n.currentSlide=n.options.initialSlide,n.originalSettings=n.options,void 0!==document.mozHidden?(n.hidden="mozHidden",n.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(n.hidden="webkitHidden",n.visibilityChange="webkitvisibilitychange"),n.autoPlay=i.proxy(n.autoPlay,n),n.autoPlayClear=i.proxy(n.autoPlayClear,n),n.autoPlayIterator=i.proxy(n.autoPlayIterator,n),n.changeSlide=i.proxy(n.changeSlide,n),n.clickHandler=i.proxy(n.clickHandler,n),n.selectHandler=i.proxy(n.selectHandler,n),n.setPosition=i.proxy(n.setPosition,n),n.swipeHandler=i.proxy(n.swipeHandler,n),n.dragHandler=i.proxy(n.dragHandler,n),n.keyHandler=i.proxy(n.keyHandler,n),n.instanceUid=e++,n.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,n.registerBreakpoints(),n.init(!0)}}()).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},e.prototype.addSlide=e.prototype.slickAdd=function(e,t,o){var s=this;if("boolean"==typeof t)o=t,t=null;else if(t<0||t>=s.slideCount)return!1;s.unload(),"number"==typeof t?0===t&&0===s.$slides.length?i(e).appendTo(s.$slideTrack):o?i(e).insertBefore(s.$slides.eq(t)):i(e).insertAfter(s.$slides.eq(t)):!0===o?i(e).prependTo(s.$slideTrack):i(e).appendTo(s.$slideTrack),s.$slides=s.$slideTrack.children(this.options.slide),s.$slideTrack.children(this.options.slide).detach(),s.$slideTrack.append(s.$slides),s.$slides.each(function(e,t){i(t).attr("data-slick-index",e)}),s.$slidesCache=s.$slides,s.reinit()},e.prototype.animateHeight=function(){var i=this;if(1===i.options.slidesToShow&&!0===i.options.adaptiveHeight&&!1===i.options.vertical){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.animate({height:e},i.options.speed)}},e.prototype.animateSlide=function(e,t){var o={},s=this;s.animateHeight(),!0===s.options.rtl&&!1===s.options.vertical&&(e=-e),!1===s.transformsEnabled?!1===s.options.vertical?s.$slideTrack.animate({left:e},s.options.speed,s.options.easing,t):s.$slideTrack.animate({top:e},s.options.speed,s.options.easing,t):!1===s.cssTransitions?(!0===s.options.rtl&&(s.currentLeft=-s.currentLeft),i({animStart:s.currentLeft}).animate({animStart:e},{duration:s.options.speed,easing:s.options.easing,step:function(i){i=Math.ceil(i),!1===s.options.vertical?(o[s.animType]="translate("+i+"px, 0px)",s.$slideTrack.css(o)):(o[s.animType]="translate(0px,"+i+"px)",s.$slideTrack.css(o))},complete:function(){t&&t.call()}})):(s.applyTransition(),e=Math.ceil(e),!1===s.options.vertical?o[s.animType]="translate3d("+e+"px, 0px, 0px)":o[s.animType]="translate3d(0px,"+e+"px, 0px)",s.$slideTrack.css(o),t&&setTimeout(function(){s.disableTransition(),t.call()},s.options.speed))},e.prototype.getNavTarget=function(){var e=this,t=e.options.asNavFor;return t&&null!==t&&(t=i(t).not(e.$slider)),t},e.prototype.asNavFor=function(e){var t=this.getNavTarget();null!==t&&"object"==typeof t&&t.each(function(){var t=i(this).slick("getSlick");t.unslicked||t.slideHandler(e,!0)})},e.prototype.applyTransition=function(i){var e=this,t={};!1===e.options.fade?t[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:t[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,!1===e.options.fade?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.autoPlay=function(){var i=this;i.autoPlayClear(),i.slideCount>i.options.slidesToShow&&(i.autoPlayTimer=setInterval(i.autoPlayIterator,i.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){var i=this;i.autoPlayTimer&&clearInterval(i.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var i=this,e=i.currentSlide+i.options.slidesToScroll;i.paused||i.interrupted||i.focussed||(!1===i.options.infinite&&(1===i.direction&&i.currentSlide+1===i.slideCount-1?i.direction=0:0===i.direction&&(e=i.currentSlide-i.options.slidesToScroll,i.currentSlide-1==0&&(i.direction=1))),i.slideHandler(e))},e.prototype.buildArrows=function(){var e=this;!0===e.options.arrows&&(e.$prevArrow=i(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=i(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),!0!==e.options.infinite&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},e.prototype.buildDots=function(){var e,t,o=this;if(!0===o.options.dots){for(o.$slider.addClass("slick-dotted"),t=i("<ul />").addClass(o.options.dotsClass),e=0;e<=o.getDotCount();e+=1)t.append(i("<li />").append(o.options.customPaging.call(this,o,e)));o.$dots=t.appendTo(o.options.appendDots),o.$dots.find("li").first().addClass("slick-active")}},e.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each(function(e,t){i(t).attr("data-slick-index",e).data("originalStyling",i(t).attr("style")||"")}),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?i('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),!0!==e.options.centerMode&&!0!==e.options.swipeToSlide||(e.options.slidesToScroll=1),i("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),!0===e.options.draggable&&e.$list.addClass("draggable")},e.prototype.buildRows=function(){var i,e,t,o,s,n,r,l=this;if(o=document.createDocumentFragment(),n=l.$slider.children(),l.o
vendor: 3,442 bytes, line 7
7ptions.rows>1){for(r=l.options.slidesPerRow*l.options.rows,s=Math.ceil(n.length/r),i=0;i<s;i++){var d=document.createElement("div");for(e=0;e<l.options.rows;e++){var a=document.createElement("div");for(t=0;t<l.options.slidesPerRow;t++){var c=i*r+(e*l.options.slidesPerRow+t);n.get(c)&&a.appendChild(n.get(c))}d.appendChild(a)}o.appendChild(d)}l.$slider.empty().append(o),l.$slider.children().children().children().css({width:100/l.options.slidesPerRow+"%",display:"inline-block"})}},e.prototype.checkResponsive=function(e,t){var o,s,n,r=this,l=!1,d=r.$slider.width(),a=window.innerWidth||i(window).width();if("window"===r.respondTo?n=a:"slider"===r.respondTo?n=d:"min"===r.respondTo&&(n=Math.min(a,d)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){s=null;for(o in r.breakpoints)r.breakpoints.hasOwnProperty(o)&&(!1===r.originalSettings.mobileFirst?n<r.breakpoints[o]&&(s=r.breakpoints[o]):n>r.breakpoints[o]&&(s=r.breakpoints[o]));null!==s?null!==r.activeBreakpoint?(s!==r.activeBreakpoint||t)&&(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e),l=s),e||!1===l||r.$slider.trigger("breakpoint",[r,l])}},e.prototype.changeSlide=function(e,t){var o,s,n,r=this,l=i(e.currentTarget);switch(l.is("a")&&e.preventDefault(),l.is("li")||(l=l.closest("li")),n=r.slideCount%r.options.slidesToScroll!=0,o=n?0:(r.slideCount-r.currentSlide)%r.options.slidesToScroll,e.data.message){case"previous":s=0===o?r.options.slidesToScroll:r.options.slidesToShow-o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide-s,!1,t);break;case"next":s=0===o?r.options.slidesToScroll:o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide+s,!1,t);break;case"index":var d=0===e.data.index?0:e.data.index||l.index()*r.options.slidesToScroll;r.slideHandler(r.checkNavigable(d),!1,t),l.children().trigger("focus");break;default:return}},e.prototype.checkNavigable=function(i){var e,t;if(e=this.getNavigableIndexes(),t=0,i>e[e.length-1])i=e[e.length-1];else for(var o in e){if(i<e[o]){i=t;break}t=e[o]}return i},e.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&(i("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",i.proxy(e.interrupt,e,!0)).off("mouseleave.slick",i.proxy(e.interrupt,e,!1)),!0===e.options.accessibility&&e.$dots.off("keydown.slick",e.keyHandler)),e.$slider.off("focus.slick blur.slick"),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide),!0===e.options.accessibility&&(e.$prevArrow&&e.$prevArrow.off("keydown.slick",e.keyHandler),e.$nextArrow&&e.$nextArrow.off("keydown.slick",e.keyHandler))),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.
7slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),i(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),!0===e.options.accessibility&&e.$list.off("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().off("click.slick",e.selectHandler),i(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),i(window).off("resize.slick.slick-"+e.instanceUid,e.resize),i("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),i(window).off("load.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",i.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",i.proxy(e.interrupt,e,!1))},e.prototype.cleanUpRows=function(){var i,e=this;e.options.rows>1&&((i=e.$slides.children().children()).removeAttr("style"),e.$slider.empty().append(i))},e.prototype.clickHandler=function(i){!1===this.shouldClick&&(i.stopImmediatePropagation(),i.stopPropagation(),i.preventDefault())},e.prototype.destroy=function(e){var t=this;t.autoPlayClear(),t.touchObject={},t.cleanUpEvents(),i(".slick-cloned",t.$slider).detach(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.$prevArrow.length&&(t.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove()),t.$nextArrow&&t.$nextArrow.length&&(t.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove()),t.$slides&&(t.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){i(this).attr("style",i(this).data("originalStyling"))}),t.$slideTrack.children(this.options.slide).detach(),t.$slideTrack.detach(),t.$list.detach(),t.$slider.append(t.$slides)),t.cleanUpRows(),t.$slider.removeClass("slick-slider"),t.$slider.removeClass("slick-initialized"),t.$slider.removeClass("slick-dotted"),t.unslicked=!0,e||t.$slider.trigger("destroy",[t])},e.prototype.disableTransition=function(i){var e=this,t={};t[e.transitionType]="",!1===e.options.fade?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.fadeSlide=function(i,e){var t=this;!1===t.cssTransitions?(t.$slides.eq(i).css({zIndex:t.options.zIndex}),t.$slides.eq(i).animate({opacity:1},t.options.speed,t.options.easing,e)):(t.applyTransition(i),t.$slides.eq(i).css({opacity:1,zIndex:t.options.zIndex}),e&&setTimeout(function(){t.disableTransition(i),e.call()},t.options.speed))},e.prototype.fadeSlideOut=function(i){var e=this;!1===e.cssTransitions?e.$slides.eq(i).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(i),e.$slides.eq(i).css({opacity:0,zIndex:e.options.zIndex-2}))},e.prototype.filterSlides=e.prototype.slickFilter=function(i){var e=this;null!==i&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(i).appendTo(e.$slideTrack),e.reinit())},e.prototype.focusHandler=function(){var e=this;e.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(t){t.stopImmediatePropagation();var o=i(this);setTimeout(function(){e.options.pauseOnFocus&&(e.focussed=o.is(":focus"),e.autoPlay())},0)})},e.prototype.getCurrent=e.prototype.slickCurrentSlide=function(){return this.currentSlide},e.prototype.getDotCount=function(){var i=this,e=0,t=0,o=0;if(!0===i.options.infinite)if(i.slideCount<=i.options.slidesToShow)++o;else for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else if(!0===i.options.centerMode)o=i.slideCount;else if(i.options.asNavFor)for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else o=1+Math.ceil((i.slideCount-i.options.slidesToShow)/i.options.slidesToScroll);return o-1},e.prototype.getLeft=function(i){var e,t,o,s,n=this,r=0;return n.slideOffset=0,t=n.$slides.first().outerHeight(!0),!0===n.options.infinite?(n.slideCount>n.options.slidesToShow&&(n.slideOffset=n.slideWidth*n.options.slidesToShow*-1,s=-1,!0===n.options.vertical&&!0===n.options.centerMode&&(2===n.options.slidesToShow?s=-1.5:1===n.options.slidesToShow&&(s=-2)),r=t*n.options.slidesToShow*s),n.slideCount%n.options.slidesToScroll!=0&&i+n.options.slidesToScroll>n.slideCount&&n.slideCount>n.options.slidesToShow&&(i>n.slideCount?(n.slideOffset=(n.options.slidesToShow-(i-n.slideCount))*n.slideWidth*-1,r=(n.options.slidesToShow-(i-n.slideCount))*t*-1):(n.slideOffset=n.slideCount%n.options.slidesToScroll*n.slideWidth*-1,r=n.slideCount%n.options.slidesToScroll*t*-1))):i+n.options.slidesToShow>n.slideCount&&(n.slideOffset=(i+n.options.slidesToShow-n.slideCount)*n.slideWidth,r=(i+n.options.slidesToShow-n.slideCount)*t),n.slideCount<=n.options.slidesToShow&&(n.slideOffset=0,r=0),!0===n.options.centerMode&&n.slideCount<=n.options.slidesToShow?n.slideOffset=n.slideWidth*Math.floor(n.options.slidesToShow)/2-n.slideWidth*n.slideCount/2:!0===n.options.centerMode&&!0===n.options.infinite?n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)-n.slideWidth:!0===n.options.centerMode&&(n.slideOffset=0,n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)),e=!1===n.options.vertical?i*n.slideWidth*-1+n.slideOffset:i*t*-1+r,!0===n.options.variableWidth&&(o=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+n.options.slidesToShow),e=!0===n.options.rtl?o[0]?-1*(n.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,!0===n.options.centerMode&&(o=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+n.options.slidesToShow+1),e=!0===n.options.rtl?o[0]?-1*(n.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,e+=(n.$list.width()-o.outerWidth())/2)),e},e.prototype.getOption=e.prototype.slickGetOption=function(i){return this.options[i]},e.prototype.getNavigableIndexes=function(){var i,e=this,t=0,o=0,s=[];for(!1===e.options.infinite?i=e.slideCount:(t=-1*e.options.slidesToScroll,o=-1*e.options.slidesToScroll,i=2*e.slideCount);t<i;)s.push(t),t=o+e.options.slidesToScroll,o+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return s},e.prototype.getSlick=function(){return this},e.prototype.getSlideCount=function(){var e,t,o=this;return t=!0===o.options.centerMode?o.slideWidth*Math.floor(o.options.slidesToShow/2):0,!0===o.options.swipeToSlide?(o.$slideTrack.find(".slick-slide").each(function(s,n){if(n.offsetLeft-t+i(n).outerWidth()/2>-1*o.swipeLeft)return e=n,!1}),Math.abs(i(e).attr("data-slick-index")-o.currentSlide)||1):o.options.slidesToScroll},e.prototype.goTo=e.prototype.slickGoTo=function(i,e){this.changeSlide({data:{message:"index",index:
7parseInt(i)}},e)},e.prototype.init=function(e){var t=this;i(t.$slider).hasClass("slick-initialized")||(i(t.$slider).addClass("slick-initialized"),t.buildRows(),t.buildOut(),t.setProps(),t.startLoad(),t.loadSlider(),t.initializeEvents(),t.updateArrows(),t.updateDots(),t.checkResponsive(!0),t.focusHandler()),e&&t.$slider.trigger("init",[t]),!0===t.options.accessibility&&t.initADA(),t.options.autoplay&&(t.paused=!1,t.autoPlay())},e.prototype.initADA=function(){var e=this,t=Math.ceil(e.slideCount/e.options.slidesToShow),o=e.getNavigableIndexes().filter(function(i){return i>=0&&i<e.slideCount});e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==e.$dots&&(e.$slides.not(e.$slideTrack.find(".slick-cloned")).each(function(t){var s=o.indexOf(t);i(this).attr({role:"tabpanel",id:"slick-slide"+e.instanceUid+t,tabindex:-1}),-1!==s&&i(this).attr({"aria-describedby":"slick-slide-control"+e.instanceUid+s})}),e.$dots.attr("role","tablist").find("li").each(function(s){var n=o[s];i(this).attr({role:"presentation"}),i(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+e.instanceUid+s,"aria-controls":"slick-slide"+e.instanceUid+n,"aria-label":s+1+" of "+t,"aria-selected":null,tabindex:"-1"})}).eq(e.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var s=e.currentSlide,n=s+e.options.slidesToShow;s<n;s++)e.$slides.eq(s).attr("tabindex",0);e.activateADA()},e.prototype.initArrowEvents=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},i.changeSlide),i.$nextArrow.off("click.slick").on("click.slick",{message:"next"},i.changeSlide),!0===i.options.accessibility&&(i.$prevArrow.on("keydown.slick",i.keyHandler),i.$nextArrow.on("keydown.slick",i.keyHandler)))},e.prototype.initDotEvents=function(){var e=this;!0===e.options.dots&&(i("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),!0===e.options.accessibility&&e.$dots.on("keydown.slick",e.keyHandler)),!0===e.options.dots&&!0===e.options.pauseOnDotsHover&&i("li",e.$dots).on("mouseenter.slick",i.proxy(e.interrupt,e,!0)).on("mouseleave.slick",i.proxy(e.interrupt,e,!1))},e.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",i.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",i.proxy(e.interrupt,e,!1)))},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"}
7,e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),i(document).on(e.visibilityChange,i.proxy(e.visibility,e)),!0===e.options.accessibility&&e.$list.on("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),i(window).on("orientationchange.slick.slick-"+e.instanceUid,i.proxy(e.orientationChange,e)),i(window).on("resize.slick.slick-"+e.instanceUid,i.proxy(e.resize,e)),i("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),i(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),i(e.setPosition)},e.prototype.initUI=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.show(),i.$nextArrow.show()),!0===i.options.dots&&i.slideCount>i.options.slidesToShow&&i.$dots.show()},e.prototype.keyHandler=function(i){var e=this;i.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===i.keyCode&&!0===e.options.accessibility?e.changeSlide({data:{message:!0===e.options.rtl?"next":"previous"}}):39===i.keyCode&&!0===e.options.accessibility&&e.changeSlide({data:{message:!0===e.options.rtl?"previous":"next"}}))},e.prototype.lazyLoad=function(){function e(e){i("img[data-lazy]",e).each(function(){var e=i(this),t=i(this).attr("data-lazy"),o=i(this).attr("data-srcset"),s=i(this).attr("data-sizes")||n.$slider.attr("data-sizes"),r=document.createElement("img");r.onload=function(){e.animate({opacity:0}
vendor: 5,619 bytes, line 7
7,100,function(){o&&(e.attr("srcset",o),s&&e.attr("sizes",s)),e.attr("src",t).animate({opacity:1},200,function(){e.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),n.$slider.trigger("lazyLoaded",[n,e,t])})},r.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),n.$slider.trigger("lazyLoadError",[n,e,t])},r.src=t})}var t,o,s,n=this;if(!0===n.options.centerMode?!0===n.options.infinite?s=(o=n.currentSlide+(n.options.slidesToShow/2+1))+n.options.slidesToShow+2:(o=Math.max(0,n.currentSlide-(n.options.slidesToShow/2+1)),s=n.options.slidesToShow/2+1+2+n.currentSlide):(o=n.options.infinite?n.options.slidesToShow+n.currentSlide:n.currentSlide,s=Math.ceil(o+n.options.slidesToShow),!0===n.options.fade&&(o>0&&o--,s<=n.slideCount&&s++)),t=n.$slider.find(".slick-slide").slice(o,s),"anticipated"===n.options.lazyLoad)for(var r=o-1,l=s,d=n.$slider.find(".slick-slide"),a=0;a<n.options.slidesToScroll;a++)r<0&&(r=n.slideCount-1),t=(t=t.add(d.eq(r))).add(d.eq(l)),r--,l++;e(t),n.slideCount<=n.options.slidesToShow?e(n.$slider.find(".slick-slide")):n.currentSlide>=n.slideCount-n.options.slidesToShow?e(n.$slider.find(".slick-cloned").slice(0,n.options.slidesToShow)):0===n.currentSlide&&e(n.$slider.find(".slick-cloned").slice(-1*n.options.slidesToShow))},e.prototype.loadSlider=function(){var i=this;i.setPosition(),i.$slideTrack.css({opacity:1}),i.$slider.removeClass("slick-loading"),i.initUI(),"progressive"===i.options.lazyLoad&&i.progressiveLazyLoad()},e.prototype.next=e.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},e.prototype.orientationChange=function(){var i=this;i.checkResponsive(),i.setPosition()},e.prototype.pause=e.prototype.slickPause=function(){var i=this;i.autoPlayClear(),i.paused=!0},e.prototype.play=e.prototype.slickPlay=function(){var i=this;i.autoPlay(),i.options.autoplay=!0,i.paused=!1,i.focussed=!1,i.interrupted=!1},e.prototype.postSlide=function(e){var t=this;t.unslicked||(t.$slider.trigger("afterChange",[t,e]),t.animating=!1,t.slideCount>t.options.slidesToShow&&t.setPosition(),t.swipeLeft=null,t.options.autoplay&&t.autoPlay(),!0===t.options.accessibility&&(t.initADA(),t.options.focusOnChange&&i(t.$slides.get(t.currentSlide)).attr("tabindex",0).focus()))},e.prototype.prev=e.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},e.prototype.preventDefault=function(i){i.preventDefault()},e.prototype.progressiveLazyLoad=function(e){e=e||1;var t,o,s,n,r,l=this,d=i("img[data-lazy]",l.$slider);d.length?(t=d.first(),o=t.attr("data-lazy"),s=t.attr("data-srcset"),n=t.attr("data-sizes")||l.$slider.attr("data-sizes"),(r=document.createElement("img")).onload=function(){s&&(t.attr("srcset",s),n&&t.attr("sizes",n)),t.attr("src",o).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===l.options.adaptiveHeight&&l.setPosition(),l.$slider.trigger("lazyLoaded",[l,t,o]),l.progressiveLazyLoad()},r.onerror=function(){e<3?setTimeout(function(){l.progressiveLazyLoad(e+1)},500):(t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),l.$slider.trigger("lazyLoadError",[l,t,o]),l.progressiveLazyLoad())},r.src=o):l.$slider.trigger("allImagesLoaded",[l])},e.prototype.refresh=function(e){var t,o,s=this;o=s.slideCount-s.options.slidesToShow,!s.options.infinite&&s.currentSlide>o&&(s.currentSlide=o),s.slideCount<=s.options.slidesToShow&&(s.currentSlide=0),t=s.currentSlide,s.destroy(!0),i.extend(s,s.initials,{currentSlide:t}),s.init(),e||s.changeSlide({data:{message:"index",index:t}},!1)},e.prototype.registerBreakpoints=function(){var e,t,o,s=this,n=s.options.responsive||null;if("array"===i.type(n)&&n.length){s.respondTo=s.options.respondTo||"window";for(e in n)if(o=s.breakpoints.length-1,n.hasOwnProperty(e)){for(t=n[e].breakpoint;o>=0;)s.breakpoints[o]&&s.breakpoints[o]===t&&s.breakpoints.splice(o,1),o--;s.breakpoints.push(t),s.breakpointSettings[t]=n[e].settings}s.breakpoints.sort(function(i,e){return s.options.mobileFirst?i-e:e-i})}},e.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},e.prototype.resize=function(){var e=this;i(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=i(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()},50))},e.prototype.removeSlide=e.prototype.slickRemove=function(i,e,t){var o=this;if(i="boolean"==typeof i?!0===(e=i)?0:o.slideCount-1:!0===e?--i:i,o.slideCount<1||i<0||i>o.slideCount-1)return!1;o.unload(),!0===t?o.$slideTrack.children().remove():o.$slideTrack.children(this.options.slide).eq(i).remove(),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slidesCache=o.$slides,o.reinit()},e.prototype.setCSS=function(i){var e,t,o=this,s={};
7!0===o.options.rtl&&(i=-i),e="left"==o.positionProp?Math.ceil(i)+"px":"0px",t="top"==o.positionProp?Math.ceil(i)+"px":"0px",s[o.positionProp]=i,!1===o.transformsEnabled?o.$slideTrack.css(s):(s={},!1===o.cssTransitions?(s[o.animType]="translate("+e+", "+t+")",o.$slideTrack.css(s)):(s[o.animType]="translate3d("+e+", "+t+", 0px)",o.$slideTrack.css(s)))},e.prototype.setDimensions=function(){var i=this;!1===i.options.vertical?!0===i.options.centerMode&&i.$list.css({padding:"0px "+i.options.centerPadding}):(i.$list.height(i.$slides.first().outerHeight(!0)*i.options.slidesToShow),!0===i.options.centerMode&&i.$list.css({padding:i.options.centerPadding+" 0px"})),i.listWidth=i.$list.width(),i.listHeight=i.$list.height(),!1===i.options.vertical&&!1===i.options.variableWidth?(i.slideWidth=Math.ceil(i.listWidth/i.options.slidesToShow),i.$slideTrack.width(Math.ceil(i.slideWidth*i.$slideTrack.children(".slick-slide").length))):!0===i.options.variableWidth?i.$slideTrack.width(5e3*i.slideCount):(i.slideWidth=Math.ceil(i.listWidth),i.$slideTrack.height(Math.ceil(i.$slides.first().outerHeight(!0)*i.$slideTrack.children(".slick-slide").length)));var e=i.$slides.first().outerWidth(!0)-i.$slides.first().width();!1===i.options.variableWidth&&i.$slideTrack.children(".slick-slide").width(i.slideWidth-e)},e.prototype.setFade=function(){var e,t=this;t.$slides.each(function(o,s){e=t.slideWidth*o*-1,!0===t.options.rtl?i(s).css({position:"relative",right:e,top:0,zIndex:t.options.zIndex-2,opacity:0}
7):i(s).css({position:"relative",left:e,top:0,zIndex:t.options.zIndex-2,opacity:0})}),t.$slides.eq(t.currentSlide).css({zIndex:t.options.zIndex-1,opacity:1})},e.prototype.setHeight=function(){var i=this;if(1===i.options.slidesToShow&&!0===i.options.adaptiveHeight&&!1===i.options.vertical){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.css("height",e)}},e.prototype.setOption=e.prototype.slickSetOption=function(){var e,t,o,s,n,r=this,l=!1;if("object"===i.type(arguments[0])?(o=arguments[0],l=arguments[1],n="multiple"):"string"===i.type(arguments[0])&&(o=arguments[0],s=arguments[1],l=arguments[2],"responsive"===arguments[0]&&"array"===i.type(arguments[1])?n="responsive":void 0!==arguments[1]&&(n="single")),"single"===n)r.options[o]=s;else if("multiple"===n)i.each(o,function(i,e){r.options[i]=e});else if("responsive"===n)for(t in s)if("array"!==i.type(r.options.responsive))r.options.responsive=[s[t]];else{for(e=r.options.responsive.length-1;e>=0;)r.options.responsive[e].breakpoint===s[t].breakpoint&&r.options.responsive.splice(e,1),e--;r.options.responsive.push(s[t])}l&&(r.unload(),r.reinit())},e.prototype.setPosition=function(){var i=this;i.setDimensions(),i.setHeight(),!1===i.options.fade?i.setCSS(i.getLeft(i.currentSlide)):i.setFade(),i.$slider.trigger("setPosition",[i])},e.prototype.setProps=function(){var i=this,e=document.body.style;i.positionProp=!0===i.options.vertical?"top":"left","top"===i.positionProp?i.$slider.addClass("slick-vertical"):i.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||!0===i.options.useCSS&&(i.cssTransitions=!0),i.options.fade&&("number"==typeof i.options.zIndex?i.options.zIndex<3&&(i.options.zIndex=3):i.options.zIndex=i.defaults.zIndex),void 0!==e.OTransform&&(i.animType="OTransform",i.transformType="-o-transform",i.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.MozTransform&&(i.animType="MozTransform",i.transformType="-moz-transform",i.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(i.animType=!1)),void 0!==e.webkitTransform&&(i.animType="webkitTransform",i.transformType="-webkit-transform",i.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.msTransform&&(i.animType="msTransform",i.transformType="-ms-transform",i.transitionType="msTransition",void 0===e.msTransform&&(i.animType=!1)),void 0!==e.transform&&!1!==i.animType&&(i.animType="transform",i.transformType="transform",i.transitionType="transition"),i.transformsEnabled=i.options.useTransform&&null!==i.animType&&!1!==i.animType},e.prototype.setSlideClasses=function(i){var e,t,o,s,n=this;if(t=n.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),n.$slides.eq(i).addClass("slick-current"),!0===n.options.centerMode){var r=n.options.slidesToShow%2==0?1:0;e=Math.floor(n.options.slidesToShow/2),!0===n.options.infinite&&(i>=e&&i<=n.slideCount-1-e?n.$slides.slice(i-e+r,i+e+1).addClass("slick-active").attr("aria-hidden","false"):(o=n.options.slidesToShow+i,t.slice(o-e+1+r,o+e+2).addClass("slick-active").attr("aria-hidden","false")),0===i?t.eq(t.length-1-n.options.slidesToShow).addClass("slick-center"):i===n.slideCount-1&&t.eq(n.options.slidesToShow).addClass("slick-center")),n.$slides.eq(i).addClass("slick-center")}else i>=0&&i<=n.slideCount-n.options.slidesToShow?n.$slides.slice(i,i+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):t.length<=n.options.slidesToShow?t.addClass("slick-active").attr("aria-hidden","false"):(s=n.slideCount%n.options.slidesToShow,o=!0===n.options.infinite?n.options.slidesToShow+i:i,n.options.slidesToShow==n.options.slidesToScroll&&n.slideCount-i<n.options.slidesToShow?t.slice(o-(n.options.slidesToShow-s),o+s).addClass("slick-active").attr("aria-hidden","false"):t.slice(o,o+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==n.options.lazyLoad&&"anticipated"!==n.options.lazyLoad||n.lazyLoad()},e.prototype.setupInfinite=function(){var e,t,o,s=this;if(!0===s.options.fade&&(s.options.centerMode=!1),!0===s.options.infinite&&!1===s.options.fade&&(t=null,s.slideCount>s.options.slidesToShow)){for(o=!0===s.options.centerMode?s.options.slidesToShow+1:s.options.slidesToShow,e=s.slideCount;e>s.slideCount-o;e-=1)t=e-1,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t-s.slideCount).prependTo(s.$slideTrack).addClass("slick-cloned");for(e=0;e<o+s.slideCount;e+=1)t=e,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t+s.slideCount).appendTo(s.$slideTrack).addClass("slick-cloned");s.$slideTrack.find(".slick-cloned").find("[id]").each(function(){i(this).attr("id","")})}},e.prototype.interrupt=function(i){var e=this;i||e.autoPlay(),e.interrupted=i},e.prototype.selectHandler=function(e){var t=this,o=i(e.target).is(".slick-slide")?i(e.target):i(e.target).parents(".slick-slide"),s=parseInt(o.attr("data-slick-index"));s||(s=0),t.slideCount<=t.options.slidesToShow?t.slideHandler(s,!1,!0):t.slideHandler(s)},e.prototype.slideHandler=function(i,e,t){var o,s,n,r,l,d=null,a=this;if(e=e||!1,!(!0===a.animating&&!0===a.options.waitForAnimate||!0===a.options.fade&&a.currentSlide===i))if(!1===e&&a.asNavFor(i),o=i,d=a.getLeft(o),r=a.getLeft(a.currentSlide),a.currentLeft=null===a.swipeLeft?r:a.swipeLeft,!1===a.options.infinite&&!1===a.options.centerMode&&(i<0||i>a.getDotCount()*a.options.slidesToScroll))!1===a.options.fade&&(o=a.currentSlide,!0!==t?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o));else if(!1===a.options.infinite&&!0===a.options.centerMode&&(i<0||i>a.slideCount-a.options.slidesToScroll))!1===a.options.fade&&(o=a.currentSlide,!0!==t?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o));else{if(a.options.autoplay&&clearInterval(a.autoPlayTimer),s=o<0?a.slideCount%a.options.slidesToScroll!=0?a.slideCount-a.slideCount%a.options.slidesToScroll:a.slideCount+
7o:o>=a.slideCount?a.slideCount%a.options.slidesToScroll!=0?0:o-a.slideCount:o,a.animating=!0,a.$slider.trigger("beforeChange",[a,a.currentSlide,s]),n=a.currentSlide,a.currentSlide=s,a.setSlideClasses(a.currentSlide),a.options.asNavFor&&(l=(l=a.getNavTarget()).slick("getSlick")).slideCount<=l.options.slidesToShow&&l.setSlideClasses(a.currentSlide),a.updateDots(),a.updateArrows(),!0===a.options.fade)return!0!==t?(a.fadeSlideOut(n),a.fadeSlide(s,function(){a.postSlide(s)})):a.postSlide(s),void a.animateHeight();!0!==t?a.animateSlide(d,function(){a.postSlide(s)}):a.postSlide(s)}},e.prototype.startLoad=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.hide(),i.$nextArrow.hide()),!0===i.options.dots&&i.slideCount>i.options.slidesToShow&&i.$dots.hide(),i.$slider.addClass("slick-loading")},e.prototype.swipeDirection=function(){var i,e,t,o,s=this;return i=s.touchObject.startX-s.touchObject.curX,e=s.touchObject.startY-s.touchObject.curY,t=Math.atan2(e,i),(o=Math.round(180*t/Math.PI))<0&&(o=360-Math.abs(o)),o<=45&&o>=0?!1===s.options.rtl?"left":"right":o<=360&&o>=315?!1===s.options.rtl?"left":"right":o>=135&&o<=225?!1===s.options.rtl?"right":"left":!0===s.options.verticalSwiping?o>=35&&o<=135?"down":"up":"vertical"},e.prototype.swipeEnd=function(i){var e,t,o=this;if(o.dragging=!1,o.swiping=!1,o.scrolling)return o.scrolling=!1,!1;if(o.interrupted=!1,o.shouldClick=!(o.touchObject.swipeLength>10),void 0===o.touchObject.curX)return!1;if(!0===o.touchObject.edgeHit&&o.$slider.trigger("edge",[o,o.swipeDirection()]),o.touchObject.swipeLength>=o.touchObject.minSwipe){switch(t=o.swipeDirection()){case"left":case"down":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide+o.getSlideCount()):o.currentSlide+o.getSlideCount(),o.currentDirection=0;break;case"right":case"up":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide-o.getSlideCount()):o.currentSlide-o.getSlideCount(),o.currentDirection=1}"vertical"!=t&&(o.slideHandler(e),o.touchObject={},o.$slider.trigger("swipe",[o,t]))}else o.touchObject.startX!==o.touchObject.curX&&(o.slideHandler(o.currentSlide),o.touchObject={})},e.prototype.swipeHandler=function(i){var e=this;if(!(!1===e.options.swipe||"ontouchend"in document&&!1===e.options.swipe||!1===e.options.draggable&&-1!==i.type.indexOf("mouse")))switch(e.touchObject.fingerCount=i.originalEvent&&void 0!==i.originalEvent.touches?i.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,!0===e.options.verticalSwiping&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),i.data.action){case"start":e.swipeStart(i);break;case"move":e.swipeMove(i);break;case"end":e.swipeEnd(i)}},e.prototype.swipeMove=function(i){var e,t,o,s,n,r,l=this;return n=void 0!==i.originalEvent?i.originalEvent.touches:null,!(!l.dragging||l.scrolling||n&&1!==n.length)&&(e=l.getLeft(l.currentSlide),l.touchObject.curX=void 0!==n?n[0].pageX:i.clientX,l.touchObject.curY=void 0!==n?n[0].pageY:i.clientY,l.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(l.touchObject.curX-l.touchObject.startX,2))),r=Math.round(Math.sqrt(Math.pow(l.touchObject.curY-l.touchObject.startY,2))),!l.options.verticalSwiping&&!l.swiping&&r>4?(l.scrolling=!0,!1):(!0===l.options.verticalSwiping&&(l.touchObject.swipeLength=r),t=l.swipeDirection(),void 0!==i.originalEvent&&l.touchObject.swipeLength>4&&(l.swiping=!0,i.preventDefault()),s=(!1===l.options.rtl?1:-1)*(l.touchObject.curX>l.touchObject.startX?1:-1),!0===l.options.verticalSwiping&&(s=l.touchObject.curY>l.touchObject.startY?1:-1),o=l.touchObject.swipeLength,l.touchObject.edgeHit=!1,!1===l.options.infinite&&(0===l.currentSlide&&"right"===t||l.currentSlide>=l.getDotCount()&&"left"===t)&&(o=l.touchObject.swipeLength*l.options.edgeFriction,l.touchObject.edgeHit=!0),!1===l.options.vertical?l.swipeLeft=e+o*s:l.swipeLeft=e+o*(l.$list.height()/l.listWidth)*s,!0===l.options.verticalSwiping&&(l.swipeLeft=e+o*s),!0!==l.options.fade&&!1!==l.options.touchMove&&(!0===l.animating?(l.swipeLeft=null,!1):void l.setCSS(l.swipeLeft))))},e.prototype.swipeStart=function(i){var e,t=this;if(t.interrupted=!0,1!==t.touchObject.fingerCount||t.slideCount<=t.options.slidesToShow)return t.touchObject={},!1;void 0!==i.originalEvent&&void 0!==i.originalEvent.touches&&(e=i.originalEvent.touches[0]),t.touchObject.startX=t.touchObject.curX=void 0!==e?e.pageX:i.clientX,t.touchObject.startY=t.touchObject.curY=void 0!==e?e.pageY:i.clientY,t.dragging=!0},e.prototype.unfilterSlides=e.prototype.slickUnfilter=function(){var i=this;null!==i.$slidesCache&&(i.unload(),i.$slideTrack.children(this.options.slide).detach(),i.$slidesCache.appendTo(i.$slideTrack),i.reinit())},e.prototype.unload=function(){var e=this;i(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")}
7,e.prototype.unslick=function(i){var e=this;e.$slider.trigger("unslick",[e,i]),e.destroy()},e.prototype.updateArrows=function(){var i=this;Math.floor(i.options.slidesToShow/2),!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&!i.options.infinite&&(i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===i.currentSlide?(i.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):i.currentSlide>=i.slideCount-i.options.slidesToShow&&!1===i.options.centerMode?(i.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):i.currentSlide>=i.slideCount-1&&!0===i.options.centerMode&&(i.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},e.prototype.updateDots=function(){var i=this;null!==i.$dots&&(i.$dots.find("li").removeClass("slick-active").end(),i.$dots.find("li").eq(Math.floor(i.currentSlide/i.options.slidesToScroll)).addClass("slick-active"))},e.prototype.visibility=function(){var i=this;i.options.autoplay&&(document[i.hidden]?i.interrupted=!0:i.interrupted=!1)},i.fn.slick=function(){var i,t,o=this,s=arguments[0],n=Array.prototype.slice.call(arguments,1),r=o.length;for(i=0;i<r;i++)if("object"==typeof s||void 0===s?o[i].slick=new e(o[i],s):t=o[i].slick[s].apply(o[i].slick,n),void 0!==t)return t;return o}});
8;
9/**
10 * Parte de routed_page.js que se aplica en todo el sitio (sep-2026).
11 *
12 * routed_page.js es de /enrutados y ahora solo se adjunta allí (librería
13 * colombiatravel/routed_page). Estas líneas estaban fuera de su if (#gcc) y
14 * actuaban en cualquier página con un video lazy de video_embed_field, así que
15 * siguen en colombiatravel/global, en la misma posición y con el mismo código.
16 * En /enrutados no corren aquí: routed_page.js completo las ejecuta después de
17 * mover los bloques (el .remove() de esos bloques borra los eventos enlazados).
18 */
19jQuery(document).ready(function($) {
20  if ($('#gcc').length || $('#gcc1').length) {
21    return;
22  }
23  //LazyLoad Reair Bug Slider 
24  $('.video-embed-field-lazy .video-embed-field-lazy-play').on('click', function() {
25      var videolazy = $(this).parent().attr("data-video-embed-field-lazy");
26      $(this).parent().html(videolazy);		
27  });		
28  
29    $('.video-embed-field-lazy img').each(function() {
30        $('.video-embed-field-lazy img').attr('width', '100%');
31        $('.video-embed-field-lazy img').attr('alt', 'Enrutados');
32        $('.video-embed-field-lazy img').attr('height', 'auto');
33  });
34});
35;
36$reloadPage = 0;
37/**
38 * @file
39 * Placeholder file for custom sub-theme behaviors.
40 *
41 */
42jQuery(window).on('load', function () {
43	  if (jQuery(".super-banner").length > 0) {
44		var imageHeightVideo = jQuery(".super-banner .owl-carousel .owl-wrapper-outer .owl-wrapper .owl-item img").height();
45		jQuery(".super-banner .video-js").each(function () {
46			this.style.setProperty("max-height", imageHeightVideo + "px", "important");
47			this.style.setProperty("min-height", imageHeightVideo + "px", "important");
48		});
49	}
50});
51(function ($, Drupal, once) {
52
53  // Ver mas y ver menos interna macro region
54  jQuery('.block-views-block-macro-regiones-interna-block-1 .actionLessHidden').click(function(event) {
55    jQuery('.block-views-block-macro-regiones-interna-block-1 .actionMoreHidden').removeClass('hidden');
56    jQuery('.block-views-block-macro-regiones-interna-block-1 .actionLessHidden, .block-views-block-macro-regiones-interna-block-1 .views-field-field-contenido-macroregion').addClass('hidden');
57  });
58  jQuery('.block-views-block-macro-regiones-interna-block-1 .actionMoreHidden').click(function(event) {
59    jQuery('.block-views-block-macro-regiones-interna-block-1 .actionMoreHidden').addClass('hidden');
60    jQuery('.block-views-block-macro-regiones-interna-block-1 .actionLessHidden, .block-views-block-macro-regiones-interna-block-1 .views-field-field-contenido-macroregion').removeClass('hidden');
61  });
62
63  /* evento click para cerrar el banner de publicidad */
64  jQuery(document).on('click', '.adserver-close-button-mb', function () {
65    const $section = jQuery(this).closest('section');
66    if($section.length && $section.hasClass('hidden') === false) {
67      $section.addClass('hidden');
68    }
69  });
70
71document.addEventListener("DOMContentLoaded", function () {
72  const currentPath = window.location.pathname;
73
74  // Normaliza la ruta actual quitando el ID del usuario
75  let normalizedPath = currentPath;
76  if (/\/user\/\d+\/edit/.test(currentPath)) {
77    normalizedPath = '/user/edit';
78  } else if (/\/user\/\d+/.test(currentPath)) {
79    normalizedPath = '/user';
80  }
81
82  const menuItems = document.querySelectorAll("ul.menu li a");
83
84  menuItems.forEach(link => {
85    const drupalPath = link.getAttribute("data-drupal-link-system-path");
86
87    if (normalizedPath === `/${drupalPath}`) {
88      link.parentElement.classList.add("is-active");
89    }
90  });
91});
92
93
94
95  jQuery( document ).ready(function() {
96    jQuery(".comparteUl").find("li").each(function() {
97      jQuery( this ).find('a').attr( "href",jQuery( this ).find('a').attr( "href" )+window.location.href);
98    });
99    //Se agrega movimiento al scroll a un div con id=title-narrativa en especial
100    const ulrPathName = window.location.pathname;
101    if(ulrPathName === '/es/belleza' || ulrPathName === '/en/beauty'){
102
103        const tituloVideo = $('#title-narrativa');
104        var scrollToPosition;
105        if (tituloVideo.length > 0) {
106          var screenWidth = $(window).width();
107          if(screenWidth < 638)
108            scrollToPosition = tituloVideo.offset().top;
109          else
110            scrollToPosition = tituloVideo.offset().top - 100; // - (windowHeight - titleHeight + 100) / 2;
111
112          $('html, body').animate({
113              scrollTop: scrollToPosition
114          }, 1000);
115      }
116    };
117
118    jQuery('.pop-canada').click(function(event){
119      jQuery(".mm-page").css('z-index',9999999999);
120          jQuery( "#bloque_canada_url footer" ).show( "slow", function() {
121
122        var valorHtml = jQuery('article.url-canada-custum div').html();
123        if (typeof valorHtml === 'undefined' || valorHtml.trim() === '') {
124          valorHtml = 'https://www.travelstride.com/pl/colombia';
125        }
126        jQuery('.link-modal-canada a').attr('href-attr', valorHtml);
127        });
128      });
129      jQuery('.close-canada').click(function(event){
130      jQuery(".mm-page").css('z-index',1);
131          jQuery( "#bloque_canada_url footer" ).hide( "hide", function() {
132
133        });
134      });
135	   fetch('https://www.cloudflare.com/cdn-cgi/trace')
136	  	.then(response => response.text())
137		  .then(data => {
138			const country = data.match(/loc=([A-Z]{2})/)[1];
139			if (country === 'CA' || country === 'US') {
140			  jQuery( "#bloque_canada_url" ).show( "slow", function() {
141				});
142			}
143	  });
144
145	  jQuery('#tyc_canada').on('click', function() {
146		  const enlace = jQuery('.link-modal-canada a');
147    	if ($(this).is(':checked')) {
148		  const hrefAttrValue = enlace.attr('href-attr');
149		  jQuery('.link-modal-canada a').removeClass('disable')
150             .css('pointer-events', 'auto')
151             .attr('href', hrefAttrValue);
152
153		} else {
154		  jQuery('.link-modal-canada a').addClass('disable')
155             .css('pointer-events', 'none')
156             .removeAttr('href');
157		}
158	  });
159  });
160
161  /**
162  *
163  * Views Name: Oferta Hotelera.
164  *  |- Block Name: Bloque
165  *     |- System Name: oferta_hotelera
166  *
167  */
168  Drupal.behaviors.sliderProgresHotels = {
169    attach: function (context) {
170      if($('.item-oferta-hoteleras').length) {
171        $(once('progress-bar', '.item-oferta-hoteleras', context)).each(function () {
172          if ($(this).find('.container-progress-bar').length === 0) {
173            $(this).append('<div class="container-progress-bar"><div class="progress-bar"><div class="progress"></div></div></div>');
174          }
175        });
176
177        if($().slick) {
178          createSliderHotels(context);
179        } else {
180          setTimeout(function () {
181            createSliderHotels(context);
182          }, 100);
183        }
184
185        // Actualizar barra de progreso solo una vez por contexto
186        $(once('progress-handler', '.item-oferta-hoteleras ul', context)).each(function () {
187          const $slickElement = $(this);
188          const progressBar = $slickElement.closest('.item-oferta-hoteleras').find('.progress');
189          const totalSlides = $slickElement.slick('getSlick').slideCount;
190
191          progressBar.css('width', '0%');
192
193          $slickElement.on('beforeChange', function (event, slick, currentSlide, nextSlide) {
194            let progressPercentage = ((nextSlide + 1) / totalSlides) * 100;
195            if (nextSlide === 0) {
196              progressPercentage = 0;
197            }
198            progressBar.css('width', progressPercentage + '%');
199          });
200        });
201
202        // Manejar hover solo una vez por contexto
203        $(once('hover-effect', '.row-oferta-hotelera', context)).hover(
204          function () {
205            $(this).find('.views-field-field-url-bloque-hoteles, .views-field-body').stop(true, true).fadeIn(400);
206          },
207          function () {
208            $(this).find('.views-field-field-url-bloque-hoteles, .views-field-body').stop(true, true).fadeOut(400);
209          }
210        );
211      }
212    },
213  }
214
215  function createSliderHotels(context){
216    $(once('slick-init', '.item-oferta-hoteleras ul', context)).slick({
217      infinite: false,
218      speed: 300,
219      autoplay: false,
220      slidesToShow: 2,
221      slidesToScroll: 2,
222      variableWidth: false,
223      mouseDrag: true,
224      responsive: [
225      {
226        breakpoint: 1024,
227        settings: {
228        slidesToShow: 2,
229        slidesToScroll: 2,
230        infinite: true,
231        }
232      },
233      {
234        breakpoint: 767,
235        settings: {
236        slidesToShow: 1,
237        slidesToScroll: 1
238        }
239      }
240      ]
241    });
242  }
243
244  jQuery(".contact-pop").click(function(){
245    event.preventDefault();
246    jQuery('#contactPop').modal("show");
247    jQuery("#nomEmpr").html($(this).attr('empresa'));
248  });
249
250
251  // Anclas Macro regiones
252  jQuery('.wrapperanclamacroregion').click(function(event){
253        var args =  event.currentTarget.className.split(' ');
254        var tid = args.pop();
255        $('body,html').animate({
256            scrollTop: $('.render'+tid).offset().top - 100
257        }, 1000);
258        return false;
259    });
260
261
262  // Hover menu Anclas
263  jQuery(".menuAnclas .wrapperanclamacroregion").each(function(event) {
264    if (window.innerWidth > 997) {
265
266        var args =  this.className.split(' ');
267        var args_color = args[1].split('-');
268        var color = args_color.pop();
269
270      jQuery(this).mouseover(function(){
271        jQuery(this).find('svg path, svg g').css("fill", "#"+color);
272        jQuery(this).find('a').css("color", "#"+color);
273      });
274      jQuery(this).mouseout(function(){
275        jQuery(this).find('svg path, svg g').css("fill", "#c3c3c3");
276        jQuery(this).find('a').css("color", "#c3c3c3");
277      });
278    }else{
279      var color = this.className.split("-")[1];
280      jQuery(this).find('svg path, svg g').css("fill", "#"+color);
281      jQuery(this).find('a').css("color", "#"+color);
282    }
283  });
284  //
285
286  //Background color macro regiones
287  jQuery(".macroRegionContenido .contenidoflag").each(function() {
288    var esto = this.className.split(" ")[2];
289    var color = esto.split("-")[1];
290    jQuery(this).parents(".macroRegionContenido").css("background", "#" + color+12);
291    jQuery(this).find("h2, span, h3").css('color', "#" + color);
292  });
293  //
294
295  //Background color macro regiones interna
296  jQuery(".block-views-block-macro-regiones-interna-block-1 .macroregioncontenido").each(function() {
297    var color = this.className.split("-")[1];
298    jQuery('.colores').find('h2,span').css("color", color);
299    jQuery(this).css("background-color", color);
300    var rgba = jQuery(this).css("background-color").replace(')', ', 0.176)');
301    jQuery(this).css("background-color", rgba);
302    jQuery('.macroregioncontenido .row, .block-views-block-macro-regiones-interna-block-1 .macroregioncontenido .izquierda').css("border-color", color);
303    jQuery('.venues_map_render .views-field-field-url-podcast iframe').css('border-color', color);
304    jQuery('.venues_map_render .envoltura').css('background-color', color);
305  });
306
307  // Background image mapa interactivo
308  var fondo = "url("+jQuery('.macroregioncontenido .izquierda img').attr('src')+")";
309  jQuery('.venues_map_render #mapColombia').css('background-image', fondo);
310  //
311
312  jQuery(document).ajaxComplete(function(event, xhr, settings) {
313
314    if(typeof settings.extraData != 'undefined' && typeof settings.extraData.view_display_id != 'undefined') {
315      switch(settings.extraData.view_name){
316        case "macro_regiones_home":
317          jQuery('.macroRegionesBlockHome .views-view-grid').prepend('<span class="resultados">'+Drupal.t("Resultados")+'</span>');
318          jQuery('.block-views-block-macro-regiones-menu-anclas-block-1').addClass('hidden');
319          jQuery('.resultadobusquedas .slick-carousel').each(function(index, el) {
320            let busqueda = jQuery(this).html().split("\n").join("");
321                busqueda = busqueda.split(" ").join("");
322            if (busqueda!=="") {
323              jQuery('.resultadobusquedas').removeClass('hidden');
324              jQuery('.defaultciudades').addClass('hidden');
325            }
326          });
327          break;
328        default:
329          break;
330      }
331    }
332
333    jQuery(".macroRegionContenido .contenidoflag").each(function() {
334      var esto = this.className.split(" ")[2];
335      var color = esto.split("-")[1];
336      jQuery(this).parents(".macroRegionContenido").css("background", "#" + color+12);
337      jQuery(this).find("h2, span, h3").css('color', "#" + color);
338    });
339
340    var fondo = "url("+jQuery('.macroregioncontenido .izquierda img').attr('src')+")";
341    jQuery('.venues_map_render #mapColombia').css('background-image', fondo);
342
343    jQuery(".macroregioncontenido .contenidoflag").each(function() {
344      var esto = this.className.split(" ")[2];
345      var color = esto.split("-")[1];
346      jQuery(this).parents(".macroregioncontenido").css("background", "#" + color+12);
347      jQuery(this).find("h2, span, h3").css('color', "#" + color);
348    });
349
350    jQuery(".block-views-block-macro-regiones-interna-block-1 .macroregioncontenido").each(function() {
351      var color = this.className.split("-")[1];
352      jQuery('.colores').find('h2,span').css("color", color);
353      jQuery(this).css("background-color", color+"2d");
354      jQuery('.venues_map_render .views-field-field-url-podcast iframe').css('border-color', color);
355      jQuery('.venues_map_render .envoltura').css('background-color', color);
356    });
357  });
358
359
360  // Eliminar temperatura vacio
361    if (jQuery(".temperatura").text()=="") {
362      jQuery(".temperatura").after().remove();
363    }
364  //
365    jQuery('.path-mapa-turismo #main, .path-colombia-in-expodubai #main').removeClass('medium-9 medium-push-3 columns').addClass('medium-10 medium-push-2 columns');
366    jQuery('.path-mapa-turismo #sidebar-first, .path-colombia-in-expodubai #sidebar-first').removeClass('medium-3 medium-pull-9 columns sidebar ').addClass('medium-2 medium-pull-10 columns sidebar');
367
368    var LF = LF || {};
369    LF.countingUp = (function($){
370
371    $('[data-countingup]').each(function(){
372
373    });
374
375    var _el, _rect, _window, _elTop, _status = 'out', _values = [], _strings = [];
376
377    function calc(){
378      _rect = _el.getBoundingClientRect();
379      _window = {
380        w: $(window).width(),
381        h: $(window).height(),
382      };
383      _elTop = _rect.top - _window.h + 300;
384    }
385
386
387
388    function countUp(item){
389      if(item.counter >= item.value){
390        item.counter = item.value;
391      } else {
392        item.counter += item.step;
393        setTimeout(function(){
394          countUp(item);
395        }, 10);
396      }
397
398      item.el.innerHTML = item.counter;
399    }
400
401    function stringUp(item){
402      item.value.forEach(function(v,i){
403        if(item.counter[i] < 122 && item.counter[i] != v){
404          item.counter[i]++;
405        } else {
406          item.counter[i] = v;
407        }
408      });
409      var val = item.counter.map(function(i){
410        return String.fromCharCode(i)}
411      );
412      val = val.join('');
413
414      if(val != item.ori){
415        setTimeout(function(){
416          stringUp(item);
417        }, 10);
418      }
419      item.el.innerHTML = val;
420    }
421
422    function startListener(){
423      $(window).scroll(function(e) {
424        if (jQuery(window).scrollTop() > _elTop) {
425          if(_status == 'out'){
426            _status = 'in';
427            _values.forEach(function(v){
428              countUp(v);
429            });
430            // _strings.forEach(function(v){
431            //   stringUp(v);
432            // });
433          }
434        }
435      });
436    }
437
438    function values(){
439      var val;
440      $(_el).find('.field-item').each(function(i,v){
441        if(val = parseInt(this.innerHTML)){
442          _values.push({
443            el: this,
444            value: val,
445            counter: 0,
446            step: Math.ceil(val / 50),
447          });
448          this.innerHTML = 0;
449        } else {
450          val = this.innerHTML.split('');
451          // val = val.map(function(i){ return i.charCodeAt(0) });
452          _strings.push({
453            el: this,
454            ori: this.innerHTML,
455            value: val.map(function(i){ return i.charCodeAt(0) }),
456            counter: val.map(function(i){ return i.charCodeAt(0)+1 }),
457          });
458        }
459      });
460    }
461
462    var _my = {};
463    _my.init = function(el){
464      if(el && el.getBoundingClientRect){
465        _el = el;
466        calc();
467        values();
468        startListener();
469      }
470    }
471
472    return _my;
473
474    }(jQuery));
475
476    var valuesBlock = document.getElementById('block-views-block-cifras-block-1');
477    valuesBlock && LF.countingUp.init(valuesBlock);
478
479    /**
480     * Use this behavior as a template for custom Javascript.
481     */
482    Drupal.behaviors.colombiaTravel = {
483      attach: function (context, settings) {
484
485      /*cambio estilos mapa dubai*/
486      if(window.location.pathname.split("colombia-in-expodubai/").length > 1) {
487        if (!jQuery('.node--type-mapa-turismo').hasClass('path-dubai')) {
488          jQuery('.node--type-mapa-turismo').addClass("path-dubai");
489        }
490      }
491
492      /*
493      * remover before banner home
494      */
495      jQuery('.super-banner .owl-item .views-field-body').each(function(index, el) {
496        if (jQuery(this).find('.centrado').length) {
497          if (!jQuery(this).parent().find('.views-field-field-image').hasClass('not_before')) {
498            jQuery(this).parent().find('.views-field-field-image').addClass('not_before');
499          }
500        }
501      });
502
503
504      /*
505      *funciones para filtros donde ir
506      */
507      jQuery(once('once', '.block-formularioexpuestodonde-ir-temperaturapage-1 .ui-corner-all')).click(function(event) {
508        jQuery('.block-formularioexpuestodonde-ir-temperaturapage-1 select option:selected').removeAttr("selected");
509      });
510
511      jQuery(once('once', '.block-formularioexpuestodonde-ir-temperaturapage-1 select')).change(function(event) {
512        switch (jQuery(this).val()) {
513          case '109':
514            jQuery('.block-formularioexpuestodonde-ir-temperaturapage-1 .form-item-field-temperatura-value-min input').val(24);
515            jQuery('.block-formularioexpuestodonde-ir-temperaturapage-1 .form-item-field-temperatura-value-max input').val(30);
516            break;
517          case '110':
518            jQuery('.block-formularioexpuestodonde-ir-temperaturapage-1 .form-item-field-temperatura-value-min input').val(18);
519            jQuery('.block-formularioexpuestodonde-ir-temperaturapage-1 .form-item-field-temperatura-value-max input').val(24);
520            break;
521          case '111':
522            jQuery('.block-formularioexpuestodonde-ir-temperaturapage-1 .form-item-field-temperatura-value-min input').val(12);
523            jQuery('.block-formularioexpuestodonde-ir-temperaturapage-1 .form-item-field-temperatura-value-max input').val(18);
524            break;
525          case '112':
526            jQuery('.block-formularioexpuestodonde-ir-temperaturapage-1 .form-item-field-temperatura-value-min input').val(6);
527            jQuery('.block-formularioexpuestodonde-ir-temperaturapage-1 .form-item-field-temperatura-value-max input').val(12);
528            break;
529          case '113':
530            jQuery('.block-formularioexpuestodonde-ir-temperaturapage-1 .form-item-field-temperatura-value-min input').val(0);
531            jQuery('.block-formularioexpuestodonde-ir-temperaturapage-1 .form-item-field-temperatura-value-max input').val(6);
532            break;
533          case '114':
534            jQuery('.block-formularioexpuestodonde-ir-temperaturapage-1 .form-item-field-temperatura-value-min input').val(-6);
535            jQuery('.block-formularioexpuestodonde-ir-temperaturapage-1 .form-item-field-temperatura-value-max input').val(0);
536            break;
537          default:
538            break;
539        }
540
541      });
542      /**/
543
544        // Ocultar categorias sin referencia
545      jQuery(".path-user .field--name-field-preferencias .form-item-field-preferencias-0-254-254").parent().addClass("hidden");
546
547      /*
548      * Start mapa
549      * menu mapa mobile toggle
550      */
551      jQuery(once('once', ".path-colombia-in-expodubai .fieldset-legend, .path-mapa-turismo .fieldset-legend")).click(function(event) {
552        if (window.innerWidth<= 639) {
553          jQuery(".path-colombia-in-expodubai .fieldset-wrapper, .path-mapa-turismo .fieldset-wrapper").toggle();
554          jQuery(".path-colombia-in-expodubai #edit-actions--3, .path-mapa-turismo #edit-actions--3").toggle();
555        }else{
556          jQuery(".path-colombia-in-expodubai .fieldset-wrapper, .path-colombia-in-expodubai #edit-actions--3, .path-mapa-turismo .fieldset-wrapper, .path-mapa-turismo #edit-actions--3").css('display', 'block');
557        }
558      });
559
560      /*
561      * Meeting planner: Agrega SVG silueta mapa
562      */
563      setTimeout(function () {
564        jQuery.each( drupalSettings.leaflet, function( key, value ) {
565          if(typeof drupalSettings.leaflet[key].lMap === 'undefined') return true;
566          if(jQuery('#' + key).length == 0) return true;
567
568          var mapaColombia = "leaflet-map-view-mapa-turismo-page-1";
569          var mapaDubai = "leaflet-map-view-mapa-dubai-page-1";
570
571          if ((drupalSettings.leaflet[key].mapid.indexOf(mapaColombia) >= 0) || (drupalSettings.leaflet[key].mapid.indexOf(mapaDubai) >= 0)) {
572            L.geoJson(dante).addTo(drupalSettings.leaflet[key].lMap);
573          }
574          // if (drupalSettings.leaflet[key].mapid.indexOf(mapaDubai) >= 0) {
575          //   L.geoJson(dubai).addTo(drupalSettings.leaflet[key].lMap);
576          // }
577        });
578      },800);
579
580  // jQuery(once("colombiaTravel", 'html')).each(function() {
581  // });
582
583          jQuery(".leaflet-control-zoom .leaflet-control-zoom-in, .leaflet-control-zoom .leaflet-control-zoom-out, .marker-cluster>div, .resetzoom.leaflet-control").on("click touch", function(event) {
584            event.preventDefault();
585            var galleta = document.cookie.split(";");
586
587            var colorCheck;
588            galleta.forEach(function(elemento, indice, array) {
589              if (elemento.includes('color') == true) {
590                colorCheck= elemento;
591              }
592            });
593
594            /**
595            * Meeting planner: establece un valor por defecto, si no enuentra la cookie
596            */
597            if (typeof colorCheck === 'undefined'){
598              colorCheck = "color=#e6114b";
599            }
600
601            colorCheck = colorCheck.split("=");
602              setTimeout(function () {
603                jQuery(".mapa-turismo-view .marker-cluster-small div, .mapa-turismo-view .marker-cluster-medium div, .mapa-turismo-view .marker-cluster-large div").css('background-color', colorCheck[1]);
604
605                jQuery(".mapa-turismo-view .marker-cluster-small div, .mapa-turismo-view .marker-cluster-medium div, .mapa-turismo-view .marker-cluster-large div").hover(function(){
606                  jQuery(".leaflet-overlay-pane svg.leaflet-zoom-animated g path").css('stroke', colorCheck[1]);
607                  jQuery(this).find('span').css({"color": colorCheck[1]});
608                  jQuery(this).css({
609                    "color": colorCheck[1],
610                    "background-color": '#ffffff',
611                    "border":"solid 2px "+colorCheck[1]
612
613                  });
614                  }, function(){
615
616                    jQuery(this).find('span').css({"color":'#ffffff'});
617                  jQuery(this).css({
618                    "color":'#ffffff',
619                    "background-color": colorCheck[1],
620                    "border":"solid 2px "+colorCheck[1]
621
622                  });
623                });
624
625              },800);
626
627           });
628
629
630
631          if (jQuery('.marker-cluster div').length) {
632            var galleta = document.cookie.split(";");
633
634            var colorCheck;
635            galleta.forEach(function(elemento, indice, array) {
636              if (elemento.includes('color') == true) {
637                colorCheck= elemento;
638              }
639            })
640            /**
641            * Meeting planner: establece un valor por defecto, si no enuentra la cookie
642            */
643            if (typeof colorCheck === 'undefined'){
644              colorCheck = "color=#e6114b";
645            }
646            colorCheck = colorCheck.split("=");
647
648            if((jQuery(".block-formularioexpuestomapa-turismopage-1 form fieldset .fieldset-wrapper .form-checkboxes .form-item input[type=checkbox]:checked").length == 1)||(jQuery(".block-formularioexpuestomapa-dubaipage-1 form fieldset .fieldset-wrapper .form-checkboxes .form-item input[type=checkbox]:checked").length == 1)){
649
650              setTimeout(function () {
651                jQuery(".mapa-turismo-view .marker-cluster-small div, .mapa-turismo-view .marker-cluster-medium div, .mapa-turismo-view .marker-cluster-large div").css('background-color', colorCheck[1]);
652
653                jQuery(".mapa-turismo-view .marker-cluster-small div, .mapa-turismo-view .marker-cluster-medium div, .mapa-turismo-view .marker-cluster-large div").hover(function(){
654                  jQuery(".leaflet-overlay-pane svg.leaflet-zoom-animated g path").css('stroke', colorCheck[1]);
655                  jQuery(this).find('span').css({"color": colorCheck[1]});
656                  jQuery(this).css({
657                    "color": colorCheck[1],
658                    "background-color": '#ffffff',
659                    "border":"solid 2px "+colorCheck[1]
660
661                  });
662                  }, function(){
663
664                    jQuery(this).find('span').css({"color":'#ffffff'});
665                  jQuery(this).css({
666                    "color":'#ffffff',
667                    "background-color": colorCheck[1],
668                    "border":"solid 2px "+colorCheck[1]
669
670                  });
671                });
672
673              },1000);
674            }
675          }
676
677          if (jQuery('.mm-menu_theme-dark').length) {
678            jQuery('.mm-menu_theme-dark').addClass("mm-theme-dark");
679          }
680
681          // mapa turismo
682          jQuery(".block-formularioexpuestomapa-turismopage-1 form fieldset .fieldset-wrapper .form-checkboxes .form-item input[type=checkbox]").on('click touchstart', function(event) {
683
684            if(jQuery(".block-formularioexpuestomapa-turismopage-1 form fieldset .fieldset-wrapper .form-checkboxes .form-item input[type=checkbox]:checked").length == 1){
685              if (jQuery('.marker-cluster div').length) {
686                var color = jQuery(this).parent(".form-item").find('label').css('background-color');
687                document.cookie="color="+color;
688              }else{
689                document.cookie="color=#e6114b";
690              }
691            }else{
692              document.cookie="color=#e6114b";
693            }
694          });
695
696          // mapa dubai
697          jQuery(".block-formularioexpuestomapa-dubaipage-1 form fieldset .fieldset-wrapper .form-checkboxes .form-item input[type=checkbox]").on('click touchstart', function(event) {
698
699            if(jQuery(".block-formularioexpuestomapa-dubaipage-1 form fieldset .fieldset-wrapper .form-checkboxes .form-item input[type=checkbox]:checked").length == 1){
700              if (jQuery('.marker-cluster div').length) {
701                var color = jQuery(this).parent(".form-item").find('label').css('background-color');
702                document.cookie="color="+color;
703              }else{
704                document.cookie="color=#e6114b";
705              }
706            }else{
707              document.cookie="color=#e6114b";
708            }
709          });
710
711
712
713
714  /*
715  *End mapa
716  */
717
718
719        /***buttons show more revista**/
720        if(window.location.pathname.split("/").pop() == "colombiaco") {
721          $('div[data-drupal-selector^=edit-tid-page2]').scrollLeft(1000);
722          $('label[for^=edit-tid-page2-197]').addClass("active-revista");
723        }
724
725        if(window.location.pathname.split("/").pop() == "blogpage") {
726          $("div[data-drupal-selector^=edit-tid-page2] .form-item input[type='checkbox']:checked").each(function(index,element) {
727            $(this).siblings('label').addClass('checked');
728          });
729        }
730
731        if ($('.revista-travel .item-list-wrapper .views-field-field-flips-capitulos ul').length) {
732
733          $('.revista-travel .item-list-wrapper .views-field-field-flips-capitulos ul').owlCarousel1({
734            // Most important owl features
735            items : 4,
736            itemsDesktop : [1199,4],
737            itemsDesktopSmall : [980,3],
738            itemsTablet: [768,2],
739            itemsTabletSmall: false,
740            itemsMobile : [479,1],
741            singleItem : false,
742            autoWidth: true,
743            //Basic Speeds
744            slideSpeed : 200,
745            paginationSpeed : 800,
746            rewindSpeed : 1000,
747            // Navigation
748            navigation : true,
749            navigationText : ["prev","next"],
750            rewindNav : true,
751            scrollPerPage : false,
752            // Responsive
753            responsive: true,
754            responsiveRefreshRate : 200,
755            responsiveBaseWidth: window,
756            // CSS Styles
757            baseClass : "owl-carousel",
758            theme : "owl-theme"
759          });
760        }
761
762        $(once('testOnce', '.loadMore')).click(function(e){
763          e.preventDefault();
764          $(this).siblings('ul').find(".moreBox:hidden").slice(0, 1).slideDown();
765
766          if ($(this).siblings('ul').find(".moreBox:hidden").length == 0) {
767            $(this).fadeOut('slow');
768          }
769        });
770
771        $(once('once', '.link-item-content')).click(function() {
772          let enlace = window.location.origin + $(this).parents('.views-field-field-flips-capitulos').siblings('.views-field-title').find('a').attr("href");
773          window.location.replace(enlace);
774          console.log(enlace, 'element this enlace');
775        });
776
777
778        $(once('once', 'label[for^=edit-tid-197],label[for^=edit-tid-page2-197] ')).click(function() {
779          let language = $('html').attr("lang");
780          let enlace = window.location.origin + '/' + language + '/colombiaco';
781          window.location.replace(enlace);
782        });
783
784        $(once('once', '.revista-travel .views-field-title a')).click(function(e) {
785          e.preventDefault();
786        });
787
788        if ($('img.light-zoom').length) {
789          $('img.light-zoom').lightzoom({
790            zoomPower   : 1.2,    //Default
791            glassSize   : 180,  //Default
792          });
793        }
794
795        $(once('once', '.bottom-show')).click(function(e){
796          e.preventDefault();
797          $('.building__info').toggle('fast');
798        });
799
800        if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)
801            || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja
801(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4))) {
802
803          $('.close-item-mapa').on('click touchstart', function () {
804            $(this).parents('.building__info').fadeOut('fast');
805          });
806
807          $(once('once', '.building__num')).click(function () {
808            $(this).siblings('.building__info').fadeIn('fast');
809          });
810
811        } else {
812
813          $(once('once', '.building__num')).hover(function () {
814              $(this).siblings('.building__info').fadeIn("fast");
815          }, function(){
816             $(this).siblings('.building__info').fadeOut("fast");
817          } );
818        }
819        /***/
820  // console.log("Sale funcion");
821    /*Dante*/
822
823        // *********************************
824        // Changes active class of top menu
825        // *********************************
826        let loc = window.location.href; // returns the full URL
827        let meetings = Drupal.t('meetings')
828
829        $('#off-canvas li').each(function(index){
830          let element = $(this);
831          if(element.find('a').hasClass('show-on-reuniones')){
832            element.hide(0);
833          }else{
834            element.show(0);
835          }
836        });
837
838        $(once('colombiaTravel', '.dropdown-language-item .zh-hans a', context)).text('ZH');
839
840        if(/reuniones/.test(loc)) {
841          $('#block-menusecundario .menu').find('li').eq(1).addClass('is-active');
842          // ***************************************************
843          // Show menu items on responsive menu according to URL
844          // ***************************************************
845          $('#off-canvas li').each(function(index){
846            let element = $(this);
847            if(element.find('a').hasClass('show-on-reuniones')){
848              element.show(0);
849            }else{
850              element.hide(0);
851            }
852          });
853        }else if (/portales-asociados/.test(loc)){
854          $('#block-menusecundario .menu').find('li').eq(2).addClass('is-active');
855        }else{
856          $('#block-menusecundario .menu').find('li').eq(0).addClass('is-active');
857        }
858
859        // ************************************************************************
860        // Bahavior for top menu when the page is accessed from mobiles devices
861        // ************************************************************************
862        $(once('colombiaTravel', '#block-menusecundario .menu', context)).on('click','li.is-active',function(e){
863          if (Foundation.MediaQuery.is('small only')) {
864            e.stopPropagation()
865
866            let menu = $(this).parent().toggleClass('opened')
867            $('.header-page').toggleClass('opened')
868
869            menu.prepend($(this))
870
871            e.preventDefault()
872          }
873        })
874
875        if($("#block-navegacionprincipalreuniones-2 .menu"))
876        {
877          $(once('colombiaTravel', "#block-navegacionprincipalreuniones-2 .menu", context)).mmenu({
878            "extensions": [
879              "pagedim-black",
880              "position-right"
881            ]
882          });
883        }
884
885        // Select all links with hashes
886        $(once('colombiaTravel', 'a.smooth-scroll[href*="#"]', context)).on('click', function(event) {
887
888            // Figure out element to scroll to
889            var target = $(this.hash);
890
891            target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
892            // Does a scroll target exist?
893            if (target.length) {
894              // Only prevent default if animation is actually gonna happen
895              // let top = target.offset().top - 40
896              let top = target.offset().top - 100
897              $('html, body').animate({
898                scrollTop: top
899              }, 1000);
900
901              event.preventDefault();
902            }
903        });
904
905        $(once('colombiaTravel', '.return-to-top', context)).on('click', function(event) {
906          $('html, body').animate({
907            scrollTop: 0
908          }, 1000, function(){
909            $('.return-to-top').hide(300)
910          });
911        });
912
913        $(".categoria-que-hacer form.views-exposed-form").addClass("form-categorias")
914        //Que hacer - ecoturismo FILTRO
915        $('.categoria-que-hacer  details.form-item').attr("open", "open")
916        $(".categoria-que-hacer .form-checkbox:checked").parent().find('label').toggleClass("checked")
917
918
919        jQuery('#views-exposed-form-blog-blog input:checkbox').change(function(){
920          $( this ).parent().find('label').toggleClass("checked")
921        });
922
923        jQuery('#views-exposed-form-blog-block-2 input:checkbox').change(function(){
924          $( this ).parent().find('label').toggleClass("checked")
925        });
926
927
928        jQuery( ".visually-hidden" ).remove();
929
930
931        $(window).scroll(function() {
932          if ($(window).scrollTop() > 95) {
933            $('.return-to-top').show(300)
934            if (!Foundation.MediaQuery.is('small only')) {
935              $(".off-canvas-content").addClass("header-fix");
936            }
937          } else {
938            $(".off-canvas-content").removeClass("header-fix");
939          }
940
941          encabezado_height = jQuery("#block-views-block-encabezado-destino-header-big").height();
942
943          if ( $(window).scrollTop() > encabezado_height ) {
944            $("#block-views-block-menu-contextual-destinos-block-1").addClass("fixed-sub");
945          } else {
946            $("#block-views-block-menu-contextual-destinos-block-1").removeClass("fixed-sub");
947          }
948        });
949
950        // jQuery('#edit-field-tipos-de-turismo-target-id ul > li > input:checkbox').change(
951        jQuery('.formulario-expuesto-que-hacer input:checkbox').change(function(){
952          posicion = jQuery( this ).parent().parent().index()+1;
953          padre = jQuery( this ).parent().parent().parent().parent().get( 0 ).tagName;
954          if( padre != "LI" ) {
955            jQuery( ".formulario-expuesto-que-hacer .form-checkboxes > ul > li:nth-child(" + posicion + ") > ul" ).toggle();
956          }
957        });
958
959        if($('.seccion-que-hacer .views-exposed-form').length != 0) {
960          jQuery( ".seccion-que-hacer .views-exposed-form" ).addClass( "columns medium-3" );
961        }
962
963        // Solución TEMPORAL para eliminar los estilos en línea de los artículos del blog y garantizar la visualización
964        if(jQuery('.node--type-article .field-node--body').length != 0) {
965          jQuery('.node--type-article .field-node--body .imagenDerecha, .node--type-article .field-node--body .imagenIzquierda, .node--type-article .field-node--body .contenedor-imagen-blog-derecha').attr('style', function(i, style) {
966              return style && style.replace(/float[^;]+;?/g, '');
967          });
968        }
969
970        $('.form-submit[id^=edit-reset]').on('click keypress', function(e) {
971          e.preventDefault();
972          location.href = location.origin + location.pathname;
973        });
974
975        if (Foundation.MediaQuery.is('small only')) {
976
977          //slide mobile test
978          $('.slick-carousel').addClass('carousel-mobile')
979
980          $('#off-canvas .mm-opened li:last-child > a').removeClass('mm-fullsubopen');
981
982          //Que hacer - ecoturismo FILTRO
983          $('.categoria-que-hacer  details.form-item').attr("open", "open")
984          // $('.categoria-que-hacer form.views-exposed-form').removeClass('form-categorias')
985          $('#block-views-block-blog-block-2 form.views-exposed-form').addClass('form-categorias')
986
987          $('#block-menuherramientas, #block-menuherramientasreuniones').addClass('menu-bottom-fixed')
988          $('nav#block-menudestino').addClass('menudestino')
989          //Que hacer
990          $('nav#block-menucategoriasquehacer').addClass('menudestino');
991          $('#views-exposed-form-blog-blog').addClass('menudestino');
992          // $('#views-exposed-form-blog-block-2').addClass('menudestino');
993
994          // slider mobile posts-instagram
995          if($.fn.owlCarousel1) {
996            $('.field-node--field-posts-instagram .field-items').owlCarousel1({
997              center: true,
998              items:1,
999              loop:false,
1000              //margin:10,
1001              navigation : true
1002            });
1003          }
1004
1005          $('#block-dropdownlanguage').insertAfter('#mm-1 ul.mm-listview').addClass('language-mobile').removeClass('hide-for-small-only');
1006          jQuery('#block-dropdownlenguajecustomblock').insertAfter('#mm-3 ul.mm-listview').addClass('language-mobile').removeClass('hide-for-small-only');
1007          //FIN slider mobile posts-instagram
1008
1009          jQuery(window).scroll(function() {
1010            //console.log(jQuery(window).scrollTop());
1011            fijarConHueco(jQuery("nav#block-menudestino"), "menudestino-fixed", jQuery(window).scrollTop() >= 460);
1012          });
1013          //close menu responsive by clicking on search
1014          var API = jQuery("#off-canvas").data( "mmenu" );
1015          jQuery("#off-canvas .search-button").click(function() {
1016            API.close();
1017          });
1018        }else{
1019          if($().slick) {
1020            $(once('colombiaTravel', '.slick-carousel .item-list ul', context)).slick({
1021              infinite: true,
1022              speed: 300,
1023              autoplay: true,
1024              slidesToShow: 4,
1025              slidesToScroll: 1,
1026              responsive: [
1027                {
1028                  breakpoint: 1024,
1029                  settings: {
1030                    slidesToShow: 3,
1031                    slidesToScroll: 1,
1032                    infinite: true,
1033                  }
1034                },
1035                {
1036                  breakpoint: 600,
1037                  settings: {
1038                    slidesToShow: 2,
1039                    slidesToScroll: 1
1040                  }
1041                }
1042              ]
1043            });
1044          }
1045        }
1046        /****targe link node view_more*/
1047        $("a.read-more-event").attr('target', '_blank');
1048        if ($("body.path-taxonomy").length && $('.field-name-field-link-event').length) {
1049          var aTag = $(".field-name-field-link-event");
1050          $('html,body').animate({ scrollTop: aTag.offset().top }, 'slow');
1051        }
1052        /***/
1053
1054         /**
1055         * Habilitación de target blank para enlaces en Body
1056         */
1057        if($('.field-node--body').length != 0 && $reloadPage == 0) {
1058          var _attrA = jQuery( ".field-node--body a" );
1059          _attrA.each(function(index){
1060            var _href = $(this).attr('href');
1061            if(_href != '' && _href != undefined){
1062              var arrayhref = _href.split('/');
1063              if(arrayhref[2] != undefined && arrayhref[2] != drupalSettings.domain)//'colombia.travel'
1064                $(this).attr('target','_blank');
1065            }
1066          });
1067          //jQuery( ".field-node--body a" ).attr('target','_blank');
1068        }
1069        $reloadPage++;
1070
1071
1072        // if($('#block-formularioexpuestosearch-apipage-1').length != 0) {
1073        //   // jQuery("#block-formularioexpuestosearch-apipage-1").prepend( "<div class='close-icon'><span>X</span></div>" );
1074        // }
1075
1076
1077        /************************/
1078        /** ADSERVER */
1079        /************************/
1080        self.onscroll = function(){
1081          var top = self.pageYOffset || document.body.scrollTop;
1082
1083          /*bannerboton*/
1084          if (jQuery("#main").find('.bannerboton')) {
1085            var wrapper = jQuery("#main").offset().top + jQuery(".field-node--body").innerHeight();
1086            if (top > jQuery("#main").offset().top-300) {
1087              jQuery('.bannerboton').css({position: 'fixed',right: '30px',top: '90px'});
1088            }else{
1089              jQuery('.bannerboton').css({
1090                position: 'absolute',
1091                right: '0px',
1092                top: '-200px'
1093              });
1094            }
1095          }
1096
1097        }
1098
1099        $( ".adserver-close-button" ).click(function() {
1100          jQuery( ".adserver.interstitial" ).hide();
1101        });
1102
1103
1104        if($('.adserver.interstitial').length != 0) {
1105          if($('.adserver-close-button').length == 0) {
1106            jQuery( ".adserver.interstitial iframe" ).wrap( "<div class='interstitial-container'></div>" );
1107            jQuery( ".adserver.interstitial .interstitial-container" ).append( "<div class='adserver-close-button'></div>" );
1108          }
1109        }
1110
1111        $( ".adserver-close-button-mb" ).click(function() {
1112          jQuery( ".adserver.megabanner" ).hide();
1113        });
1114
1115
1116        if($('.adserver.megabanner').length != 0) {
1117          if($('.adserver-close-button-mb').length == 0) {
1118            jQuery( ".adserver.megabanner" ).append( "<div class='adserver-close-button-mb'></div>" );
1119          }
1120        }
1121
1122        if($('.filmstrip').length != 0) {
1123          $(window).scroll(function (event) {
1124            if ( $(window).scrollTop() >
1124 $( "#block-mainpagecontent" ).position().top ) {
1125              $(".filmstrip", context).addClass("fix-side-ad");
1126              $(".filmstrip", context).css("left", "50%" );
1127              $(".filmstrip", context).css("margin-left", $("#block-mainpagecontent").width()/2 - 140 );
1128            }
1129            else {
1130              $(".filmstrip", context).removeClass("fix-side-ad");
1131              $(".filmstrip", context).css("left", "auto" );
1132              $(".filmstrip", context).css("margin-left", 0 );
1133            }
1134
1135            if ( $(window).scrollTop() > ($( "#block-mainpagecontent" ).position().top + $("#block-mainpagecontent .field-node--body").height() - 500 ) ) {
1136              $(".filmstrip", context).removeClass("fix-side-ad");
1137              $(".filmstrip", context).css("left", "auto" );
1138              $(".filmstrip", context).css("margin-left", 0 );
1139            }
1140          });
1141        }
1142        if ($('.skyscrapper').length != 0) {
1143          $(window).scroll(function (event) {
1144            var mainContentBlock = $("#block-mainpagecontent, #block-mainpagecontent-2");
1145            if ($(window).scrollTop() > mainContentBlock.offset().top) {
1146              $(".skyscrapper", context).addClass("fix-side-ad");
1147              $(".skyscrapper", context).css("left", "50%");
1148              $(".skyscrapper", context).css("margin-left", mainContentBlock.width() / 2 - 120);
1149            } else {
1150              $(".skyscrapper", context).removeClass("fix-side-ad");
1151              $(".skyscrapper", context).css("left", "auto");
1152              $(".skyscrapper", context).css("margin-left", 0);
1153            }
1154
1155            if ($(window).scrollTop() > (mainContentBlock.offset().top + mainContentBlock.find(".field-node--body").height() - 500)) {
1156              $(".skyscrapper", context).removeClass("fix-side-ad");
1157              $(".skyscrapper", context).css("left", "auto");
1158              $(".skyscrapper", context).css("margin-left", 0);
1159            }
1160          });
1161        }
1162
1163         if($('.sidekick').length != 0) {
1164          $(window).scroll(function (event) {
1165            if ( $(window).scrollTop() > $( "#block-mainpagecontent" ).position().top ) {
1166              $(".sidekick", context).addClass("fix-side-ad");
1167              $(".sidekick", context).css("right", "50%" );
1168              $(".sidekick", context).css("margin-right", -$("#block-mainpagecontent").width()/2 );
1169            }
1170            else {
1171              $(".sidekick", context).removeClass("fix-side-ad");
1172              $(".sidekick", context).css("left", "auto" );
1173              $(".sidekick", context).css("margin-left", 0 );
1174            }
1175
1176            if ( $(window).scrollTop() > ($( "#block-mainpagecontent" ).position().top + $("#block-mainpagecontent .field-node--body").height() - 100 ) ) {
1177              $(".sidekick", context).removeClass("fix-side-ad");
1178              $(".sidekick", context).css("left", "auto" );
1179              $(".sidekick", context).css("margin-left", 0 );
1180            }
1181          });
1182        }
1183
1184        /************************/
1185        /** FIN ADSERVER */
1186        /************************/
1187
1188
1189      }
1190    };
1191
1192    jQuery('body').on('click', '.ckeditor-accordion-toggler', function(event) {
1193      if ( jQuery(".ckeditor-accordion-container dt").hasClass("active") ) {
1194        jQuery( this ).text( Drupal.t('Read more') );
1195      } else {
1196        jQuery( this ).text( Drupal.t('Read less') );
1197      }
1198    });
1199
1200    /**
1201   * Comportamiento para mostrar y ocultar el bloque con el formulario de búsqueda
1202   */
1203    jQuery('.search-button').click(function(e) {
1204      e.preventDefault();
1205      jQuery('.searchBox').toggleClass('invisible');
1206      // jQuery("#block-formularioexpuestosearch-apipage-1").prepend( "<div class='close-icon'><span>X</span></div>" );
1207      jQuery("#views-exposed-form-search-api-page-1 #edit-keys").focus();
1208    });
1209
1210    /**
1211   * Ajuste altura de banner en Home y encabezados grandes
1212   */
1213    if ( jQuery( window ).width() <= 640 ) {
1214      jQuery('.fondo-destino, .fondo-reuniones').height( jQuery( window ).height()/2 - 31 );
1215    } else {
1216      jQuery('.fondo-destino').height( jQuery( window ).height() - 31 );
1217      jQuery('.fondo-reuniones').height( jQuery( window ).height() * 0.8 );
1218    }
1219
1220    jQuery( window ).resize(function() {
1221      if ( jQuery( window ).width() <= 640 ) {
1222        jQuery('.fondo-destino, .fondo-reuniones').height( jQuery( window ).height()/2 - 31 );
1223        // jQuery('.fondo-destino').height( jQuery( window ).height() - jQuery( ".meta-header" ).height() - jQuery( "nav#block-menuherramientas" ).height() );
1224      } else {
1225        jQuery('.fondo-destino').height( jQuery( window ).height() - jQuery( ".meta-header" ).height() );
1226        jQuery('.fondo-reuniones').height( jQuery( window ).height() * 0.8 );
1227      }
1228    });
1229
1230     /**
1231     * Comportamiento para mostrar y ocultar el bloque con el acceso a preferencias
1232     */
1233  /*    jQuery('.preferencias').click(function(e) {
1234          e.preventDefault();
1235
1236            jQuery('.preferencias-flotante').toggleClass('preferencias-visible');
1237            jQuery('#block-menuherramientas').toggleClass('herramientas-desplazado');
1238      });
1239  */
1240
1241
1242
1243      jQuery('.close-icon span').click(function(){ jQuery('#block-formularioexpuestosearch-apipage-1').addClass('invisible') });
1244
1245      $( '#block-menudestino li' ).on( 'click', function() {
1246            $( this ).parent().find( 'li a.active' ).removeClass( 'active' );
1247            $( this ).find( 'a' ).addClass( 'active' );
1248      });
1249
1250      Drupal.behaviors.saludousuario = {
1251        attach: function (context, settings) {
1252          // Asegura que el comportamiento solo se ejecute una vez por carga
1253          if (context !== document) return;
1254          let nombres = $('#edit-field-nombres-0-value').val();
1255          let apellidos = $('#edit-field-apellidos-0-value').val();
1256          $('#block-saludousuario').find('h3').append(' ' + nombres + ' ' + apellidos
1257            + '<a id="change-user-profile" href="javascript:void(0);"> <i class="fa fa-pencil" aria-hidden="true"></i><span class="visually-hidden">Editar</span></a>');
1258
1259          // Function to manage user preferences
1260          function handleUserPreferences () {
1261            $('.term-reference-tree-button + .js-form-item input[id*="edit-field-preferencias-"]').prop('checked', false);
1262            $('.term-reference-tree-button + .js-form-item input[id*="edit-field-preferencias-"]').eq(0).trigger('click');
1263            $('div[class*="form-item-field-preferencias-"]').each(function () {
1264                if($(this).attr('class').indexOf('-children-') >= 0) {
1265                  if($(this).find('input').prop('checked') === true) {
1266                    $(this).clone().appendTo('#contenedor-items');
1267                  }
1268                }
1269            });
1270            $('#contenedor-items .js-form-item').wrapAll('<div id="appended-items"></div>');
1271          }
1272          // Insertar overlay y botón una vez
1273          if ($('#pref-modal-overlay').length === 0) {
1274            $('body').append('<div id="pref-modal-overlay"></div><button id="pref-modal-close">×</button>');
1275          }
1276          // Removes the colored target displays in case it is made responsive.
1277          function destroyUserPreferences () {
1278            $('.term-reference-tree-button').css('background-color', '');
1279            $('.term-reference-tree-level').css('transform', '');
1280          }
1281
1282          // Function to show/hide tree levels according to checkboxes.
1283          function toggleTreeLevelsBasedOnCheckboxes() {
1284            $('.term-reference-tree-level .term-reference-tree-level').each(function (element, key) {
1285              const hasCheckedChildren = $(key).find('li input[type="checkbox"]:checked').length > 0;
1286              if (hasCheckedChildren) {
1287                $(key).show();
1288              } else {
1289                $(key).hide();
1290              }
1291            });
1292          }
1293
1294          const mediaQuery = window.matchMedia("(min-width: 768px)");
1295
1296          function checkResponsive() {
1297            if (mediaQuery.matches) {
1298              handleUserPreferences();
1299            } else {
1300              destroyUserPreferences();
1301              //toggleTreeLevelsBasedOnCheckboxes(); // muestra los hijos del padre de preferencia en mobile
1302            }
1303          }
1304
1305          checkResponsive();
1306          mediaQuery.addEventListener("change", checkResponsive);
1307        }
1308      };
1309
1310      // Function to validate and update the status of the main checkboxes
1311      function validateParentCheckboxes() {
1312        $('.term-reference-tree-level .term-reference-tree-level').each(function () {
1313          const parentCheckbox = $(this).prev('.js-form-item').find('input[id*="edit-field-preferencias-"]');
1314          const hasCheckedChildren = $(this).find('li input[type="checkbox"]:checked').length > 0;
1315          if (hasCheckedChildren) {
1316            parentCheckbox.prop('checked', true);
1317          } else {
1318            parentCheckbox.prop('checked', false);
1319          }
1320        });
1321      }
1322
1323      $('.term-reference-tree-level .term-reference-tree-level input[type=checkbox]').click(function (e) {
1324        if (window.innerWidth >= 768) {
1325          validateParentCheckboxes();
1326        }
1327      });
1328
1329
1330        // Solo root
1331        $('.pref-root-item > .pref-item .js-form-item input[type=checkbox]').on('click', function(e) {
1332          e.stopPropagation();
1333
1334          // asegurarnos de que este input NO esté dentro de un pref-child-item
1335          if ($(this).closest('li').hasClass('pref-root-item')) {
1336            $('.pref-child-level').hide();
1337            $(this).closest('.pref-root-item').children('.pref-child-level').show();
1338            $('.term-reference-tree-level').find('.term-reference-tree-level').hide();
1339            $(this).parent().parent().find('.term-reference-tree-level').show();
1340            $('#pref-modal-overlay, #pref-modal-close').fadeIn();
1341          }
1342        });
1343
1344
1345
1346        $('#pref-modal-overlay, #pref-modal-close').on('click', function() {
1347            $('.pref-child-level').removeClass('active').hide();
1348            $('#pref-modal-overlay, #pref-modal-close').fadeOut();
1349        });
1350
1351      $('.term-reference-tree-button .js-form-item input[id*="edit-field-preferencias-"]').click(function (e) {
1352        $(this).parent().parent().find('.pref-card').show();
1353        $('.term-reference-tree-button').css('background-color', '#FFF');
1354        $(this).parent().parent().find('.term-reference-tree-button').css('background-color', '#E5E5E5');
1355        let index = $(this).parent().parent().index();
1356        if (index > 1) {
1357          $(this).parent().parent().find('.pref-card').show();
1358          $(this).parent().parent().find('.term-reference-tree-level').css('transform', 'translateY(-' + ((index - 1) * 12.5) + '%)');
1359        }
1360        if(index == 1) {
1361          $(this).parent().parent().find('.term-reference-tree-level').css('transform', 'translateY(-' + ((index -1) * 13) + '%)');
1362          $(this).parent().parent().find('.term-reference-tree-button').css('border-top-left-radius', '10px');
1363        }
1364        $(this).parent().parent().find('.term-reference-tree-level').clone().appendTo('#contenedor-items');
1365        validateParentCheckboxes();
1366      });
1367
1368      $('input[id*="-children-"]').click(function () {
1369        let classes = $(this).parent().attr('class');
1370        if($(this).prop('checked') === true) {
1371          $(this).parent().clone().appendTo('#appended-items');
1372        } else {
1373          $('#contenedor-items').find('.' + classes.split(' ').pop()).remove();
1374        }
1375      });
1376      $('#block-saludousuario').on('click', '#change-user-profile', function () {
1377        $('#edit-field-nombres-wrapper').toggle();
1378        $('#edit-field-apellidos-wrapper').toggle();
1379        $('#edit-account ').toggle();
1380        $('#edit-contact').toggle();
1381        $('#edit-language').toggle();
1382      });
1383
1384
1385
1386      setTimeout(function(){
1387        jQuery(".vjs-big-play-button").on("click", function(){
1388          if (jQuery('.vjs-user-active').length){
1389            jQuery('.super-banner .footer-video').hide();
1390            }
1391        });
1392      },8000);
1393
1394
1395      if ( $("#block-views-block-blog-categorias-block-1").length > 0 ) {
1396
1397        $('html, body').animate({
1398            scrollTop: $("#block-views-block-blog-categorias-block-1").offset().top
1399        }, 500);
1400
1401      }
1402      setTimeout(function(){
1403        if (jQuery('.super-banner .video-js').length > 0){
1404          jQuery('.super-banner .video-js .vjs-big-play-button').each(function() {
1405            $( this ).on('click', function(e) {
1406              e.preventDefault;
1407              jQuery('.super-banner footer').addClass('open-video');
1408            });
1409          });
1410        }
1411      },900);
1412
1413  /**
1414   * Only applies the “See more” button for nodes of type ‘article’.
1415   * Select body fields inside article nodes that are descendants of a block with class ‘block-mainpagec
1415ontent’.
1416   */
1417  Drupal.behaviors.toggleContentHeight = {
1418    attach: function (context) {
1419      const maxHeight = 700;
1420      const $fields = $(once('toggleContentHeight', $(
1421        '.node--type-destino, .node--type-evento, .node--type-article, .node--type-actividad, .node--type-destino-reuniones',
1422        context
1423      ).find('[class*="block-mainpagecontent"] .field-name-body')));
1424
1425      $fields.each(function () {
1426        const $container = $(this);
1427        const $content = $container.find('.field-item');
1428        if ($content.height() > maxHeight) {
1429          $container.addClass('content-collapsed');
1430          const translations = {
1431            'en': 'View more',
1432            'es': 'Ver más',
1433            'de': 'Mehr anzeigen',
1434            'fr': 'Voir plus',
1435            'zh-hans': '查看更多',
1436            'ru': 'Показать больше',
1437            'pt': 'Ver mais',
1438            'ja': 'もっと見る',
1439            'ko': '더 보기'
1440          };
1441          const lang = drupalSettings.path.currentLanguage.toLowerCase();
1442          const verMas = translations[lang] || translations['en'];
1443          const $button = $('<div class="ver-mas"><button>' + verMas + '</button></div>');
1444          $container.append($button);
1445          $button.on('click', function () {
1446            $container.removeClass('content-collapsed');
1447            $button.remove();
1448          });
1449        }
1450      });
1451    },
1452  };
1453
1454  /**
1455  *
1456  * View Name: Destinos - Fotografías
1457  *   |- System Name: destinos_fotografias
1458  *     |- Block Name: block_1
1459  * Descrtiption: Initialize the OwlCarousel in block_1 Destinations - Photographs (Content) Instagram posts.
1460  */
1461  Drupal.behaviors.owlCarouselPostsInstagram = {
1462    attach: function (context) {
1463      if (typeof $.fn.owlCarousel1 === 'function') {
1464        $(once('destinoColumnas', '.destino-columnas .views-field-field-posts-instagram ul', context))
1465          .owlCarousel1({
1466            center: true,
1467            loop: false,
1468            navigation: false,
1469            responsive: true,
1470            itemsCustom: [
1471              [0, 1],
1472              [768, 2],
1473            ],
1474          });
1475      } else if ($('.destino-columnas .views-field-field-posts-instagram ul', context).length) {
1476        // Owl 1 ya no va en todas las páginas: sin el carrusel en el contexto no hay nada que
1477        // esperar (antes este reintento se repetía cada 100 ms para siempre).
1478        setTimeout(function () {
1479          Drupal.behaviors.owlCarouselPostsInstagram.attach(context);
1480        }, 100);
1481      }
1482    },
1483  };
1484
1485  /**
1486  *
1487  * View Name: Destinos - Fotografías
1488  *   |- System Name: destinos_fotografias
1489  *     |- Block Name: block_1
1490  * Descrtiption: Validation of Instagram posts and comments..
1491  */
1492  Drupal.behaviors.destinoValidacion = {
1493    attach: function (context, settings) {
1494      validarDestino(context);
1495    }
1496  };
1497  function validarDestino(context) {
1498    const $destino = $('.destino-columnas', context);
1499    const $fieldset1 = $destino.find('.views-field-fieldset-1');
1500    const $fieldset2 = $destino.find('.views-field-fieldset-2');
1501    const $instagramContent = $destino.find('.views-field-field-posts-instagram .field-content');
1502    const $carousel = $fieldset2.find('.owl-carousel');
1503
1504    const instagramVacio = $instagramContent.length === 0 || $instagramContent.is(':empty');
1505    const comentariosVacios = $carousel.length === 0 || $carousel.children().length === 0;
1506
1507    if (instagramVacio) {
1508      $fieldset1.hide();
1509    }
1510
1511    if (comentariosVacios) {
1512      $fieldset2.hide();
1513    }
1514
1515    if (instagramVacio && comentariosVacios) {
1516      $destino.hide();
1517    } else if (instagramVacio && !comentariosVacios) {
1518      $fieldset2.find('.columns.large-6').removeClass('large-6').addClass('large-12');
1519    } else if (!instagramVacio && comentariosVacios) {
1520      $fieldset1.find('.columns.large-6').removeClass('large-6').addClass('large-12');
1521    }
1522  }
1523
1524
1525  /**
1526  *
1527  * Menus Name: Menú Destino
1528  *  |- Block Name: Menú Destino
1529  *     |- System Name: menudestino
1530  * Descrtiption: Menu anchors content type article destination.
1531  */
1532  Drupal.behaviors.menuAnclasDestino = {
1533    attach: function (context) {
1534      if ($('.node--type-destino').length) {
1535        const $menu = $("nav[id*='block-menudestino']", context);
1536        const $encabezado = $("#block-views-block-encabezado-destino-header-big", context);
1537
1538        // Fijar el menú al hacer scroll
1539        if (once('menuAnclasDestino-scroll', 'body').length) {
1540          $(window).on('scroll', function () {
1541            fijarMenu($menu, $encabezado.height());
1542          });
1543        }
1544
1545        // Activar enlace seleccionado
1546        $(once('menuAnclasDestino-click', $menu.find('ul.menu li.menu-item', context))) .on('click', function (e) {
1547          e.preventDefault();
1548          const $this = $( this );
1549          const $parent = $this.closest('.menu');
1550          $parent.find('a.active').removeClass('active');
1551          $this.find('a').addClass('active');
1552
1553          const $selector = $this.find("a").attr('href');
1554          if ($selector && $selector.startsWith('#')) {
1555            const $target = $($selector);
1556            if ($target.length) {
1557              $('html, body').animate({
1558                scrollTop: $target.offset().top - $("#header").outerHeight() - $menu.outerHeight(),
1559                $target: ''
1560              }, 1000);
1561            }
1562          }
1563        });
1564
1565        if ($.fn.owlCarousel1) {
1566          $("nav[id='block-menudestino'] ul.menu").owlCarousel1({
1567            loop:false,
1568            autoWidth:true,
1569            navigation:true,
1570            pagination: false,
1571            rewindNav:true,
1572            afterInit: function() {
1573              var owlInstance = this;
1574              validarSeccionesVacias($menu);
1575              fixOwlPositions(owlInstance);
1576              if ($(window).width() >= 992) {
1577                destroyOwlCarousel();
1578              }
1579            },
1580            afterMove: function() {
1581              fixOwlPositions(this);
1582            },
1583            afterUpdate: function() {
1584              recalculateCarousel(this);
1585            }
1586          });
1587        }
1588      }
1589    }
1590  }
1591
1592  function validarSeccionesVacias($menu) {
1593    $menu.find('li.menu-item a').each(function () {
1594      const $link = $(this);
1595      const href = $link.attr('href');
1596      if (!href || !href.startsWith('#')) {
1597        return;
1598      }
1599      const id = href.replace('#', '');
1600      const $section = $('#' + id);
1601
1602      if (!$section.length) {
1603        $link.closest('li.menu-item').hide();
1604        $link.closest('.owl-item').hide();
1605        return;
1606      }
1607
1608      // Views blocks: el wrapper js-view-dom-id vacío = sin resultados.
1609      // Bloques no-View (NAV, etc.): checa texto visible.
1610      const $viewDom = $section.find('[class*="js-view-dom-id"]').first();
1611      const hasContent = $viewDom.length
1612        ? $viewDom.children().length > 0
1613        : $section.text().trim().length > 0;
1614
1615      if (!hasContent) {
1616        $section.hide();
1617        $link.closest('li.menu-item').hide();
1618        $link.closest('.owl-item').hide();
1619      }
1620    });
1621  }
1622  // Definimos fijarMenu fuera del behavior para reutilizarlo o testearlo fácilmente
1623  function fijarMenu($menu, encabezadoHeight) {
1624    fijarConHueco($menu, 'fixed-sub', $(window).scrollTop() > encabezadoHeight);
1625  }
1626
1627  // Un menú que pasa a position:fixed sale del flujo y el contenido de debajo subía su alto de
1628  // golpe (CLS 0,10 en móvil y 0,08 en escritorio en /es/cartagena): mientras esté fijo, un hueco
1629  // con el alto que tenía en el flujo ocupa su sitio. El alto se mide ANTES de fijarlo, porque
1630  // al fijarse cambian sus márgenes. Sirve para las dos clases que fijan el menú de destino.
1631  function fijarConHueco($menus, clase, fijar) {
1632    $menus.each(function () {
1633      const $menu = $(this);
1634      if ($menu.hasClass(clase) === fijar) {
1635        return;
1636      }
1637      const alto = $menu.outerHeight(true);
1638      const enFlujo = ['static', 'relative'].includes($menu.css('position'));
1639      $menu.toggleClass(clase, fijar);
1640      const $hueco = $menu.prev('.menu-fijo-hueco');
1641      if ($menu.css('position') === 'fixed') {
1642        if (!$hueco.length && enFlujo) {
1643          $('<div class="menu-fijo-hueco" aria-hidden="true"></div>').css('height', alto + 'px').insertBefore($menu);
1644        }
1645      } else {
1646        $hueco.remove();
1647      }
1648    });
1649  }
1650
1651  // Función auxiliar: Recalcular el carrusel
1652  function recalculateCarousel(owl) {
1653    const $wrapper = owl.$owlWrapper;
1654    const $items = owl.$owlItems;
1655    $items.css('width', '');
1656    $wrapper.css('width', '');
1657    owl.currentItem = 0;
1658    setTimeout(function() {
1659      fixOwlPositions(owl);
1660    }, 50);
1661  }
1662
1663  // Función auxiliar: Corregir las posiciones de Owl Carousel
1664  function fixOwlPositions(owl) {
1665    const $wrapper = owl.$owlWrapper;
1666    const $items = owl.$owlItems;
1667    let totalWidth = 0;
1668    let currentPosition = 0;
1669    $items.each(function(index) {
1670      $(this).css('width', 'auto');
1671      const itemWidth = $(this).outerWidth(true);
1672      if (index < owl.currentItem) {
1673        currentPosition += itemWidth;
1674      }
1675      totalWidth += itemWidth;
1676    });
1677    $wrapper.css({
1678      'width': totalWidth + 'px',
1679      'transition': 'all',
1680      'transform': 'translate3d(-' + currentPosition + 'px, 0px, 0px)'
1681    });
1682  }
1683
1684  // Función para destruir el carrusel
1685  function destroyOwlCarousel() {
1686    const $menu = $("nav[id='block-menudestino'] ul.menu");
1687    $menu.find('.owl-controls').remove();
1688  }
1689  /**
1690   *
1691   * Types of content: Destino
1692   * View name: FAQ tabs por destino
1693   * Machine name: faq_tabs_por_destino
1694   * Descrtiption: Bloque de preguntas frecuentes para nodos de tipo Destino.
1695   */
1696  let resizeTimeout;
1697  Drupal.behaviors.preguntasFrecuentesDestino = {
1698    attach: function (context) {
1699
1700      const $owl = $(once('faq-owl', '.view-destinos-faq .faq-tabs-block ul.tabs', context));
1701
1702      if (!$owl.length || !$.fn.owlCarousel1) return;
1703
1704      // init inicial
1705      manageOwl($owl);
1706
1707      // resize controlado
1708      if (once('faq-owl-resize', 'body').length) {
1709        $(window).on('resize', function () {
1710          clearTimeout(resizeTimeout);
1711
1712          resizeTimeout = setTimeout(function () {
1713            manageOwl($owl);
1714          }, 200);
1715        });
1716      }
1717
1718    }
1719  };
1720  // INIT OWL
1721  function initOwl($owl) {
1722    $owl.owlCarousel1({
1723      loop: false,
1724      autoWidth: true,
1725      navigation: true,
1726      pagination: false,
1727      rewindNav: true,
1728
1729      afterInit: function () {
1730        fixOwlPositions(this);
1731      },
1732
1733      afterMove: function () {
1734        fixOwlPositions(this);
1735      },
1736
1737      afterUpdate: function () {
1738        recalculateCarousel(this);
1739      }
1740    });
1741  }
1742
1743  // MANAGE (INIT / DESTROY)
1744  function manageOwl($owl) {
1745    const width = $(window).width();
1746    const instance = $owl.data('owlCarousel');
1747
1748    if (width >= 992) {
1749      if (instance) {
1750        cleanupCarousel($owl);
1751      }
1752      return;
1753    }
1754
1755    if (!instance) {
1756      initOwl($owl);
1757    } else {
1758      recalculateCarousel(instance);
1759    }
1760  }
1761
1762  // DESTROY CLEAN
1763  function cleanupCarousel($el) {
1764    const owl = $el.data('owlCarousel');
1765    if (owl) {
1766      owl.destroy();
1767    }
1768    $el
1769      .removeClass('owl-carousel owl-theme owl-loaded')
1770      .removeAttr('style');
1771    $el.find('.owl-item').children().unwrap();
1772    $el.find('.owl-wrapper').children().unwrap();
1773    $el.find('.owl-wrapper-outer').children().unwrap();
1774    $el.find('.owl-controls').remove();
1775  }
1776})(jQuery, Drupal, once);
1777
1778  // Push notifications
1779(function (window) {
1780  'use strict';
1781
1782  let isSubscribed = false;
1783
1784  const urlB64ToUint8Array = base64String => {
1785    const padding = '='.repeat((4 - (base64String.length % 4)) % 4)
1786    const base64 = (base64String + padding).replace(/\-/g, '+').replace(/_/g, '/')
1787    const rawData = atob(base64)
1788    const outputArray = new Uint8Array(rawData.length)
1789    for (let i = 0; i < rawData.length; ++i) {
1790      outputArray[i] = rawData.charCodeAt(i)
1791    }
1792    return outputArray
1793  }
1794
1795  let subsButton;
1796
1797  function createPushControl(){
1798    if(subsButton = document.getElementById('push-subs-button')){}
1799    else {
1800      subsButton = document.createElement('li');
1801      subsButton.id = 'push-subs-button';
1802      subsButton.innerHTML = '<i class="fa fa-bell-o"></i><div>Notifications</div>'
1803      // document.body.appendChild(subsButton);
1804      document.querySelector('#block-menuherramientas .menu').appendChild(subsButton);
1805
1806      var css = '',
1807          head = document.head || document.getElementsByTagName('head')[0],
1808          style = document.createElement('style');
1809
1810      // css += ' #push-subs-button { position: fixed; bottom: 15; left: 15px; border-radius: 50%; padding: 10px; background: #ccc; z-index: 99; border: 1px solid; text-align:center; width: 45px; height: 45px;}';
1811      // css += ' #push-subs-button.active { background: #e60f4b; color: #fff; border-color: #fff; }';
1812      // css += ' #push-subs-button .fa {font-size: 20px}';
1813
1814      css += ' #push-subs-button { color:#fff; text-align: center; background: #999 !important; cursor: pointer;}';
1815      css += ' #push-subs-button.active { background: #e60f4b !important; color: #fff; border-color: #fff; }';
1816      css += ' #push-subs-button .fa {font-size: 25px; display: block; margin-top: 17px;}';
1817      css += ' #block-menuherramientas .menu {flex-wrap: nowrap}';
1818
1819
1820      style.type = 'text/css';
1821      if (style.styleSheet){
1822        style.styleSheet.cssText = css;
1823      } else {
1824        style.appendChild(document.createTextNode(css));
1825      }
1826
1827      head.appendChild(style);
1828
1829      subsButton.addEventListener('click', function () {
1830        if (isSubscribed) {
1831          unsubscribePush();
1832        }
1833        else {
1834          subscribePush();
1835        }
1836      });
1837
1838    }
1839  }
1840
1841  function isPushSupported() {
1842    if (!('Notification' in window)) {
1843      console.log('Sorry, Notification isn\'t supported in your browser.');
1844      return;
1845    }
1846
1847    if (Notification.permission === 'denied') {
1848      console.log('User has blocked push notification.');
1849      return;
1850    }
1851
1852    if ('PushManager' in window){
1853      createPushControl();
1854    } else {
1855      console.log('Sorry, Push notification isn\'t supported in your browser.');
1856      return;
1857    }
1858
1859    navigator.serviceWorker.ready
1860      .then(function (registration) {
1861        registration.pushManager.getSubscription()
1862          .then(function (subscription) {
1863            if (subscription) {
1864              changePushStatus(true);
1865            }
1866            else {
1867              changePushStatus(false);
1868            }
1869          })
1870          .catch(function (error) {
1871            console.log('Error occurred while enabling push ', error);
1872          });
1873      });
1874  }
1875
1876  function subscribePush() {
1877    navigator.serviceWorker.ready.then(function(registration) {
1878      if (!registration.pushManager) {
1879        console.log('Your browser doesn\'t support push notification.');
1880        return false;
1881      }
1882
1883      const applicationServerKey = urlB64ToUint8Array('BP9CvbEOjU4xakt82_CKb9ISS9cc1L5JM-068k5wubFmS02nlGEtMb5ChTuqGRibfaQAj2pwUVpBhJQzUn0_DpQ')
1884
1885      registration.pushManager.subscribe({
1886          userVisibleOnly: true,
1887          applicationServerKey
1888        })
1889        .then(function (subscription) {
1890          console.log('Subscribed successfully.');
1891          console.info('Push notification subscribed.');
1892          console.log(subscription);
1893          console.log(JSON.stringify(subscription));
1894
1895          fetch('https://ct.binit.co/push/subscribe', {
1896            method: 'post',
1897            headers: {
1898              'Content-Type': 'application/json',
1899            },
1900
1901            body: JSON.stringify(subscription),
1902          })
1903          changePushStatus(true);
1904        })
1905        .catch(function (error) {
1906          changePushStatus(false);
1907          console.log('Push notification subscription error: ', error);
1908        });
1909    })
1910  }
1911
1912  function unsubscribePush() {
1913    navigator.serviceWorker.ready
1914    .then(function(registration) {
1915      registration.pushManager.getSubscription()
1916        .then(function (subscription) {
1917          if(!subscription) {
1918            console.log('Unable to unregister push notification.');
1919            return;
1920          }
1921
1922          subscription.unsubscribe()
1923            .then(function () {
1924              console.log('Unsubscribed successfully.');
1925              changePushStatus(false);
1926            })
1927            .catch(function (error) {
1928              console.log(error);
1929            });
1930        })
1931        .catch(function (error) {
1932          console.log('Failed to unsubscribe push notification.');
1933        });
1934    })
1935  }
1936
1937  //To change status
1938  function changePushStatus(status) {
1939    // fabPushElement.dataset.checked = status;
1940    isSubscribed = status;
1941    const fa = subsButton.querySelector('.fa');
1942    if (status) {
1943      subsButton.classList.add('active');
1944      fa.classList.add('fa-bell-o');
1945      fa.classList.remove('fa-bell-slash-o');
1946    }
1947    else {
1948      subsButton.classList.remove('active');
1949      fa.classList.remove('fa-bell-o');
1950      fa.classList.add('fa-bell-slash-o');
1951    }
1952  }
1953
1954  // isPushSupported(); //Disabled for this release
1955})(window);
1956
1957// PWA Caching
1958ctPwaCache = (function(){
1959  // alert('build 003');
1960  var CACHENAME = 'ct-v2';
1961  var REQUEST_TIME = (new Date).getTime();
1962  var cl = drupalSettings.path.currentLanguage;
1963
1964  function init(){
1965
1966    var isPWA = (window.matchMedia('(display-mode: standalone)').matches) || (window.navigator.standalone) || document.location.search == '?user_mode=app';
1967
1968    // We don't cache outsite PWA
1969    if(!isPWA){
1970      console.log('Sorry is not PWA.');
1971      return;
1972    };
1973
1974    // Cache exist and is still valid then return;
1975    if(localStorage.getItem('pwaCacheExpire') > (REQUEST_TIME)
1976        && localStorage.getItem('pwaLanguage') == cl){
1977      console.log('Cache exists. Skiping.');
1978      return;
1979    }
1980
1981    // Else, we will create cache.
1982    // console.log('Creating cache.');
1983
1984    localStorage.setItem('pwaCacheExpire', REQUEST_TIME + 86400000); // 24 hours
1985
1986    // We use pwaLanguage into PWA
1987    localStorage.setItem('pwaLanguage', cl);
1988    processCache();
1989    // navigator.serviceWorker.controller.postMessage({command: 'refresh language cache', lang: cl});
1990  }
1991
1992  function removeCache(){
1993    return caches.delete(CACHENAME);
1994  }
1995
1996  function createCache(){
1997    return caches.open(CACHENAME)
1998      .then(cache => {
1999        const urls = [
2000          "/pwa/fonts/SourceSansPro-Bold.8669b870.ttf",
2001          "/pwa/fonts/SourceSansPro-Regular.c1678b46.ttf",
2002          "/pwa/fonts/SourceSansPro-SemiBold.83476a89.ttf",
2003
2004          "/pwa/img/back-button.22000555.svg",
2005          "/pwa/img/presidencia.5338df2d.jpg",
2006          "/pwa/img/logo.85b90839.png",
2007          "/pwa/img/logo.png",
2008          "/pwa/img/pattern-01.fbf95c59.png",
2009
2010          "/pwa/",
2011
2012          "/pwa/css/app.cfadf855.css",
2013          "/pwa/js/app.c63e9215.js",
2014          "/pwa/js/chunk-vendors.ba3248d5.js",
2015
2016          "/" + cl + "/pwa/translations",
2017          "/" + cl + "/pwa/superbanner",
2018          "/" + cl + "/pwa/destination",
2019          "/" + cl + "/pwa/activities",
2020          "/" + cl + "/pwa/practical-information",
2021          "/" + cl + "/pwa/blog",
2022        ];
2023
2024      console.log('Cachechere');
2025
2026      var c = [];
2027      urls.forEach(v => {
2028        try{
2029          c.push(cache.add(v));
2030        } catch (e){console.log(e)}
2031      })
2032
2033      return Promise.all(c);
2034    })
2035    .catch(e => {console.log(e)})
2036  }
2037
2038  async function processCache(){
2039    console.log('Removing outdated cache.');
2040    await removeCache();
2041    console.log('Creating new cache.');
2042
2043    setTimeout(() => {
2044      createCache()
2045    }, 700);
2046
2047    console.log('PWA cache process finished.');
2048  }
2049
2050  return {
2051    init,
2052    processCache,
2053  }
2054
2055})()
2056
2057function swSetLang(){
2058  var cl = localStorage.getItem('pwaLanguage') || '';
2059  // console.log('lang', cl);
2060  navigator.serviceWorker.controller.postMessage({command: 'set var', name: 'lang', value: cl});
2061}
2062
2063if ( "serviceWorker" in navigator ) {
2064  window.addEventListener('load', function() {
2065    navigator.serviceWorker
2066      .register( drupalSettings.path.baseUrl + "sw.js?tok=001" )
2067        .then(function(reg) {
2068          console.log('Service Worker registered for scope: ' + reg.scope);
2069          setTimeout(() => {
2070            ctPwaCache.init();
2071            swSetLang();
2072          }, 1000);
2073        })
2074        .catch(function(err) { console.log('Service Worker registration fail: ' + err); })
2075    ;
2076  });
2077}
2078
2079/**
2080*
2081* Webforms name: Influenciadores
2082*  |- System Name: influenciadores
2083* Descrtiption: Fixed scroll - imagen formualrio de influenciadores.
2084*/
2085(function ($, Drupal, once) {
2086  Drupal.behaviors.bannerInfluencerDesktop = {
2087    attach: function (context, settings) {
2088      const $banner = $('.banner-container-influencer', context);
2089
2090      if ($banner.length && $(window).width() >= 900) {
2091        const bannerOriginalOffsetTop = $banner.offset().top;
2092        const bannerOffsetTrigger = bannerOriginalOffsetTop - 90;
2093
2094        if (once('fixedBannerTest', 'body').length) {
2095          $(window).on('scroll.fixedBannerTest', function () {
2096            const scrollTop = $(window).scrollTop();
2097            const windowHeight = $(window).height();
2098            const documentHeight = $(document).height();
2099            const bannerHeight = $banner.outerHeight();
2100
2101            const stopPoint = documentHeight - windowHeight - bannerHeight - 50;
2102
2103            if (scrollTop >= bannerOffsetTrigger && scrollTop < stopPoint) {
2104              $banner.css({
2105                position: 'fixed',
2106                top: '0',
2107                left: '0',
2108                width: '40%',
2109                'z-index': '998',
2110                display: 'flex',
2111                'flex-direction': 'column',
2112                'justify-content': 'flex-end',
2113              });
2114            } else if (scrollTop >= stopPoint) {
2115              $banner.css({
2116                position: 'absolute',
2117                top: (stopPoint - 80) + 'px',
2118                left: '0',
2119                width: '40%',
2120                'z-index': '998'
2121              });
2122            } else {
2123              $banner.css({
2124                position: '',
2125                top: '',
2126                left: '',
2127                width: '',
2128                'z-index': '',
2129                display: '',
2130                'flex-direction': '',
2131                'justify-content': ''
2132              });
2133            }
2134          });
2135        }
2136      }
2137    }
2138  };
2139})(jQuery, Drupal, once);
2140;
2141(function ($, Drupal, once) {
2142  /**
2143   * Module: Modal Page
2144   * Class name: modal-proco-style.
2145   * Description: Function to stop the video in the iframe when the modal is closed.
2146   */
2147  Drupal.behaviors.modalPageCloseIframe = {
2148    attach(context) {
2149      // Selecciona la modal del módulo modal_page.
2150      var $modal = $('#js-modal-page-show-modal', context);
2151
2152      if ($modal.length) {
2153        $(once('stopVideo', $modal)).on('hidden.bs.modal', function () {
2154          // Encuentra el iframe dentro de la modal
2155          var $iframe = $(this).find('iframe');
2156
2157          // Reinicia el src del iframe para detener el video
2158          $iframe.each(function () {
2159            var src = $(this).attr('src');
2160            $(this).attr('src', '');
2161            $(this).attr('src', src);
2162          });
2163        });
2164      }
2165    },
2166  };
2167})(jQuery, Drupal, once);
2168;
2169let hiddenTranslation=true;let translationCustomContent=null;let translationButton=null;let activeContent=true;let translateLinks=null;var timeoutId;(function($,Drupal,drupalSettings){$(document).ready(function(){translationCustomContent=$('#translation-custom-content');translateLinks=$('#translation-custom-content ul li a');translationButton=$('#translation-custom-button');gtranslateOption=$('.gtranslate .switcher .option a');gtranslateSelectedElement=jQuery('.switcher .selected a span img');var inputSelect=drupalSettings.dropdown_lenguaje_custom.inputSelect;var defaultGtranslate=drupalSettings.dropdown_lenguaje_custom.defaultGtranslate;if(checkCookie('googtrans')){translationCustomContent.addClass('gtranslate_active');var current_language=getCookie('current_language');var pre_language=getCookie('googtrans');var arrayPerf=pre_language.split("/");if(Array.isArray(arrayPerf)&&arrayPerf.length>2){$('.translation-custom-button').html(arrayPerf[2].toUpperCase());$('.translation-custom-button').append('<span class="dropbutton-arrow"></span>');}if(current_language!=null){const result=decodeURIComponent(current_language);jQuery('.switcher .selected a').html(result);}}if(jQuery('.switcher .selected a span img').attr('alt')!=undefined&&jQuery('.switcher .selected a span img').attr('alt')==defaultGtranslate)jQuery('.switcher .selected a').html(inputSelect);translationButton.click(function(){if(translationCustomContent.css('display')=='block')translationCustomContent.hide();else translationCustomContent.show();});translationButton.on('mouseleave',function(){timeoutId=setTimeout(function(){translationCustomContent.hide();},500);});translationCustomContent.on('mouseenter',function(){clearTimeout(timeoutId);translationCustomContent.show();});translationCustomContent.on('mouseleave',function(event){timeoutId=setTimeout(function(){translationCustomContent.hide();},500);});translateLinks.on('click',function(event){event.preventDefault();let _href=jQuery(this).attr('href');document.cookie=`googtrans=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;`;document.cookie=`googtrans=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/; domain=.${window.location.hostname};`;document.cookie=`googtrans=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/; domain=.colombia.co;`;document.cookie=`current_language=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;`;window.location.href=_href;});$(document).on('click','.gtranslate .switcher .option a',function(){var currentLanguage=jQuery(this).find('img').attr('alt');createCoockie('current_language',currentLanguage);var inicio=Date.now();(function esperarCookie(){var transcurrido=Date.now()-inicio;if((transcurrido>=1500&&checkCookie('googtrans'))||transcurrido>=10000){location.reload();return;}setTimeout(esperarCookie,250);})();});});})(jQuery,Drupal,drupalSettings);function checkCookie(cookieName){var cookies=document.cookie.split(';');for(var i=0;i<cookies.length;i++){var cookie=cookies[i].trim();if(cookie.indexOf(cookieName+'=')===0)return true;}return false;}function getCookie(nombre){const cookies=document.cookie.split(';');for(let i=0;i<cookies.length;i++){const cookie=cookies[i].trim();if(cookie.indexOf(nombre+'=')===0)return cookie.substring(nombre.length+1,cookie.length);}return null;}function createCoockie(cookieName,valueCoockie){var fechaExpiracion=new Date();fechaExpiracion.setDate(fechaExpiracion.getDate()+7);var cookieString=cookieName+"="+encodeURIComponent(valueCoockie);if(fechaExpiracion)cookieString+="; expires="+fechaExpiracion.toUTCString();document.cookie=cookieString;};
2170jQuery(document).ready(function(){jQuery('.switcher .selected').click(function(){if(!(jQuery('.switcher .option').is(':visible')))jQuery('.switcher .option').stop(true,true).slideDown(400);});jQuery('body').not('.switcher .selected').mousedown(function(){if(jQuery('.switcher .option').is(':visible'))jQuery('.switcher .option').stop(true,true).slide
2170Up(400);});});;
2171(function($,_,Drupal,drupalSettings){'use strict';$('.month').click(function(e){e.preventDefault();var id=$(this).find('a').attr('href');$('.month').removeClass('active');$('.month > a').removeClass('text-white');$('.month > a').attr('aria-expanded','false');$(this).addClass('active');$('.month-events').removeClass('show');$(this).find('a').addClass('text-white');if($(this).find('a').attr('aria-expanded')=='false'){$(this).find('a').attr('aria-expanded','true');$(id).addClass('show');}else{$(this).find('a').attr('aria-expanded','false');$(id).removeClass('show');}});})(window.jQuery,window._,window.Drupal,window.drupalSettings);;
2172((Drupal)=>{Drupal.behaviors.lazy={attach(context,settings){const utils={extend(obj,src){Object.keys(src).forEach((key)=>{obj[key]=src[key];});return obj;},once(selector){return (context||document).querySelector(selector);},loadScript(url){if(document.querySelectorAll(`script[src="${url}"]`).length===0){const script=document.createElement('script');const scripts=document.getElementsByTagName('script')[0];script.src=url;script.async=true;scripts.parentNode.insertBefore(script,scripts);}}};if(utils.once('body',context)){const lazysizes=settings.lazy.lazysizes||{};if(!settings.lazy.preferNative){window.lazySizesConfig=window.lazySizesConfig||{};window.lazySizesConfig=utils.extend(window.lazySizesConfig,lazysizes);if(!Object.entries)Object.entries=(obj)=>{const ownProps=Object.keys(obj);let i=ownProps.length;const resArray=new Array(i);while(i--)resArray[i]=[ownProps[i],obj[ownProps[i]]];return resArray;};const min=settings.lazy.minified?'.min':'';Object.entries(lazysizes.plugins).forEach((path)=>{utils.loadScript(`${settings.lazy.libraryPath}/plugins/${path[1]}${min}.js`);});utils.loadScript(`${settings.lazy.libraryPath}/lazysizes${min}.js`);}}}};})(Drupal);;
2173document.addEventListener('DOMContentLoaded', function () {
2174  const nav = document.querySelector('#block-navegacionprincipal');
2175  if (!nav) return;
2176
2177  const links = nav.querySelectorAll('.menu a');
2178
2179  // Helpers
2180  const norm = (p) => (p || '/').split('?')[0].split('#')[0].replace(/\/+$/, '') || '/';
2181  const current = norm(window.location.pathname);
2182
2183  // Limpia estado previo
2184  links.forEach(a => {
2185    a.classList.remove('is-active');
2186    a.closest('li')?.classList.remove('is-active');
2187    a.removeAttribute('aria-current');
2188  });
2189
2190  // 1) Caso especial: /user/.../edit → activa todos los que apunten a user/edit
2191  if (/^\/[^/]*\/?user(?:\/\d+)?\/edit$/.test(current) || /^\/user(?:\/\d+)?\/edit$/.test(current)) {
2192    links.forEach(a => {
2193      const sys = a.getAttribute('data-drupal-link-system-path') || '';
2194      if (sys === 'user/edit') {
2195        a.classList.add('is-active');
2196        a.setAttribute('aria-current', 'page');
2197        a.closest('li')?.classList.add('is-active');
2198      }
2199    });
2200  } else {
2201    // 2) Regla genérica: coincide por alias (href) con la ruta actual
2202    let matched = false;
2203    links.forEach(a => {
2204      const hrefPath = norm(new URL(a.getAttribute('href'), window.location.origin).pathname);
2205      if (hrefPath && hrefPath === current) {
2206        a.classList.add('is-active');
2207        a.setAttribute('aria-current', 'page');
2208        a.closest('li')?.classList.add('is-active');
2209        matched = true;
2210      }
2211    });
2212
2213    // 3) (Opcional) Si no hubo match exacto, marca por "trail" (útil en secciones)
2214    if (!matched) {
2215      links.forEach(a => {
2216        const hrefPath = norm(new URL(a.getAttribute('href'), window.location.origin).pathname);
2217        if (hrefPath !== '/' && hrefPath && current.startsWith(hrefPath + '/')) {
2218          a.classList.add('is-active');
2219          a.closest('li')?.classList.add('is-active');
2220        }
2221      });
2222    }
2223
2224    // 4) Otros casos especiales
2225    if (/^\/[^/]*\/?user(?:\/\d+)?$/.test(current) || /^\/user(?:\/\d+)?$/.test(current)) {
2226      links.forEach(a => {
2227        const sys = a.getAttribute('data-drupal-link-system-path') || '';
2228        if (sys === 'user') {
2229          a.classList.add('is-active');
2230          a.setAttribute('aria-current', 'page');
2231          a.closest('li')?.classList.add('is-active');
2232        }
2233      });
2234    }
2235    if (current.endsWith('/user/logout')) {
2236      links.forEach(a => {
2237        const sys = a.getAttribute('data-drupal-link-system-path') || '';
2238        if (sys === 'user/logout') {
2239          a.classList.add('is-active');
2240          a.setAttribute('aria-current', 'page');
2241          a.closest('li')?.classList.add('is-active');
2242        }
2243      });
2244    }
2245  }
2246});;
2247(function ($, Drupal, once) {
2248
2249  Drupal.behaviors.subsectorDinamico = {
2250    attach: function (context) {
2251
2252      const cache = {};
2253      const $sector = $(once('sector-change', '[name="sector_turismo[]"]', context));
2254      const $subsector = $('[name="subsectores_turismo[]"]', context);
2255      const $subsectorWrapper = $subsector.closest('.js-form-item');
2256
2257      if (!$sector.length || !$subsector.length || !$subsectorWrapper.length) return;
2258
2259      const loadSubsectores = () => {
2260        const values = $sector.val() || [];
2261        const previousValues = $subsector.val() || [];
2262
2263        $subsector.prop('disabled', true);
2264
2265        if (!values.length) {
2266          resetOptions();
2267          return;
2268        }
2269
2270        const cacheKey = values.slice().sort().join(',');
2271
2272        if (cache[cacheKey]) {
2273          renderOptions(cache[cacheKey], previousValues);
2274          return;
2275        }
2276
2277        const query = encodeURIComponent(values.join(','));
2278
2279        fetch(`/apiV1/subsectores?names=${query}`)
2280          .then(res => res.json())
2281          .then(data => {
2282            cache[cacheKey] = data;
2283            renderOptions(data, previousValues);
2284          })
2285          .catch((err) => {
2286            console.error('Error cargando subsectores', err);
2287            resetOptions();
2288          });
2289      };
2290
2291      const resetOptions = () => {
2292        $subsector.empty().val(null).trigger('change');
2293        $subsector.prop('disabled', false);
2294      };
2295
2296      const renderOptions = (groups, previousValues) => {
2297        $subsector.empty();
2298
2299        groups.forEach(group => {
2300          const $optgroup = $('<optgroup>')
2301            .attr('label', group.parent_name)
2302            .addClass('select2-results__group');
2303
2304          group.children.forEach(item => {
2305            const $option = $('<option>')
2306              .val(item.name) // value = name
2307              .text(item.name);
2308            $optgroup.append($option);
2309          });
2310
2311          $subsector.append($optgroup);
2312        });
2313
2314        // mantener selección válida
2315        const allOptionValues = [];
2316        $subsector.find('option').each(function () { allOptionValues.push($(this).val()); });
2317        const valuesToKeep = previousValues.filter(v => allOptionValues.includes(v));
2318
2319        $subsector.val(valuesToKeep).trigger('change');
2320        $subsector.prop('disabled', false);
2321      };
2322
2323      const toggleSubsectorBySector = () => {
2324        const selected = $sector.val() || [];
2325        const allowed = ['Naturaleza y aventura', 'Cultura']; // valores permitidos
2326
2327        const mostrar = selected.some(v => allowed.includes(v));
2328
2329        if (mostrar) {
2330          $subsectorWrapper.show();
2331
2332          // Agregar required
2333          $subsector.prop('required', true);
2334          $subsectorWrapper.addClass('js-form-required'); // clase Webform
2335        } else {
2336          $subsectorWrapper.hide();
2337
2338          // Quitar required
2339          $subsector.prop('required', false);
2340          $subsectorWrapper.removeClass('js-form-required');
2341        }
2342      };
2343
2344
2345      $sector.on('change', () => {
2346        loadSubsectores();
2347        toggleSubsectorBySector();
2348      });
2349
2350
2351      if ($sector.val() && $sector.val().length) {
2352        loadSubsectores();
2353      }
2354      toggleSubsectorBySector();
2355
2356    }
2357  };
2358
2359  Drupal.behaviors.fixPasswordType = {
2360    attach: function (context) {
2361
2362      $(once('fix-password', '#edit-contrasena-operador, #edit-confirma-contrasena', context))
2363        .each(function () {
2364          this.type = 'password';
2365        });
2366
2367    }
2368  };
2369
2370})(jQuery, Drupal, once);
2371;
2372Drupal.behaviors.planificador_de_viajes={attach:function(context,settings){var iframeconfig={header:false,footer:false,styles:{primaryColor:'#df0fac',button:{textColor:'white',borderRadius:'600px'}}};var stringified=JSON.stringify(iframeconfig);var config=encodeURIComponent(stringified);var url=`https://colombiatravel.passporterapp.com/es/frame/business?iframeconfig=${config}`;}};;
2373(function(){'use strict';const SDK={init:({lang})=>{window.__PASSPORTER_WIDGET_CONFIG__={debug:false,domain:'colombiatravel',lang,headerHeight:128,styles:{button:{borderRadius:'6px'},primaryColor:"#E4154C",primaryColorHover:"#B90436"},ctaAnchors:[{id:"customPlannerButton",section:"spots"},{id:"customMyTravelButton",section:"my-travel"}]};var script=document.createElement("script");script.src="https://d14j9vfj10qgpp.cloudfront.net/assets/sdk/passporter-sdk.js?d="+new Date().toISOString().slice(0,10);script.defer=true;document.body.appendChild(script);}};function iniciar(){SDK.init({lang:document.getElementsByTagName('html')[0].lang});}function alReposo(){if('requestIdleCallback' in window)window.requestIdleCallback(iniciar,{timeout:4000});else window.setTimeout(iniciar,2000);}
2373if(document.readyState==='complete')alReposo();else window.addEventListener('load',alReposo);})();;
2374!function(e){var t={};function n(i){if(t[i])return t[i].exports;var s=t[i]={i,l:!1,exports:{}};return e[i].call(s.exports,s,s.exports,n),s.l=!0,s.exports;}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i});},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0});},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)n.d(i,s,function(t){return e[t];}.bind(null,s));return i;},n.n=function(e){var t=e&&e.__esModule?function(){return e.default;}:function(){return e;};return n.d(t,"a",t),t;},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t);},n.p="",n(n.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},s={classNames:{inset:"Inset",nolistview:"NoListview",nopanel:"NoPanel",panel:"Panel",selected:"Selected",vertical:"Vertical"},language:null,openingInterval:25,panelNodetype:["ul","ol","div"],transitionDuration:400};function a(e,t){for(var n in "object"!=o(e)&&(e={}),"object"!=o(t)&&(t={}),t)t.hasOwnProperty(n)&&(void 0===e[n]?e[n]=t[n]:"object"==o(e[n])&&a(e[n],t[n]));return e;}function o(e){return {}.toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase();}function r(e,t,n){if("function"==typeof t){var i=t.call(e);if(void 0!==i)return i;}return null!==t&&"function"!=typeof t&&void 0!==t||void 0===n?t:n;}function c(e,t,n){var i=!1,s=function(n){void 0!==n&&n.target!==e||(i||(e.removeEventListener("transitionend",s),e.removeEventListener("webkitTransitionEnd",s),t.call(e)),i=!0);};e.addEventListener("transitionend",s),e.addEventListener("webkitTransitionEnd",s),setTimeout(s,1.1*n);}function m(){return "mm-"+l++;}var l=0;function d(e){return "mm-"==e.slice(0,3)?e.slice(3):e;}var p={};function u(e,t){void 0===p[t]&&(p[t]={}),a(p[t],e);}var f={Menu:"منو"},h={Menu:"Menü"},v={Menu:"Меню"};function b(e){var t=e.split("."),n=document.createElement(t.shift());return t.forEach((function(e){n.classList.add(e);})),n;}function g(e,t){return Array.prototype.slice.call(e.querySelectorAll(t));}function _(e,t){var n=Array.prototype.slice.call(e.children);return t?n.filter((function(e){return e.matches(t);})):n;}function y(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 L(e){return e.filter((function(e){return !e.matches(".mm-hidden");}));}function w(e){var t=[];return L(e).forEach((function(e){t.push.apply(t,_(e,"a.mm-listitem__text"));})),t.filter((function(e){return !e.matches(".mm-btn_next");}));}function E(e,t,n){e.matches("."+t)&&(e.classList.remove(t),e.classList.add(n));}var x={};function P(e,t,n){"number"==typeof e&&(e="(min-width: "+e+"px)"),x[e]=x[e]||[],x[e].push({yes:t,no:n});}function k(e,t){for(var n=t.matches?"yes":"no",i=0;i<x[e].length;i++)x[e][i][n]();}u({Menu:"Menu"},"nl"),u(f,"fa"),u(h,"de"),u(v,"ru");var S=function(){function e(t,n,i){return this.opts=a(n,e.options),this.conf=a(i,e.configs),this._api=["bind","initPanel","initListview","openPanel","closePanel","closeAllPanels","setSelected"],this.node={},this.vars={},this.hook={},this.clck=[],this.node.menu="string"==typeof t?document.querySelector(t):t,"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(){var e=function(e){var t=window.matchMedia(e);k(e,t),t.onchange=function(n){k(e,t);};};for(var t in x)e(t);}(),this;}return e.prototype.openPanel=function(e,t){var n=this;if(this.trigger("openPanel:before",[e]),e&&(e.matches(".mm-panel")||(e=e.closest(".mm-panel")),e)){if("boolean"!=typeof t&&(t=!0),e.parentElement.matches(".mm-listitem_vertical")){y(e,".mm-listitem_vertical").forEach((function(e){e.classList.add("mm-listitem_opened"),_(e,".mm-panel").forEach((function(e){e.classList.remove("mm-hidden");}));}));var i=y(e,".mm-panel").filter((function(e){return !e.parentElement.matches(".mm-listitem_vertical");}));
2374this.trigger("openPanel:start",[e]),i.length&&this.openPanel(i[0]),this.trigger("openPanel:finish",[e]);}else{if(e.matches(".mm-panel_opened"))return;var s=_(this.node.pnls,".mm-panel"),a=_(this.node.pnls,".mm-panel_opened")[0];s.filter((function(t){return t!==e;})).forEach((function(e){e.classList.remove("mm-panel_opened-parent");}));for(var o=e.mmParent;o;)(o=o.closest(".mm-panel"))&&(o.parentElement.matches(".mm-listitem_vertical")||o.classList.add("mm-panel_opened-parent"),o=o.mmParent);s.forEach((function(e){e.classList.remove("mm-panel_highest");})),s.filter((function(e){return e!==a;})).filter((function(t){return t!==e;})).forEach((function(e){e.classList.add("mm-hidden");})),e.classList.remove("mm-hidden");var r=function(){a&&a.classList.remove("mm-panel_opened"),e.classList.add("mm-panel_opened"),e.matches(".mm-panel_opened-parent")?(a&&a.classList.add("mm-panel_highest"),e.classList.remove("mm-panel_opened-parent")):(a&&a.classList.add("mm-panel_opened-parent"),e.classList.add("mm-panel_highest")),n.trigger("openPanel:start",[e]);},m=function(){a&&(a.classList.remove("mm-panel_highest"),a.classList.add("mm-hidden")),e.classList.remove("mm-panel_highest"),n.trigger("openPanel:finish",[e]);};t&&!e.matches(".mm-panel_noanimation")?setTimeout((function(){c(e,(function(){m();}),n.conf.transitionDuration),r();}),this.conf.openingInterval):(r(),m());}this.trigger("openPanel:after",[e]);}},e.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]);},e.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=_(this.node.pnls,".mm-panel"),n=e||t[0];_(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");},e.prototype.togglePanel=function(e){var t=e.parentElement;t.matches(".mm-listitem_vertical")&&this[t.matches(".mm-listitem_opened")?"closePanel":"openPanel"](e);},e.prototype.setSelected=function(e){this.trigger("setSelected:before",[e]),g(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]);},e.prototype.bind=function(e,t){this.hook[e]=this.hook[e]||[],this.hook[e].push(t);},e.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);},e.prototype._initAPI=function(){var e=this,t=this;this.API={},this._api.forEach((function(n){e.API[n]=function(){var e=t[n].apply(t,arguments);return void 0===e?t.API:e;};})),this.node.menu.mmApi=this.API;},e.prototype._initHooks=function(){for(var e in this.opts.hooks)this.bind(e,this.opts.hooks[e]);},e.prototype._initWrappers=function(){this.trigger("initWrappers:before");for(var t=0;t<this.opts.wrappers.length;t++){var n=e.wrappers[this.opts.wrappers[t]];"function"==typeof n&&n.call(this);}this.trigger("initWrappers:after");},e.prototype._initAddons=function(){for(var t in this.trigger("initAddons:before"),e.addons)e.addons[t].call(this);this.trigger("initAddons:after");},e.prototype._initExtensions=function(){var e=this;this.trigger("initExtensions:before"),"array"==o(this.opts.extensions)&&(this.opts.extensions={all:this.opts.extensions}
2374),Object.keys(this.opts.extensions).forEach((function(t){var n=e.opts.extensions[t].map((function(e){return "mm-menu_"+e;}));n.length&&P(t,(function(){n.forEach((function(t){e.node.menu.classList.add(t);}));}),(function(){n.forEach((function(t){e.node.menu.classList.remove(t);}));}));})),this.trigger("initExtensions:after");},e.prototype._initMenu=function(){var e=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||m();var t=b("div.mm-panels");_(this.node.menu).forEach((function(n){e.conf.panelNodetype.indexOf(n.nodeName.toLowerCase())>-1&&t.append(n);})),this.node.menu.append(t),this.node.pnls=t,this.node.menu.classList.add("mm-menu"),this.trigger("initMenu:after");},e.prototype._initPanels=function(){var e=this;this.trigger("initPanels:before"),this.clck.push((function(t,n){if(n.inMenu){var i=t.getAttribute("href");if(i&&i.length>1&&"#"==i.slice(0,1))try{var s=g(e.node.menu,i)[0];if(s&&s.matches(".mm-panel"))return t.parentElement.matches(".mm-listitem_vertical")?e.togglePanel(s):e.openPanel
2374(s),!0;}catch(e){}}})),_(this.node.pnls).forEach((function(t){e.initPanel(t);})),this.trigger("initPanels:after");},e.prototype.initPanel=function(e){var t=this,n=this.conf.panelNodetype.join(", ");if(e.matches(n)&&(e.matches(".mm-panel")||(e=this._initPanel(e)),e)){var i=[];i.push.apply(i,_(e,"."+this.conf.classNames.panel)),_(e,".mm-listview").forEach((function(e){_(e,".mm-listitem").forEach((function(e){i.push.apply(i,_(e,n));}));})),i.forEach((function(e){t.initPanel(e);}));}},e.prototype._initPanel=function(e){var t=this;if(this.trigger("initPanel:before",[e]),E(e,this.conf.classNames.panel,"mm-panel"),E(e,this.conf.classNames.nopanel,"mm-nopanel"),E(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=e.id||m(),i=e.matches("."+this.conf.classNames.vertical)||!this.opts.slidingSubmenus;if(e.classList.remove(this.conf.classNames.vertical),e.matches("ul, ol")){e.removeAttribute("id");var s=b("div");e.before(s),s.append(e),e=s;}e.id=n,e.classList.add("mm-panel"),e.classList.add("mm-hidden");var a=[e.parentElement].filter((function(e){return e.matches("li");}))[0];if(i?a&&a.classList.add("mm-listitem_vertical"):this.node.pnls.append(e),a&&(a.mmChild=e,e.mmParent=a,a&&a.matches(".mm-listitem")&&!_(a,".mm-btn").length)){var o=_(a,".mm-listitem__text")[0];if(o){var r=b("a.mm-btn.mm-btn_next.mm-listitem__btn");r.setAttribute("href","#"+e.id),o.matches("span")?(r.classList.add("mm-listitem__text"),r.innerHTML=o.innerHTML,a.insertBefore(r,o.nextElementSibling),o.remove()):a.insertBefore(r,_(a,".mm-panel")[0]);}}return this._initNavbar(e),_(e,"ul, ol").forEach((function(e){t.initListview(e);})),this.trigger("initPanel:after",[e]),e;},e.prototype._initNavbar=function(e){if(this.trigger("initNavbar:before",[e]),!_(e,".mm-navbar").length){var t=null,n=null;if(e.getAttribute("data-mm-parent")?n=g(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=b("div.mm-navbar");if(this.opts.navbar.add?this.opts.navbar.sticky&&i.classList.add("mm-navbar_sticky"):i.classList.add("mm-hidden"),n){var s=b("a.mm-btn.mm-btn_prev.mm-navbar__btn");s.setAttribute("href","#"+n.id),i.append(s);}var a=null;t?a=_(t,".mm-listitem__text")[0]:n&&(a=g(n,'a[href="#'+e.id+'"]')[0]);var o=b("a.mm-navbar__title"),r=b("span");switch(o.append(r),r.innerHTML=e.getAttribute("data-mm-title")||(a?a.textContent:"")||this.i18n(this.opts.navbar.title)||this.i18n("Menu"),this.opts.navbar.titleLink){case "anchor":a&&o.setAttribute("href",a.getAttribute("href"));break;case "parent":n&&o.setAttribute("href","#"+n.id);}i.append(o),e.prepend(i),this.trigger("initNavbar:after",[e]);}}},e.prototype.initListview=function(e){var t=this;this.trigger("initListview:before",[e]),E(e,this.conf.classNames.nolistview,"mm-nolistview"),e.matches(".mm-nolistview")||(e.classList.add("mm-listview"),_(e).forEach((function(e){e.classList.add("mm-listitem"),E(e,t.conf.classNames.selected,"mm-listitem_selected"),_(e,"a, span").forEach((function(e){e.matches(".mm-btn")||e.classList.add("mm-listitem__text");}));}))),this.trigger("initListview:after",[e]);},e.prototype._initOpened=function(){this.trigger("initOpened:before");var e=this.node.pnls.querySelectorAll(".mm-listitem_selected"),t=null;e.forEach((function(e){t=e,e.classList.remove("mm-listitem_selected");})),t&&t.classList.add("mm-listitem_selected");var n=t?t.closest(".mm-panel"):_(this.node.pnls,".mm-panel")[0];this.openPanel(n,!1),this.trigger("initOpened:after");},e.prototype._initAnchors=function(){var e=this;this.trigger("initAnchors:before"),document.addEventListener("click",(function(t){var n=t.target.closest("a[href]");if(n){for(var i={inMenu:n.closest(".mm-menu")===e.node.menu,inListview:n.matches(".mm-listitem > a"),toExternal:n.matches('[rel="external"]')||n.matches('[target="_blank"]')},s={close:null,setSelected:null,preventDefault:"#"==n.getAttribute("href").slice(0,1)},c=0;c<e.clck.length;c++){var m=e.clck[c].call(e,n,i);if(m){if("boolean"==typeof m)return void t.preventDefault();"object"==o(m)&&(s=a(m,s));}}i.inMenu&&i.inListview&&!i.toExternal&&(r(n,e.opts.onClick.setSelected,s.setSelected)&&e.setSelected(n.parentElement),r(n,e.opts.onClick.preventDefault,s.preventDefault)&&t.preventDefault(),r(n,e.opts.onClick.close,s.close)&&e.opts.offCanvas&&"function"==typeof e.close&&e.close());}}),!0),this.trigger("initAnchors:after");},e.prototype.i18n=function(e){return function(e,t){return "string"==typeof t&&void 0!==p[t]&&p[t][e]||e;}(e,this.conf.language);},e.options=i,e.configs=s,e.addons={},e.wrappers={},e.node={},e.vars={},e;}
2374(),M={blockUI:!0,moveBackground:!0};var A={clone:!1,menu:{insertMethod:"prepend",insertSelector:"body"},page:{nodetype:"div",selector:null,noSelector:[]}};function T(e){return e?e.charAt(0).toUpperCase()+e.slice(1):"";}function C(e,t,n){var i=t.split(".");e[t="mmEvent"+T(i[0])+T(i[1])]=e[t]||[],e[t].push(n),e.addEventListener(i[0],n);}function N(e,t){var n=t.split(".");t="mmEvent"+T(n[0])+T(n[1]),(e[t]||[]).forEach((function(t){e.removeEventListener(n[0],t);}));}S.options.offCanvas=M,S.configs.offCanvas=A;S.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"));},S.prototype._openSetup=function(){var e=this,t=this.opts.offCanvas;this.closeAllOthers(),function(e,t,n){var i=t.split(".");(e[t="mmEvent"+T(i[0])+T(i[1])]||[]).forEach((function(e){e(n||{});}));}(window,"resize.page",{force:!0});var n=["mm-wrapper_opened"];t.blockUI&&n.push("mm-wrapper_blocking"),"modal"==t.blockUI&&n.push("mm-wrapper_modal"),t.moveBackground&&n.push("mm-wrapper_background"),n.forEach((function(t){e.node.wrpr.classList.add(t);})),setTimeout((function(){e.vars.opened=!0;}),this.conf.openingInterval),this.node.menu.classList.add("mm-menu_opened");},S.prototype._openStart=function(){var e=this;c(S.node.page,(function(){e.trigger("open:finish");}),this.conf.transitionDuration),this.trigger("open:start"),this.node.wrpr.classList.add("mm-wrapper_opening");},S.prototype.close=function(){var e=this;this.trigger("close:before"),this.vars.opened&&(c(S.node.page,(function(){e.node.menu.classList.remove("mm-menu_opened");["mm-wrapper_opened","mm-wrapper_blocking","mm-wrapper_modal","mm-wrapper_background"].forEach((function(t){e.node.wrpr.classList.remove(t);})),e.vars.opened=!1,e.trigger("close:finish");}),this.conf.transitionDuration),this.trigger("close:start"),this.node.wrpr.classList.remove("mm-wrapper_opening"),this.trigger("close:after"));},S.prototype.closeAllOthers=function(){var e=this;g(document.body,".mm-menu_offcanvas").forEach((function(t){if(t!==e.node.menu){var n=t.mmApi;n&&n.close&&n.close();}}));},S.prototype.setPage=function(e){this.trigger("setPage:before",[e]);var t=this.conf.offCanvas;if(!e){var n="string"==typeof t.page.selector?g(document.body,t.page.selector):_(document.body,t.page.nodetype);if(n=n.filter((function(e){return !e.matches(".mm-menu, .mm-wrapper__blocker");})),t.page.noSelector.length&&(n=n.filter((function(e){return !e.matches(t.page.noSelector.join(", "));}))),n.length>1){var i=b("div");n[0].before(i),n.forEach((function(e){i.append(e);})),n=[i];}e=n[0];}e.classList.add("mm-page"),e.classList.add("mm-slideout"),e.id=e.id||m(),S.node.page=e,this.trigger("setPage:after",[e]);};var H=function(){var e=this;N(document.body,"keydown.tabguard"),C(document.body,"keydown.tabguard",(function(t){9==t.keyCode&&e.node.wrpr.matches(".mm-wrapper_opened")&&t.preventDefault();}));},j=function(){var e=this;this.trigger("initBlocker:before");var t=this.opts.offCanvas,n=this.conf.offCanvas;if(t.blockUI){if(!S.node.blck){var i=b("div.mm-wrapper__blocker.mm-slideout");i.innerHTML="<a></a>",document.querySelector(n.menu.insertSelector).append(i),S.node.blck=i;}var s=function(t){t.preventDefault(),t.stopPropagation(),e.node.wrpr.matches(".mm-wrapper_modal")||e.close();};S.node.blck.addEventListener("mousedown",s),S.node.blck.addEventListener("touchstart",s),S.node.blck.addEventListener("touchmove",s),this.trigger("initBlocker:after");}},D={aria:!0,text:!0};var I={text:{closeMenu:"Close menu",closeSubmenu:"Close submenu",openSubmenu:"Open submenu",toggleSubmenu:"Toggle submenu"}},O={"Close menu":"بستن منو","Close submenu":"بستن زیرمنو","Open submenu":"بازکردن زیرمنو","Toggle submenu":"سوییچ زیرمنو"},q={"Close menu":"Menü schließen","Close submenu":"Untermenü schließen","Open submenu":"Untermenü öffnen","Toggle submenu":"Untermenü wechseln"},B={"Close menu":"Закрыть меню","Close submenu":"Закрыть подменю","Open submenu":"Открыть подменю","Toggle submenu":"Переключить подменю"};u({"Close menu":"Menu sluiten","Close submenu":"Submenu sluiten","Open submenu":"Submenu openen","Toggle submenu":"Submenu wisselen"},"nl"),u(O,"fa"),u(q,"de"),u(B,"ru"),S.options.screenReader=D,S.c
2374onfigs.screenReader=I;var z;z=function(e,t,n){e[t]=n,n?e.setAttribute(t,n.toString()):e.removeAttribute(t);},S.sr_aria=function(e,t,n){z(e,"aria-"+t,n);},S.sr_role=function(e,t){z(e,"role",t);},S.sr_text=function(e){return '<span class="mm-sronly">'+e+"</span>";};var R={fix:!0};var U="ontouchstart" in window||!!navigator.msMaxTouchPoints||!1;S.options.scrollBugFix=R;var W={height:"default"};S.options.autoHeight=W;var Y={close:!1,open:!1};S.options.backButton=Y;var F={add:!1,visible:{min:1,max:3}};S.options.columns=F;var X={add:!1,addTo:"panels",count:!1};S.options.counters=X,S.configs.classNames.counters={counter:"Counter"};var V={add:!1,addTo:"panels"};S.options.dividers=V,S.configs.classNames.divider="Divider";var Z={open:!1,node:null};var G="ontouchstart" in window||!!navigator.msMaxTouchPoints||!1,K={top:0,right:0,bottom:0,left:0},Q={start:15,swipe:15},J={x:["Right","Left"],y:["Down","Up"]},$=0,ee=1,te=2,ne=function(e,t){return "string"==typeof e&&"%"==e.slice(-1)&&(e=t*((e=parseInt(e.slice(0,-1),10))/100)),e;},ie=function(){function e(e,t,n){this.surface=e,this.area=a(t,K),this.treshold=a(n,Q),this.surface.mmHasDragEvents||(this.surface.addEventListener(G?"touchstart":"mousedown",this.start.bind(this)),this.surface.addEventListener(G?"touchend":"mouseup",this.stop.bind(this)),this.surface.addEventListener(G?"touchleave":"mouseleave",this.stop.bind(this)),this.surface.addEventListener(G?"touchmove":"mousemove",this.move.bind(this))),this.surface.mmHasDragEvents=!0;}return e.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,i=ne(this.area.top,n);if(!("number"==typeof i&&this.currentPosition.y<i)){var s=ne(this.area.right,t);if(!("number"==typeof s&&(s=t-s,this.currentPosition.x>s))){var a=ne(this.area.bottom,n);if(!("number"==typeof a&&(a=n-a,this.currentPosition.y>a))){var o=ne(this.area.left,t);"number"==typeof o&&this.currentPosition.x<o||(this.startPosition={x:this.currentPosition.x,y:this.currentPosition.y},this.state=ee);}}}},e.prototype.stop=function(e){if(this.state==te){var t=this._dragDirection(),n=this._eventDetail(t);if(this._dispatchEvents("drag*End",n),Math.abs(this.movement[this.axis])>this.treshold.swipe){var i=this._swipeDirection();n.direction=i,this._dispatchEvents("swipe*",n);}}this.state=$;},e.prototype.move=function(e){switch(this.state){case ee:case te:var t={x:e.changedTouches?e.touches[0].pageX:e.pageX||0,y:e.changedTouches?e.touches[0].pageY:e.pageY||0};this.movement={x:t.x-this.currentPosition.x,y:t.y-this.currentPosition.y},this.distance={x:t.x-this.startPosition.x,y:t.y-this.startPosition.y},this.currentPosition={x:t.x,y:t.y},this.axis=Math.abs(this.distance.x)>Math.abs(this.distance.y)?"x":"y";var n=this._dragDirection(),i=this._eventDetail(n);this.state==ee&&Math.abs(this.distance[this.axis])>this.treshold.start&&(this._dispatchEvents("drag*Start",i),this.state=te),this.state==te&&this._dispatchEvents("drag*Move",i);}},e.prototype._eventDetail=function(e){var t=this.distance.x,n=this.distance.y;return "x"==this.axis&&(t-=t>0?this.treshold.start:0-this.treshold.start),"y"==this.axis&&(n-=n>0?this.treshold.start:0-this.treshold.start),{axis:this.axis,direction:e,movementX:this.movement.x,movementY:this.movement.y,distanceX:t,distanceY:n};},e.prototype._dispatchEvents=function(e,t){var n=new CustomEvent(e.replace("*",""),{detail:t});this.surface.dispatchEvent(n);var i=new CustomEvent(e.replace("*",this.axis.toUpperCase()),{detail:t});this.surface.dispatchEvent(i);var s=new CustomEvent(e.replace("*",t.direction),{detail:t});this.surface.dispatchEvent(s);},e.prototype._dragDirection=function(){return J[this.axis][this.distance[this.axis]>0?0:1];},e.prototype._swipeDirection=function(){return J[this.axis][this.movement[this.axis]>0?0:1];},e;}(),se=null,ae=null,oe=0,re=function(e){var t=this,n={},i=!1,s=function(){var e=Object.keys(t.opts.extensions);e.length?(P(e.join(", "),(function(){}),(function(){n=ce(n,[],t.node.menu);})),e.forEach((function(e){P(e,(function(){n=ce(n,t.opts.extensions[e],t.node.menu);}),(function(){}));}))):n=ce(n,[],t.node.menu);};ae&&(N(ae,"dragStart"),N(ae,"dragMove"),N(ae,"dragEnd")),se=new ie(ae=e),s(),s=function(){},ae&&(C(ae,"dragStart",(function(e){e.detail.direction==n.direction&&(i=!0,t.node.wrpr.classList.add("mm-wrapper_dragging"),t._openSetup(),t.trigger("open:start"),oe=t.node.menu["x"==n.axis?"clientWidth":"clientHeight"]);})),C(ae,"dragMove",(function(e){if(e.detail.axis==n.axis&&i){var t=e.detail["distance"+n.axis.toUpperCase()];switch(n.position){case "right":case "bottom":t=Math.min(Math.max(t,-oe),0);break;default:t=Math.max(Math.min(t,oe),0);}if("front"==n.zposition)switch(n.position){case "right":case "bottom":t+=oe;break;default:t-=oe;}
2374n.slideOutNodes.forEach((function(e){e.style.transform="translate"+n.axis.toUpperCase()+"("+t+"px)";}));}})),C(ae,"dragEnd",(function(e){if(e.detail.axis==n.axis&&i){i=!1,t.node.wrpr.classList.remove("mm-wrapper_dragging"),n.slideOutNodes.forEach((function(e){e.style.transform="";}));var s=Math.abs(e.detail["distance"+n.axis.toUpperCase()])>=.75*oe;if(!s){var a=e.detail["movement"+n.axis.toUpperCase()];switch(n.position){case "right":case "bottom":s=a<=0;break;default:s=a>=0;}}s?t._openStart():t.close();}})));},ce=function(e,t,n){switch(e.position="left",e.zposition="back",["right","top","bottom"].forEach((function(n){t.indexOf("position-"+n)>-1&&(e.position=n);})),["front","top","bottom"].forEach((function(n){t.indexOf("position-"+n)>-1&&(e.zposition="front");})),se.area={top:"bottom"==e.position?"75%":0,right:"left"==e.position?"75%":0,bottom:"top"==e.position?"75%":0,left:"right"==e.position?"75%":0},e.position){case "top":case "bottom":e.axis="y";break;default:e.axis="x";}switch(e.position){case "top":e.direction="Down";break;case "right":e.direction="Left";break;case "bottom":e.direction="Up";break;default:e.direction="Right";}switch(e.zposition){case "front":e.slideOutNodes=[n];break;default:e.slideOutNodes=g(document.body,".mm-slideout");}return e;};S.options.drag=Z;var me={drop:!1,fitViewport:!0,event:"click",position:{},tip:!0};var le={offset:{button:{x:-5,y:5},viewport:{x:20,y:20}},height:{max:880},width:{max:440}};S.options.dropdown=me,S.configs.dropdown=le;
2374var de={insertMethod:"append",insertSelector:"body"};S.configs.fixedElements=de,S.configs.classNames.fixedElements={fixed:"Fixed"};var pe={use:!1,top:[],bottom:[],position:"left",type:"default"};S.options.iconbar=pe;var ue={add:!1,blockPanel:!0,hideDivider:!1,hideNavbar:!0,visible:3};S.options.iconPanels=ue;var fe={enable:!1,enhance:!1};S.options.keyboardNavigation=fe;var he=function(e){var t=this;N(document.body,"keydown.tabguard"),N(document.body,"focusin.tabguard"),C(document.body,"focusin.tabguard",(function(e){if(t.node.wrpr.matches(".mm-wrapper_opened")){var n=e.target;if(n.matches(".mm-tabend")){var i=void 0;n.parentElement.matches(".mm-menu")&&S.node.blck&&(i=S.node.blck),n.parentElement.matches(".mm-wrapper__blocker")&&(i=g(document.body,".mm-menu_offcanvas.mm-menu_opened")[0]),i||(i=n.parentElement),i&&_(i,".mm-tabstart")[0].focus();}}})),N(document.body,"keydown.navigate"),C(document.body,"keydown.navigate",(function(t){var n=t.target,i=n.closest(".mm-menu");if(i){i.mmApi;if(!n.matches("input, textarea"))switch(t.keyCode){case 13:(n.matches(".mm-toggle")||n.matches(".mm-check"))&&n.dispatchEvent(new Event("click"));break;case 32:case 37:case 38:case 39:case 40:t.preventDefault();}if(e)if(n.matches("input"))switch(t.keyCode){case 27:n.value="";}else{var s=i.mmApi;switch(t.keyCode){case 8:var a=g(i,".mm-panel_opened")[0].mmParent;a&&s.openPanel(a.closest(".mm-panel"));break;case 27:i.matches(".mm-menu_offcanvas")&&s.close();}}}}));},ve={load:!1};S.options.lazySubmenus=ve;var be=[];var ge={breadcrumbs:{separator:"/",removeFirst:!1}};function _e(){var e=this,t=this.opts.navbars;if(void 0!==t){t instanceof Array||(t=[t]);var n={};t.length&&(t.forEach((function(t){if(!(t=function(e){return "boolean"==typeof e&&e&&(e={}),"object"!=typeof e&&(e={}),void 0===e.content&&(e.content=["prev","title"]),e.content instanceof Array||(e.content=[e.content]),void 0===e.use&&(e.use=!0),"boolean"==typeof e.use&&e.use&&(e.use=!0),e;}(t)).use)return !1;var i=b("div.mm-navbar"),s=t.position;"bottom"!==s&&(s="top"),n[s]||(n[s]=b("div.mm-navbars_"+s)),n[s].append(i);for(var a=0,o=t.content.length;a<o;a++){var r,c=t.content[a];if("string"==typeof c)if("function"==typeof (r=_e.navbarContents[c]))r.call(e,i);else{var m=b("span");m.innerHTML=c;var l=_(m);1==l.length&&(m=l[0]),i.append(m);}else i.append(c);}"string"==typeof t.type&&("function"==typeof (r=_e.navbarTypes[t.type])&&r.call(e,i));"boolean"!=typeof t.use&&P(t.use,(function(){i.classList.remove("mm-hidden"),S.sr_aria(i,"hidden",!1);}),(function(){i.classList.add("mm-hidden"),S.sr_aria(i,"hidden",!0);}));})),this.bind("initMenu:after",(function(){for(var t in n)e.node.menu["bottom"==t?"append":"prepend"](n[t]);})));}}S.options.navbars=be,S.configs.navbars=ge,S.configs.classNames.navbars={panelPrev:"Prev",panelTitle:"Title"},_e.navbarContents={breadcrumbs:function(e){var t=this,n=b("div.mm-navbar__breadcrumbs");e.append(n),this.bind("initNavbar:after",(function(e){if(!e.querySelector(".mm-navbar__breadcrumbs")){_(e,".mm-navbar")[0].classList.add("mm-hidden");for(var n=[],i=b("span.mm-navbar__breadcrumbs"),s=e,a=!0;s;){if(!(s=s.closest(".mm-panel")).parentElement.matches(".mm-listitem_vertical")){var o=g(s,".mm-navbar__title span")[0];if(o){var r=o.textContent;r.length&&n.unshift(a?"<span>"+r+"</span>":'<a href="#'+s.id+'">'+r+"</a>");}a=!1;}s=s.mmParent;}t.conf.navbars.breadcrumbs.removeFirst&&n.shift(),i.innerHTML=n.join('<span class="mm-separator">'+t.conf.navbars.breadcrumbs.separator+"</span>"),_(e,".mm-navbar")[0].append(i);}})),this.bind("openPanel:start",(function(e){var t=e.querySelector(".mm-navbar__breadcrumbs");n.innerHTML=t?t.innerHTML:"";})),this.bind("initNavbar:after:sr-aria",(function(e){g(e,".mm-breadcrumbs a").forEach((function(e){S.sr_aria(e,"owns",e.getAttribute("href").slice(1));}));}));},close:function(e){var t=this,n=b("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=S.sr_text(t.i18n(t.conf.screenReader.text.closeMenu));}));},prev:function(e){var t,n,i,s=this,a=b("a.mm-btn.mm-btn_prev.mm-navbar__btn");e.append(a),this.bind("initNavbar:after",(function(e){_(e,".mm-navbar")[0].classList.add("mm-hidden");})),this.bind("openPanel:start",(function(e){e.parentElement.matches(".mm-listitem_vertical")||((t=e.querySelector("."+s.conf.classNames.navbars.panelPrev))||(t=e.querySelector(".mm-navbar__btn.mm-btn_prev")),n=t?t.getAttribute("href"):"",i=t?t.innerHTML:"",n?a.setAttribute("href",n):a.removeAttribute("href"),a.classList[n||i?"remove":"add"]("mm-hidden"),a.innerHTML=i);}
2374)),this.bind("initNavbar:after:sr-aria",(function(e){S.sr_aria(e.querySelector(".mm-navbar"),"hidden",!0);})),this.bind("openPanel:start:sr-aria",(function(e){S.sr_aria(a,"hidden",a.matches(".mm-hidden")),S.sr_aria(a,"owns",(a.getAttribute("href")||"").slice(1));}));},searchfield:function(e){"object"!=o(this.opts.searchfield)&&(this.opts.searchfield={});var t=b("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,a=this,o=b("a.mm-navbar__title"),r=b("span");o.append(r),e.append(o),this.bind("openPanel:start",(function(e){e.parentElement.matches(".mm-listitem_vertical")||((i=e.querySelector("."+a.conf.classNames.navbars.panelTitle))||(i=e.querySelector(".mm-navbar__title span")),(t=i&&i.closest("a")?i.closest("a").getAttribute("href"):"")?o.setAttribute("href",t):o.removeAttribute("href"),n=i?i.innerHTML:"",r.innerHTML=n);})),this.bind("openPanel:start:sr-aria",(function(e){if(a.opts.screenReader.text){if(!s)_(a.node.menu,".mm-navbars_top, .mm-navbars_bottom").forEach((function(e){var t=e.querySelector(".mm-btn_prev");t&&(s=t);}));if(s){var t=!0;"parent"==a.opts.navbar.titleLink&&(t=!s.matches(".mm-hidden")),S.sr_aria(o,"hidden",t);}}}));}},_e.navbarTypes={tabs:function(e){var t=this;e.classList.add("mm-navbar_tabs"),e.parentElement.classList.add("mm-navbars_has-tabs");var n=_(e,"a");e.addEventListener("click",(function(e){var n=e.target;if(n.matches("a"))if(n.matches(".mm-navbar__tab_selected"))e.stopImmediatePropagation();
2374else try{t.openPanel(t.node.menu.querySelector(n.getAttribute("href")),!1),e.stopImmediatePropagation();}catch(e){}})),this.bind("openPanel:start",(function e(t){n.forEach((function(e){e.classList.remove("mm-navbar__tab_selected");}));var i=n.filter((function(e){return e.matches('[href="#'+t.id+'"]');}))[0];if(i)i.classList.add("mm-navbar__tab_selected");else{var s=t.mmParent;s&&e.call(this,s.closest(".mm-panel"));}}));}};var ye={scroll:!1,update:!1};var Le={scrollOffset:0,updateOffset:50};S.options.pageScroll=ye,S.configs.pageScroll=Le;var we={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};var Ee={clear:!1,form:!1,input:!1,submit:!1},xe={Search:"جستجو","No results found.":"نتیجه‌ای یافت نشد.",cancel:"انصراف"},Pe={Search:"Suche","No results found.":"Keine Ergebnisse gefunden.",cancel:"beenden"},ke={Search:"Найти","No results found.":"Ничего не найдено.",cancel:"отменить"},Se=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),s=0;for(t=0;t<n;t++)for(var a=arguments[t],o=0,r=a.length;o<r;o++,s++)i[s]=a[o];return i;};u({Search:"Zoeken","No results found.":"Geen resultaten gevonden.",cancel:"annuleren"},"nl"),u(xe,"fa"),u(Pe,"de"),u(ke,"ru"),S.options.searchfield=we,S.configs.searchfield=Ee;var Me=function(){var e=this.opts.searchfield,t=(this.conf.searchfield,_(this.node.pnls,".mm-panel_search")[0]);if(t)return t;t=b("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=b("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);}if(e.panel.splash){var i=b("div.mm-panel__content");i.innerHTML=e.panel.splash,t.append(i);}return t.classList.add("mm-panel"),t.classList.add("mm-hidden"),this.node.pnls.append(t),t;},Ae=function(e){var t=this.opts.searchfield,n=this.conf.searchfield;if(e.parentElement.matches(".mm-listitem_vertical"))return null;if(a=g(e,".mm-searchfield")[0])return a;function i(e,t){if(t)for(var n in t)e.setAttribute(n,t[n]);}var s,a=b((n.form?"form":"div")+".mm-searchfield"),o=b("div.mm-searchfield__input"),r=b("input");(r.type="text",r.autocomplete="off",r.placeholder=this.i18n(t.placeholder),o.append(r),a.append(o),e.prepend(a),i(r,n.input),n.clear)&&((s=b("a.mm-btn.mm-btn_close.mm-searchfield__btn")).setAttribute("href","#"),o.append(s));(i(a,n.form),n.form&&n.submit&&!n.clear)&&((s=b("a.mm-btn.mm-btn_next.mm-searchfield__btn")).setAttribute("href","#"),o.append(s));t.cancel&&((s=b("a.mm-searchfield__cancel")).setAttribute("href","#"),s.textContent=this.i18n("cancel"),a.append(s));return a;},Te=function(e){var t=this,n=this.opts.searchfield,i=(this.conf.searchfield,{});e.closest(".mm-panel_search")?(i.panels=g(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=g(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,n;(t=i.listitems).push.apply(t,g(e,".mm-listitem")),(n=i.dividers).push.apply(n,g(e,".mm-divider"));}));
2374var s=_(this.node.pnls,".mm-panel_search")[0],a=g(e,"input")[0],o=g(e,".mm-searchfield__cancel")[0];a.mmSearchfield=i,n.panel.add&&n.panel.splash&&(N(a,"focus.splash"),C(a,"focus.splash",(function(e){t.openPanel(s);}))),n.cancel&&(N(a,"focus.cancel"),C(a,"focus.cancel",(function(e){o.classList.add("mm-searchfield__cancel-active");})),N(o,"click.splash"),C(o,"click.splash",(function(e){if(e.preventDefault(),o.classList.remove("mm-searchfield__cancel-active"),s.matches(".mm-panel_opened")){var n=_(t.node.pnls,".mm-panel_opened-parent");n.length&&t.openPanel(n[n.length-1]);}}))),n.panel.add&&"panel"==n.addTo&&this.bind("openPanel:finish",(function(e){e===s&&a.focus();})),N(a,"input.search"),C(a,"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:t.search(a);}})),this.search(a);},Ce=function(e){if(e){var t=this.opts.searchfield;this.conf.searchfield;if(e.closest(".mm-panel")||(e=_(this.node.pnls,".mm-panel")[0]),!_(e,".mm-panel__noresultsmsg").length){var n=b("div.mm-panel__noresultsmsg.mm-hidden");n.innerHTML=this.i18n(t.noResults),e.append(n);}}};S.prototype.search=function(e,t){var n,i=this,s=this.opts.searchfield;this.conf.searchfield;t=(t=t||""+e.value).toLowerCase().trim();var a=e.mmSearchfield,o=g(e.closest(".mm-searchfield"),".mm-btn"),r=_(this.node.pnls,".mm-panel_search")[0],c=a.panels,m=a.noresults,l=a.listitems,d=a.dividers;if(l.forEach((function(e){e.classList.remove("mm-listitem_nosubitems"),e.classList.remove("mm-listitem_onlysubitems"),e.classList.remove("mm-hidden");})),r&&(_(r,".mm-listview")[0].innerHTML=""),c.forEach((function(e){e.scrollTop=0;})),t.length){d.forEach((function(e){e.classList.add("mm-hidden");})),l.forEach((function(e){var n,i=_(e,".mm-listitem__text")[0],a=!1;i&&(n=i,Array.prototype.slice.call(n.childNodes).filter((function(e){return 3==e.nodeType;})).map((function(e){return e.textContent;})).join(" ")).toLowerCase().indexOf(t)>-1&&(i.matches(".mm-listitem__btn")?s.showSubPanels&&(a=!0):(i.matches("a")||s.showTextItems)&&(a=!0)),a||e.classList.add("mm-hidden");}));var p=l.filter((function(e){return !e.matches(".mm-hidden");})).length;if(s.panel.add){var u=[];c.forEach((function(e){var t=L(g(e,".mm-listitem"));if((t=t.filter((function(e){return !e.matches(".mm-hidden");}))).length){if(s.panel.dividers){var n=b("li.mm-divider"),i=g(e,".mm-navbar__title")[0];i&&(n.innerHTML=i.innerHTML,u.push(n));}t.forEach((function(e){u.push(e.cloneNode(!0));}));}})),u.forEach((function(e){e.querySelectorAll(".mm-toggle, .mm-check").forEach((function(e){e.remove();}));})),(n=_(r,".mm-listview")[0]).append.apply(n,u),this.openPanel(r);}else s.showSubPanels&&c.forEach((function(e){L(g(e,".mm-listitem")).forEach((function(e){var t=e.mmChild;t&&g(t,".mm-listitem").forEach((function(e){e.classList.remove("mm-hidden");}));}));})),Se(c).reverse().forEach((function(t,n){var s=t.mmParent;s&&(L(g(t,".mm-listitem")).length?(s.matches(".mm-hidden")&&s.classList.remove("mm-hidden"),s.classList.add("mm-listitem_onlysubitems")):e.closest(".mm-panel")||((t.matches(".mm-panel_opened")||t.matches(".mm-panel_opened-parent"))&&setTimeout((function(){i.openPanel(s.closest(".mm-panel"));}),(n+1)*(1.5*i.conf.openingInterval)),s.classList.add("mm-listitem_nosubitems")));})),c.forEach((function(e){L(g(e,".mm-listitem")).forEach((function(e){y(e,".mm-listitem_vertical").forEach((function(e){e.matches(".mm-hidden")&&(e.classList.remove("mm-hidden"),e.classList.add("mm-listitem_onlysubitems"));}));}));})),c.forEach((function(e){L(g(e,".mm-listitem")).forEach((function(e){var t=function(e,t){for(var n=[],i=e.previousElementSibling;i;)t&&!i.matches(t)||n.push(i),i=i.previousElementSibling;return n;}(e,".mm-divider")[0];t&&t.classList.remove("mm-hidden");}));}));o.forEach((function(e){return e.classList.remove("mm-hidden");})),m.forEach((function(e){g(e,".mm-panel__noresultsmsg").forEach((function(e){return e.classList[p?"add":"remove"]("mm-hidden");}));})),s.panel.add&&(s.panel.splash&&g(r,".mm-panel__content").forEach((function(e){return e.classList.add("mm-hidden");})),l.forEach((function(e){return e.classList.remove("mm-hidden");})),d.forEach((function(e){return e.classList.remove("mm-hidden");})));}else{if(l.forEach((function(e){return e.classList.remove("mm-hidden");})),d.forEach((function(e){return e.classList.remove("mm-hidden");})),o.forEach((function(e){return e.classList.add("mm-hidden");})),m.forEach((function(e){g(e,".mm-panel__noresultsmsg").forEach((function(e){return e.classList.add("mm-hidden");}));})),s.panel.add)if(s.panel.splash)g(r,".mm-panel__content").forEach((function(e){return e.classList.remove("mm-hidden");}));else{if(!e.closest(".mm-panel_search")){var f=_(this.node.pnls,".mm-panel_opened-parent");
2374this.openPanel(f.slice(-1)[0]);}}}this.trigger("updateListview");};var Ne={add:!1,addTo:"panels"};S.options.sectionIndexer=Ne;var He={current:!0,hover:!1,parent:!1};S.options.setSelected=He;var je={collapsed:{use:!1,blockMenu:!0,hideDivider:!1,hideNavbar:!0},expanded:{use:!1,initial:"open"}};S.options.sidebar=je;S.configs.classNames.toggles={toggle:"Toggle",check:"Check"};S.addons={offcanvas:function(){var e=this;if(this.opts.offCanvas){var t=function(e){return "object"!=typeof e&&(e={}),e;}(this.opts.offCanvas);this.opts.offCanvas=a(t,S.options.offCanvas);var n=this.conf.offCanvas;this._api.push("open","close","setPage"),this.vars.opened=!1,this.bind("initMenu:before",(function(){n.clone&&(e.node.menu=e.node.menu.cloneNode(!0),e.node.menu.id&&(e.node.menu.id="mm-"+e.node.menu.id),g(e.node.menu,"[id]").forEach((function(e){e.id="mm-"+e.id;}))),e.node.wrpr=document.body,document.querySelector(n.menu.insertSelector)[n.menu.insertMethod](e.node.menu);})),this.bind("initMenu:after",(function(){j.call(e),e.setPage(S.node.page),H.call(e),e.node.menu.classList.add("mm-menu_offcanvas");var t=window.location.hash;if(t){var n=d(e.node.menu.id);n&&n==t.slice(1)&&setTimeout((function(){e.open();}),1e3);}})),this.bind("setPage:after",(function(e){S.node.blck&&_(S.node.blck,"a").forEach((function(t){t.setAttribute("href","#"+e.id);}));})),this.bind("open:start:sr-aria",(function(){S.sr_aria(e.node.menu,"hidden",!1);})),this.bind("close:finish:sr-aria",(function(){S.sr_aria(e.node.menu,"hidden",!0);})),this.bind("initMenu:after:sr-aria",(function(){S.sr_aria(e.node.menu,"hidden",!0);})),this.bind("initBlocker:after:sr-text",(function(){_(S.node.blck,"a").forEach((function(t){t.innerHTML=S.sr_text(e.i18n(e.conf.screenReader.text.closeMenu));}));})),this.clck.push((function(t,n){var i=d(e.node.menu.id);if(i&&t.matches('[href="#'+i+'"]')){if(n.inMenu)return e.open(),!0;var s=t.closest(".mm-menu");if(s){var a=s.mmApi;if(a&&a.close)return a.close(),c(s,(function(){e.open();}),e.conf.transitionDuration),!0;}return e.open(),!0;}if((i=S.node.page.id)&&t.matches('[href="#'+i+'"]'))return e.close(),!0;}));}},screenReader:function(){var e=this,t=function(e){return "boolean"==typeof e&&(e={aria:e,text:e}),"object"!=typeof e&&(e={}),e;}(this.opts.screenReader);this.opts.screenReader=a(t,S.options.screenReader);var n=this.conf.screenReader;t.aria&&(this.bind("initAddons:after",(function(){e.bind("initMenu:after",(function(){this.trigger("initMenu:after:sr-aria",[].slice.call(arguments));})),e.bind("initNavbar:after",(function(){this.trigger("initNavbar:after:sr-aria",[].slice.call(arguments));})),e.bind("openPanel:start",(function(){this.trigger("openPanel:start:sr-aria",[].slice.call(arguments));})),e.bind("close:start",(function(){this.trigger("close:start:sr-aria",[].slice.call(arguments));})),e.bind("close:finish",(function(){this.trigger("close:finish:sr-aria",[].slice.call(arguments));})),e.bind("open:start",(function(){this.trigger("open:start:sr-aria",[].slice.call(arguments));})),e.bind("initOpened:after",(function(){this.trigger("initOpened:after:sr-aria",[].slice.call(arguments));}));})),this.bind("updateListview",(function(){e.node.pnls.querySelectorAll(".mm-listitem").forEach((function(e){S.sr_aria(e,"hidden",e.matches(".mm-hidden"));}));})),this.bind("openPanel:start",(function(t){var n=g(e.node.pnls,".mm-panel").filter((function(e){return e!==t;})).filter((function(e){return !e.parentElement.matches(".mm-panel");})),i=[t];g(t,".mm-listitem_vertical .mm-listitem_opened").forEach((function(e){i.push.apply(i,_(e,".mm-panel"));})),n.forEach((function(e){S.sr_aria(e,"hidden",!0);}
2374)),i.forEach((function(e){S.sr_aria(e,"hidden",!1);}));})),this.bind("closePanel",(function(e){S.sr_aria(e,"hidden",!0);})),this.bind("initNavbar:after",(function(e){var t=_(e,".mm-navbar")[0],n=t.matches(".mm-hidden");S.sr_aria(t,"hidden",n);})),t.text&&"parent"==this.opts.navbar.titleLink&&this.bind("initNavbar:after",(function(e){var t=_(e,".mm-navbar")[0],n=!!t.querySelector(".mm-btn_prev");S.sr_aria(g(t,".mm-navbar__title")[0],"hidden",n);}))),t.text&&(this.bind("initAddons:after",(function(){e.bind("setPage:after",(function(){this.trigger("setPage:after:sr-text",[].slice.call(arguments));})),e.bind("initBlocker:after",(function(){this.trigger("initBlocker:after:sr-text",[].slice.call(arguments));}));})),this.bind("initNavbar:after",(function(t){var i=_(t,".mm-navbar")[0];if(i){var s=_(i,".mm-btn_prev")[0];s&&(s.innerHTML=S.sr_text(e.i18n(n.text.closeSubmenu)));}})),this.bind("initListview:after",(function(t){var i=t.closest(".mm-panel").mmParent;if(i){var s=_(i,".mm-btn_next")[0];if(s){var a=e.i18n(n.text[s.parentElement.matches(".mm-listitem_vertical")?"toggleSubmenu":"openSubmenu"]);s.innerHTML+=S.sr_text(a);}}})));},scrollBugFix:function(){var e=this;if(U&&this.opts.offCanvas&&this.opts.offCanvas.blockUI){var t=function(e){return "boolean"==typeof e&&(e={fix:e}),"object"!=typeof e&&(e={}),e;}(this.opts.scrollBugFix);if(this.opts.scrollBugFix=a(t,S.options.scrollBugFix),t.fix){var n,i,s=(n=this.node.menu,i="",n.addEventListener("touchmove",(function(e){i="",e.movementY>0?i="down":e.movementY<0&&(i="up");})),{get:function(){return i;}});this.node.menu.addEventListener("scroll",o,{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=y(t,".mm-panel").pop()),t?(t.scrollHeight===t.offsetHeight||0==t.scrollTop&&"down"==s.get()||t.scrollHeight==t.scrollTop+t.offsetHeight&&"up"==s.get())&&o(e):o(e);}),{passive:!1}),this.bind("open:start",(function(){var t=_(e.node.pnls,".mm-panel_opened")[0];t&&(t.scrollTop=0);})),window.addEventListener("orientationchange",(function(t){var n=_(e.node.pnls,".mm-panel_opened")[0];n&&(n.scrollTop=0,n.style["-webkit-overflow-scrolling"]="auto",n.style["-webkit-overflow-scrolling"]="touch");}));}}function o(e){e.preventDefault(),e.stopPropagation();}},autoHeight:function(){var e=this,t=function(e){return "boolean"==typeof e&&e&&(e={height:"auto"}),"string"==typeof e&&(e={height:e}),"object"!=typeof e&&(e={}),e;}(this.opts.autoHeight);if(this.opts.autoHeight=a(t,S.options.autoHeight),"auto"==t.height||"highest"==t.height){var n,i=(n=function(e){return e.parentElement.matches(".mm-listitem_vertical")&&(e=y(e,".mm-panel").filter((function(e){return !e.parentElement.matches(".mm-listitem_vertical");}))[0]),e;},function(){if(!e.opts.offCanvas||e.vars.opened){var i,s,a=0,o=e.node.menu.offsetHeight-e.node.pnls.offsetHeight;e.node.menu.classList.add("mm-menu_autoheight-measuring"),"auto"==t.height?((s=_(e.node.pnls,".mm-panel_opened")[0])&&(s=n(s)),s||(s=_(e.node.pnls,".mm-panel")[0]),a=s.scrollHeight):"highest"==t.height&&(i=0,_(e.node.pnls,".mm-panel").forEach((function(e){e=n(e),i=Math.max(i,e.scrollHeight);})),a=i),e.node.menu.style.height=a+o+"px",e.node.menu.classList.remove("mm-menu_autoheight-measuring");}});this.bind("initMenu:after",(function(){e.node.menu.classList.add("mm-menu_autoheight");})),this.opts.offCanvas&&this.bind("open:start",i),"highest"==t.height&&this.bind("initPanels:after",i),"auto"==t.height&&(this.bind("updateListview",i),this.bind("openPanel:start",i));}},backButton:function(){var e=this;if(this.opts.offCanvas){var t=function(e){return "boolean"==typeof e&&(e={close:e}),"object"!=typeof e&&(e={}),e;}(this.opts.backButton);this.opts.backButton=a(t,S.options.backButton);var n="#"+this.node.menu.id;if(t.close){var i=[],s=function(){i=[n],_(e.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",s),this.bind("openPanel:finish",s),this.bind("close:finish",(function(){i=[],history.back(),history.pushState(null,document.title,location.pathname+location.search);})),window.addEventListener("popstate",(function(t){if(e.vars.opened&&i.length){var s=(i=i.slice(0,-1))[i.length-1];
2374s==n?e.close():(e.openPanel(e.node.menu.querySelector(s)),history.pushState(null,document.title,n));}}));}t.open&&window.addEventListener("popstate",(function(t){e.vars.opened||location.hash!=n||e.open();}));}},columns:function(){var e=this,t=function(e){return "boolean"==typeof e&&(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;}(this.opts.columns);if(this.opts.columns=a(t,S.options.columns),t.add){t.visible.min=Math.max(1,Math.min(6,t.visible.min)),t.visible.max=Math.max(t.visible.min,Math.min(6,t.visible.max));for(var n=[],i=[],s=["mm-panel_opened","mm-panel_opened-parent","mm-panel_highest"],o=0;o<=t.visible.max;o++)n.push("mm-menu_columns-"+o),i.push("mm-panel_columns-"+o);s.push.apply(s,i),this.bind("openPanel:before",(function(t){var n;if(t&&(n=t.mmParent),n&&!n.classList.contains("mm-listitem_vertical")&&(n=n.closest(".mm-panel"))){var i=n.className;if(i.length&&(i=i.split("mm-panel_columns-")[1]))for(var a=parseInt(i.split(" ")[0],10)+1;a>0;){if(!(t=_(e.node.pnls,".mm-panel_columns-"+a)[0])){a=-1;break;}a++,t.classList.add("mm-hidden"),s.forEach((function(e){t.classList.remove(e);}));}}})),this.bind("openPanel:start",(function(s){if(s){var a=s.mmParent;if(a&&a.classList.contains("mm-listitem_vertical"))return;}var o=_(e.node.pnls,".mm-panel_opened-parent").length;s.matches(".mm-panel_opened-parent")||o++,o=Math.min(t.visible.max,Math.max(t.visible.min,o)),n.forEach((function(t){e.node.menu.classList.remove(t);})),e.node.menu.classList.add("mm-menu_columns-"+o);var r=[];_(e.node.pnls,".mm-panel").forEach((function(e){i.forEach((function(t){e.classList.remove(t);})),e.matches(".mm-panel_opened-parent")&&r.push(e);})),r.push(s),r.slice(-t.visible.max).forEach((function(e,t){e.classList.add("mm-panel_columns-"+t);}));}));}},counters:function(){var e=this,t=function(e){return "boolean"==typeof e&&(e={add:e,addTo:"panels",count:e}),"object"!=typeof e&&(e={}),"panels"==e.addTo&&(e.addTo=".mm-listview"),e;}(this.opts.counters);if(this.opts.counters=a(t,S.options.counters),this.bind("initListview:after",(function(t){var n=e.conf.classNames.counters.counter;g(t,"."+n).forEach((function(e){E(e,n,"mm-counter");}));})),t.add&&this.bind("initListview:after",(function(e){if(e.matches(t.addTo)){var n=e.closest(".mm-panel").mmParent;if(n&&!g(n,".mm-counter").length){var i=_(n,".mm-btn")[0];i&&i.prepend(b("span.mm-counter"));}}})),t.count){var n=function(t){(t?[t.closest(".mm-panel")]:_(e.node.pnls,".mm-panel")).forEac
2374h((function(e){var t=e.mmParent;if(t){var n=g(t,".mm-counter")[0];if(n){var i=[];_(e,".mm-listview").forEach((function(e){i.push.apply(i,_(e));})),n.innerHTML=L(i).length.toString();}}}));};this.bind("initListview:after",n),this.bind("updateListview",n);}},dividers:function(){var e=this,t=function(e){return "boolean"==typeof e&&(e={add:e}),"object"!=typeof e&&(e={}),"panels"==e.addTo&&(e.addTo=".mm-listview"),e;}(this.opts.dividers);this.opts.dividers=a(t,S.options.dividers),this.bind("initListview:after",(function(t){_(t).forEach((function(t){E(t,e.conf.classNames.divider,"mm-divider"),t.matches(".mm-divider")&&t.classList.remove("mm-listitem");}));})),t.add&&this.bind("initListview:after",(function(e){if(e.matches(t.addTo)){g(e,".mm-divider").forEach((function(e){e.remove();}));var n="";L(_(e)).forEach((function(t){var i=_(t,".mm-listitem__text")[0].textContent.trim().toLowerCase()[0];if(i.length&&i!=n){n=i;var s=b("li.mm-divider");s.textContent=i,e.insertBefore(s,t);}}));}}));},drag:function(){var e=this;if(this.opts.offCanvas){var t=function(e){return "boolean"==typeof e&&(e={open:e}),"object"!=typeof e&&(e={}),e;}(this.opts.drag);this.opts.drag=a(t,S.options.drag),t.open&&this.bind("setPage:after",(function(n){re.call(e,t.node||n);}));}},dropdown:function(){var e=this;if(this.opts.offCanvas){var t=function(e){return "boolean"==typeof e&&e&&(e={drop:e}),"object"!=typeof e&&(e={}),"string"==typeof e.position&&(e.position={of:e.position}),e;}(this.opts.dropdown);this.opts.dropdown=a(t,S.options.dropdown);var n=this.conf.dropdown;if(t.drop){var i;this.bind("initMenu:after",(function(){if(e.node.menu.classList.add("mm-menu_dropdown"),"string"!=typeof t.position.of){var n=d(e.node.menu.id);n&&(t.position.of='[href="#'+n+'"]');}if("string"==typeof t.position.of){i=g(document.body,t.position.of)[0];var s=t.event.split(" ");1==s.length&&(s[1]=s[0]),"hover"==s[0]&&i.addEventListener("mouseenter",(function(){e.open();}),{passive:!0}),"hover"==s[1]&&e.node.menu.addEventListener("mouseleave",(function(){e.close();}),{passive:!0});}})),this.bind("open:start",(function(){e.node.menu.mmStyle=e.node.menu.getAttribute("style"),e.node.wrpr.classList.add("mm-wrapper_dropdown");})),this.bind("close:finish",(function(){e.node.menu.setAttribute("style",e.node.menu.mmStyle),e.node.wrpr.classList.remove("mm-wrapper_dropdown");}));var s=function(e,s){var a,o,r,c=s[0],m=s[1],l="x"==e?"offsetWidth":"offsetHeight",d="x"==e?"left":"top",p="x"==e?"right":"bottom",u="x"==e?"width":"height",f="x"==e?"innerWidth":"innerHeight",h="x"==e?"maxWidth":"maxHeight",v=null,b=(a=d,i.getBoundingClientRect()[a]+document.body["left"===a?"scrollLeft":"scrollTop"]),g=b+i[l],_=window[f],y=n.offset.button[e]+n.offset.viewport[e];if(t.position[e])switch(t.position[e]){case "left":case "bottom":v="after";break;case "right":case "top":v="before";}return null===v&&(v=b+(g-b)/2<_/2?"after":"before"),"after"==v?(r=_-((o="x"==e?b:g)+y),c[d]=o+n.offset.button[e]+"px",c[p]="auto",t.tip&&m.push("mm-menu_tip-"+("x"==e?"left":"top"))):(r=(o="x"==e?g:b)-y,c[p]="calc( 100% - "+(o-n.offset.button[e])+"px )",c[d]="auto",t.tip&&m.push("mm-menu_tip-"+("x"==e?"right":"bottom"))),t.fitViewport&&(c[h]=Math.min(n[u].max,r)+"px"),[c,m];};this.bind("open:start",o),window.addEventListener("resize",(function(t){o.call(e);}),{passive:!0}),this.opts.offCanvas.blockUI||window.addEventListener("scroll",(function(t){o.call(e);}),{passive:!0});}}function o(){var e=this;if(this.vars.opened){this.node.menu.setAttribute("style",this.node.menu.mmStyle);var n=[{},[]];for(var i in n=s.call(this,"y",n),(n=s.call(this,"x",n))[0])this.node.menu.style[i]=n[0][i];if(t.tip)["mm-menu_tip-left","mm-menu_tip-right","mm-menu_tip-top","mm-menu_tip-bottom"].forEach((function(t){e.node.menu.classList.remove(t);})),n[1].forEach((function(t){e.node.menu.classList.add(t);}));}}},fixedElements:function(){var e=this;if(this.opts.offCanvas){var t,n,i=this.conf.fixedElements;this.bind("setPage:after",(function(s){t=e.conf.classNames.fixedElements.fixed,n=g(document,i.insertSelector)[0],g(s,"."+t).forEach((function(e){E(e,t,"mm-slideout"),n[i.insertMethod](e);}));}));}},iconbar:function(){var e,t=this,n=function(e){return "array"==o(e)&&(e={use:!0,top:e}),"object"!=o(e)&&(e={}),void 0===e.use&&(e.use=!0),"boolean"==typeof e.use&&e.use&&(e.use=!0),e;}(this.opts.iconbar);if((this.opts.iconbar=a(n,S.options.iconbar),n.use)&&(["top","bottom"].forEach((function(t,i){var s=n[t];"array"!=o(s)&&(s=[s]);for(var a=b("div.mm-iconbar__"+t),r=0,c=s.length;r<c;r++)"string"==typeof s[r]?a.innerHTML+=s[r]:a.append(s[r]);a.children.length&&(e||(e=b("div.mm-iconbar")),e.append(a));})),e)){this.bind("initMenu:after",(function(){t.node.menu.prepend(e);}));var i="mm-menu_iconbar-"+n.position,s=function(){t.node.menu.classList.add(i),S.sr_aria(e,"hidden",!1);};if("boolean"==typeof n.use?this.bind("initMenu:after",s):P(n.use,s,(function(){t.node.menu.classList.remove(i),S.sr_aria(e,"hidden",!0);})),"tabs"==n.type){e.classList.add("mm-iconbar_tabs"),e.addEventListener("click",(function(e){var n=e.target;if(n.matches("a"))if(n.matches(".mm-iconbar__tab_selected"))e.stopImmediatePropagation();else try{var i=t.node.menu.querySelector(n.getAttribute("href"))[0];i&&i.matches(".mm-panel")&&(e.preventDefault(),e.stopImmediatePropagation(),t.openPanel
2374(i,!1));}catch(e){}}));var r=function(t){g(e,"a").forEach((function(e){e.classList.remove("mm-iconbar__tab_selected");}));var n=g(e,'[href="#'+t.id+'"]')[0];if(n)n.classList.add("mm-iconbar__tab_selected");else{var i=t.mmParent;i&&r(i.closest(".mm-panel"));}};this.bind("openPanel:start",r);}}},iconPanels:function(){var e=this,t=function(e){return "boolean"==typeof e&&(e={add:e}),"number"!=typeof e&&"string"!=typeof e||(e={add:!0,visible:e}),"object"!=typeof e&&(e={}),e;}(this.opts.iconPanels);this.opts.iconPanels=a(t,S.options.iconPanels);var n=!1;if("first"==t.visible&&(n=!0,t.visible=1),t.visible=Math.min(3,Math.max(1,t.visible)),t.visible++,t.add){this.bind("initMenu:after",(function(){var n=["mm-menu_iconpanel"];t.hideNavbar&&n.push("mm-menu_hidenavbar"),t.hideDivider&&n.push("mm-menu_hidedivider"),n.forEach((function(t){e.node.menu.classList.add(t);}));}));var i=[];if(!n)for(var s=0;s<=t.visible;s++)i.push("mm-panel_iconpanel-"+s);this.bind("openPanel:start",(function(s){var a=_(e.node.pnls,".mm-panel");if(!(s=s||a[0]).parentElement.matches(".mm-listitem_vertical"))if(n)a.forEach((function(e,t){e.classList[0==t?"add":"remove"]("mm-panel_iconpanel-first");}));else{a.forEach((function(e){i.forEach((function(t){e.classList.remove(t);}));})),a=a.filter((function(e){return e.matches(".mm-panel_opened-parent");}));var o=!1;a.forEach((function(e){s===e&&(o=!0);})),o||a.push(s),a.forEach((function(e){e.classList.remove("mm-hidden");})),(a=a.slice(-t.visible)).forEach((function(e,t){e.classList.add("mm-panel_iconpanel-"+t);}));}})),this.bind("initPanel:after",(function(e){if(t.blockPanel&&!e.parentElement.matches(".mm-listitem_vertical")&&!_(e,".mm-panel__blocker")[0]){var n=b("a.mm-panel__blocker");n.setAttribute("href","#"+e.closest(".mm-panel").id),e.prepend(n);}}));}},keyboardNavigation:function(){var e=this;if(!U){var t=function(e){return "boolean"!=typeof e&&"string"!=typeof e||(e={enable:e}),"object"!=typeof e&&(e={}),e;}(this.opts.keyboardNavigation);if(this.opts.keyboardNavigation=a(t,S.options.keyboardNavigation),t.enable){var n=b("button.mm-tabstart.mm-sronly"),i=b("button.mm-tabend.mm-sronly"),s=b("button.mm-tabend.mm-sronly");this.bind("initMenu:after",(function(){t.enhance&&e.node.menu.classList.add("mm-menu_keyboardfocus"),he.call(e,t.enhance);})),this.bind("initOpened:before",(function(){e.node.menu.prepend(n),e.node.menu.append(i),_(e.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(){S.node.blck.append(s),_(S.node.blck,"a")[0].classList.add("mm-tabstart");}));var o="input, select, textarea, button, label, a[href]",r=function(n){n=n||_(e.node.pnls,".mm-panel_opened")[0];var i=null,s=document.activeElement.closest(".mm-navbar");if(!s||s.closest(".mm-menu")!=e.node.menu){if("default"==t.enable&&((i=g(n,".mm-listview a[href]:not(.mm-hidden)")[0])||(i=g(n,o+":not(.mm-hidden)")[0]),!i)){var a=[];_(e.node.menu,".mm-navbars_top, .mm-navbars_bottom").forEach((function(e){a.push.apply(a,g(e,o+":not(.mm-hidden)"));})),i=a[0];}i||(i=_(e.node.menu,".mm-tabstart")[0]),i&&i.focus();}};this.bind("open:finish",r),this.bind("openPanel:finish",r),this.bind("initOpened:after:sr-aria",(function(){[e.node.menu,S.node.blck].forEach((function(e){_(e,".mm-tabstart, .mm-tabend").forEach((function(e){S.sr_aria(e,"hidden",!0),S.sr_role(e,"presentation");}));}));}));}}},lazySubmenus:function(){var e=this,t=function(e){return "boolean"==typeof e&&(e={load:e}),"object"!=typeof e&&(e={}),e;}(this.opts.lazySubmenus);this.opts.lazySubmenus=a(t,S.options.lazySubmenus),t.load&&(this.bind("initPanels:before",(function(){var t=[];g(e.node.pnls,"li").forEach((function(n){t.push.apply(t,_(n,e.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(e){["mm-panel_lazysubmenu","mm-nolistview","mm-nopanel"].forEach((function(t){e.classList.add(t);}));}));})),this.bind("initPanels:before",(function(){var t=[];
2374g(e.node.pnls,"."+e.conf.classNames.selected).forEach((function(e){t.push.apply(t,y(e,".mm-panel_lazysubmenu"));})),t.length&&t.forEach((function(e){console.log(e);["mm-panel_lazysubmenu","mm-nolistview","mm-nopanel"].forEach((function(t){e.classList.remove(t);}));}));})),this.bind("openPanel:before",(function(t){var n=g(t,".mm-panel_lazysubmenu").filter((function(e){return !e.matches(".mm-panel_lazysubmenu .mm-panel_lazysubmenu");}));t.matches(".mm-panel_lazysubmenu")&&n.unshift(t),n.forEach((function(t){["mm-panel_lazysubmenu","mm-nolistview","mm-nopanel"].forEach((function(e){t.classList.remove(e);})),e.initPanel(t);}));})));},navbars:_e,pageScroll:function(){var e=this,t=function(e){return "boolean"==typeof e&&(e={scroll:e}),"object"!=typeof e&&(e={}),e;}(this.opts.pageScroll);this.opts.pageScroll=a(t,S.options.pageScroll);var n,i=this.conf.pageScroll;function s(){n&&window.scrollTo({top:n.getBoundingClientRect().top+document.scrollingElement.scrollTop-i.scrollOffset,behavior:"smooth"}),n=null;}function o(e){try{return "#"!=e&&"#"==e.slice(0,1)?S.node.page.querySelector(e):null;}catch(e){return null;}}if(t.scroll&&this.bind("close:finish",(function(){s();})),this.opts.offCanvas&&t.scroll&&this.clck.push((function(t,i){if(n=null,i.inMenu){var a=t.getAttribute("href");if(n=o(a))return e.node.menu.matches(".mm-menu_sidebar-expanded")&&e.node.wrpr.matches(".mm-wrapper_sidebar-expanded")?void s():{close:!0};}})),t.update){var r=[];this.bind("initListview:after",(function(e){w(_(e,".mm-listitem")).forEach((function(e){var t=o(e.getAttribute("href"));t&&r.unshift(t);}));}));var c=-1;window.addEventListener("scroll",(function(t){for(var n=window.scrollY,s=0;s<r.length;s++)if(r[s].offsetTop<n+i.updateOffset){if(c!==s){c=s;var a=w(g(_(e.node.pnls,".mm-panel_opened")[0],".mm-listitem"));(a=a.filter((function(e){return e.matches('[href="#'+r[s].id+'"]');}))).length&&e.setSelected(a[0].parentElement);}break;}}));}},searchfield:function(){var e=this,t=function(e){return "boolean"==typeof e&&(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);this.opts.searchfield=a(t,S.options.searchfield);this.conf.searchfield;t.add&&(this.bind("close:start",(function(){g(e.node.menu,".mm-searchfield").forEach((function(e){e.blur();}));})),this.bind("initPanel:after",(function(n){var i=null;t.panel.add&&(i=Me.call(e));var s=null;switch(t.addTo){case "panels":s=[n];break;case "panel":s=[i];break;default:"string"==typeof t.addTo?s=g(e.node.menu,t.addTo):"array"==o(t.addTo)&&(s=t.addTo);}s.forEach((function(n){n=Ae.call(e,n),t.search&&n&&Te.call(e,n);})),t.noResults&&Ce.call(e,t.panel.add?i:n);})),this.clck.push((function(t,n){if(n.inMenu&&t.matches(".mm-searchfield__btn")){if(t.matches(".mm-btn_close")){var i=g(s=t.closest(".mm-searchfield"),"input")[0];return i.value="",e.search(i),!0;}var s;if(t.matches(".mm-btn_next"))return (s=t.closest("form"))&&s.submit(),!0;}})));},sectionIndexer:function(){var e=this,t=function(e){return "boolean"==typeof e&&(e={add:e}),"object"!=typeof e&&(e={}),e;}(this.opts.sectionIndexer);this.opts.sectionIndexer=a(t,S.options.sectionIndexer),t.add&&this.bind("initPanels:after",(function(){if(!e.node.indx){var t="";"abcdefghijklmnopqrstuvwxyz".split("").forEach((function(e){t+='<a href="#">'+e+"</a>";}));var n=b("div.mm-sectionindexer");n.innerHTML=t,e.node.pnls.prepend(n),e.node.indx=n,e.node.indx.addEventListener("click",(function(e){e.target.matches("a")&&e.preventDefault();}));var i=function(t){if(t.target.matches("a")){var n=t.target.textContent,i=_(e.node.pnls,".mm-panel_opened")[0],s=-1,a=i.scrollTop;i.scrollTop=0,g(i,".mm-divider").filter((function(e){return !e.matches(".mm-hidden");})).forEach((function(e){s<0&&n==e.textContent.trim().slice(0,1).toLowerCase()&&(s=e.offsetTop);})),i.scrollTop=s>-1?s:a;}};U?(e.node.indx.addEventListener("touchstart",i),e.node.indx.addEventListener("touchmove",i)):e.node.indx.addEventListener("mouseover",i);}e.bind("openPanel:start",(function(t){var n=g(t,".mm-divider").filter((function(e){return !e.matches(".mm-hidden");})).length;e.node.indx.classList[n?"add":"remove"]("mm-sectionindexer_active");}));}));},setSelected:function(){var e=this,t=function(e){return "boolean"==typeof e&&(e={hover:e,parent:e}),"object"!=typeof e&&(e={}),e;}(this.opts.setSelected);if(this.opts.setSelected=a(t,S.options.setSelected),"detect"==t.current){var n=function(t){t=t.split("?")[0].split("#")[0];var i=e.node.menu.querySelector('a[href="'+t+'"], a[href="'+t+'/"]');if(i)e.setSelected(i.parentElement);else{var s=t.split("/").slice(0,-1);s.length&&n(s.join("/"));}};this.bind("initMenu:after",(function(){n.call(e,window.location.href);}));}else t.current||this.bind("initListview:after",(function(e){_(e,".mm-listitem_selected").forEach((function(e){e.classList.remove("mm-listitem_selected");}));}));t.hover&&this.bind("initMenu:after",(function(){e.node.menu.classList.add("mm-menu_selected-hover");})),t.parent&&(this.bind("openPanel:finish",(function(t){g(e.node.pnls,".mm-listitem_selected-parent").forEach((function(e){e.classList.remove("mm-listitem_selected-parent");}));for(var n=t.mmParent;n;)n.matches(".mm-listitem_vertical")||n.classList.add("mm-listitem_selected-parent"),n=(n=n.closest(".mm-panel")).mmParent;})),this.bind("initMenu:after",(function(){e.node.menu.classList.add("mm-menu_selected-parent");})));},sidebar:function(){var e=this;if(this.opts.offCanvas){var t=function(e){return ("string"==typeof e||"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;}(this.opts.sidebar);if(this.opts.sidebar=a(t,S.options.sidebar),t.collapsed.use){this.bind("initMenu:after",(function(){if(e.node.menu.classList.add("mm-menu_sidebar-collapsed"),t.collapsed.blockMenu&&e.opts.offCanvas&&!_(e.node.menu,".mm-menu__blocker")[0]){var n=b("a.mm-menu__blocker");n.setAttribute("href","#"+e.node.menu.id),e.node.menu.prepend(n);}t.collapsed.hideNavbar&&e.node.menu.classList.add("mm-menu_hidenavbar"),t.collapsed.hideDivider&&e.node.menu.classList.add("mm-menu_hidedivi
2374der");}));var n=function(){e.node.wrpr.classList.add("mm-wrapper_sidebar-collapsed");},i=function(){e.node.wrpr.classList.remove("mm-wrapper_sidebar-collapsed");};"boolean"==typeof t.collapsed.use?this.bind("initMenu:after",n):P(t.collapsed.use,n,i);}if(t.expanded.use){this.bind("initMenu:after",(function(){e.node.menu.classList.add("mm-menu_sidebar-expanded");}));n=function(){e.node.wrpr.classList.add("mm-wrapper_sidebar-expanded"),e.node.wrpr.matches(".mm-wrapper_sidebar-closed")||e.open();},i=function(){e.node.wrpr.classList.remove("mm-wrapper_sidebar-expanded"),e.close();};"boolean"==typeof t.expanded.use?this.bind("initMenu:after",n):P(t.expanded.use,n,i),this.bind("close:start",(function(){e.node.wrpr.matches(".mm-wrapper_sidebar-expanded")&&(e.node.wrpr.classList.add("mm-wrapper_sidebar-closed"),"remember"==t.expanded.initial&&window.localStorage.setItem("mmenuExpandedState","closed"));})),this.bind("open:start",(function(){e.node.wrpr.matches(".mm-wrapper_sidebar-expanded")&&(e.node.wrpr.classList.remove("mm-wrapper_sidebar-closed"),"remember"==t.expanded.initial&&window.localStorage.setItem("mmenuExpandedState","open"));}));var s=t.expanded.initial;if("remember"==t.expanded.initial){var o=window.localStorage.getItem("mmenuExpandedState");switch(o){case "open":case "closed":s=o;}}"closed"==s&&this.bind("initMenu:after",(function(){e.node.wrpr.classList.add("mm-wrapper_sidebar-closed");})),this.clck.push((function(n,i){if(i.inMenu&&i.inListview&&e.node.wrpr.matches(".mm-wrapper_sidebar-expanded"))return {close:"closed"==t.expanded.initial};}));}}},toggles:function(){var e=this;this.bind("initPanel:after",(function(t){g(t,"input").forEach((function(t){E(t,e.conf.classNames.toggles.toggle,"mm-toggle"),E(t,e.conf.classNames.toggles.check,"mm-check");}));}));}},S.wrappers={angular:function(){this.opts.onClick={close:!0,preventDefault:!1,setSelected:!0};},bootstrap:function(){var e=this;if(this.node.menu.matches(".navbar-collapse")){this.conf.offCanvas&&(this.conf.offCanvas.clone=!1);var t=b("nav"),n=b("div");t.append(n),_(this.node.menu).forEach((function(t){switch(!0){case t.matches(".navbar-nav"):n.append(function(e){var t=b("ul");return g(e,".nav-item").forEach((function(e){var n=b("li");if(e.matches(".active")&&n.classList.add("Selected"),!e.matches(".nav-link")){var i=_(e,".dropdown-menu")[0];i&&n.append(o(i)),e=_(e,".nav-link")[0];}n.prepend(a(e)),t.append(n);})),t;}(t));break;case t.matches(".dropdown-menu"):n.append(o(t));break;case t.matches(".form-inline"):e.conf.searchfield.form={action:t.getAttribute("action")||null,method:t.getAttribute("method")||null},e.conf.searchfield.input={name:t.querySelector("input").getAttribute("name")||null},e.conf.searchfield.clear=!1,e.conf.searchfield.submit=!0;break;default:n.append(t.cloneNode(!0));}})),this.bind("initMenu:before",(function(){document.body.prepend(t),e.node.menu=t;}));var i=this.node.menu.parentElement;if(i){var s=i.querySelector(".navbar-toggler");s&&(s.removeAttribute("data-target"),s.removeAttribute("aria-controls"),s.outerHTML=s.outerHTML,(s=i.querySelector(".navbar-toggler")).addEventListener("click",(function(t){t.preventDefault(),t.stopImmediatePropagation(),e[e.vars.opened?"close":"open"]();})));}}function a(e){for(var t=b(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,g(t,".sr-only").forEach((function(e){e.remove();})),t;}function o(e){var t=b("ul");return _(e).forEach((function(e){var n=b("li");e.matches(".dropdown-divider")?n.classList.add("Divider"):e.matches(".dropdown-item")&&n.append(a(e)),t.append(n);})),t;}},olark:function(){this.conf.offCanvas.page.noSelector.push("#olark");},turbolinks:function(){var e;document.addEventListener("turbolinks:before-visit",(function(t){e=document.querySelector(".mm-wrapper").className.split(" ").filter((function(e){return /mm-/.test(e);}));})),document.addEventListener("turbolinks:load",(function(t){void 0!==e&&(document.querySelector(".mm-wrapper").className=e);}));},wordpress:function(){this.conf.classNames.selected="current-menu-item";var e=document.getElementById("wpadminbar");
2374e&&(e.style.position="fixed",e.classList.add("mm-slideout"));}};var De;t.default=S;window&&(window.Mmenu=S),(De=window.jQuery||window.Zepto||null)&&(De.fn.mmenu=function(e,t){var n=De();return this.each((function(i,s){if(!s.mmApi){var a=new S(s,e,t),o=De(a.node.menu);o.data("mmenu",a.API),n=n.add(o);}})),n;});}]);;
2375(function(){'use strict';Drupal.behaviors.responsive_menu_mmenu={attach:function(context){const mmenuId='#off-canvas';const offCanvas=document.querySelector(mmenuId);if(offCanvas&&!offCanvas.hasOwnProperty('mmApi')&&typeof (Mmenu)!=='undefined'){const settings=drupalSettings.responsive_menu;const position=settings.position,theme=settings.theme,pagedim=settings.pagedim;const options={extensions:[theme,'fx-menu-slide',position==='left'?'position-left':'position-right'],keyboardNavigation:{enable:true,enhance:true},drag:{open:settings.drag}};if(pagedim!=='none')options.extensions.push(pagedim);const config={classNames:{selected:'menu-item--active-trail'}};if(typeof settings.custom!=='undefined'){if(typeof settings.custom.options!=='undefined')extend(options,drupalSettings.responsive_menu.custom.options);if(typeof drupalSettings.responsive_menu.custom.config!=='undefined')extend(config,drupalSettings.responsive_menu.custom.config);}const mmenu=new Mmenu(mmenuId,options,config);const mmenuApi=mmenu.API;const viewports=document.getElementsByName('viewport');if(viewports.length!==0&&settings.modifyViewport){const viewportMeta=viewports[0];const defaultViewport=viewports[0].content;const staticViewport="width=device-width, initial-scale=1.0, minimum-scale=1.0";mmenuApi.bind('open:start',function(){viewportMeta.setAttribute('content',staticViewport);});mmenuApi.bind('close:start',function(){viewportMeta.setAttribute('content',defaultViewport);});}}}};})();const extend=function(out){out=out||{};for(let i=1;i<arguments.length;i++){if(!arguments[i])continue;for(let key in arguments[i])if(arguments[i].hasOwnProperty(key))out[key]=arguments[i][key];}return out;};;
2376var Drupal=Drupal||{'settings':{},'behaviors':{},'locale':{}};let attr_type;let form_attr_id;let form_class;let input_name;let valueInput;(function($,Drupal,drupalSettings){const baseUrl=drupalSettings.search_form.base_url;const language=drupalSettings.search_form.language;const attributes_form=drupalSettings.attributes_form_logger;$(document).ready(function(){attributes_form.forEach((elementForm)=>eventForms(elementForm));});const eventForms=(elementForm)=>{attr_type=elementForm.attr_type;form_attr_id=elementForm.form_attr_id;form_class=elementForm.form_class;input_name=elementForm.input_name;if(attr_type!=null&&attr_type==1&&form_attr_id!=null&&input_name!=null){const elementForm=form_attr_id.trim().startsWith('#')?form_attr_id.trim().substring(1):form_attr_id.trim();const forms=document.querySelectorAll("#"+elementForm);forms.forEach((form)=>form.addEventListener('submit',formSearch));}else{if(attr_type!=null&&attr_type==2&&form_class!=null&&input_name!=null){const elementForm=form_attr_id.trim().startsWith('.')?form_attr_id.trim().substring(1):form_attr_id.trim();const forms=document.querySelectorAll("."+elementForm);forms.forEach((form)=>form.addEventListener('submit',formSearch));}}};const formSearch=(event)=>{event.preventDefault();const form=event.target;const elementInput=form.querySelector("[name='"+input_name+"']");valueInput=elementInput.value;let formFieldAttr=form.getAttribute("data-drupal-form-fields");let newcolor=false;if(formFieldAttr=="edit-keys--2"||elementInput.id==="edit-keys--2")newcolor=true;addSpinner(newcolor);generateLogSearch(valueInput).then((response)=>{if(response.status!==undefined&&response.status=='success'){const arrayEvent={'event':'log_search','search':response.data.searchQuery,'ip_address':response.data.ip_address,'created_on':response.data.created_on,'has_result':response.data.has_result,'count_result':response.data.count_result,'language_search':language};window.dataLayer.push(arrayEvent);}form.submit();}).catch((error)=>{console.error("Error de consulta del buscador",error);form.submit();});};async function generateLogSearch(searchQuery){const url=baseUrl+'/'+language+'/api/search-logger-for-travel-data';try{const response=await $.ajax({url,method:'GET',data:{keys:searchQuery}});return response;}catch(error){console.error("error en ajax",error);return null;}}const addSpinner=(newcolor=false)=>{if($('.input-spinner').length)$(".input-spinner").remove();if(newcolor)$('input[name="'+input_name+'"]').after(`<div class="input-spinner black"></div>`);else $('input[name="'+input_name+'"]').after(`<div class="input-spinner"></div>`);};})(jQuery,Drupal,drupalSettings);;

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.