From 9188764d5879927b2d5c64cb2cc583e4e7e28c44 Mon Sep 17 00:00:00 2001 From: "konstantin.koryaka" Date: Wed, 13 Mar 2019 09:25:12 -0700 Subject: [PATCH] Removed invisible home link from main navigiation. Fixed navigation keyboard preventDefault issue. --- js/cagov.core.js | 4 ++-- js/cagov.core.min.js | 4 ++-- sample/modules/nav-dev.html | 4 +--- sample/modules/nav-megamenu-orig.html | 4 +--- sample/modules/nav-singlelevel-standard-mobile.html | 1 - sample/modules/nav-singlelevel.html | 3 --- source/js/cagov/navigation.js | 2 +- ssi/navigation.html | 3 --- 8 files changed, 7 insertions(+), 18 deletions(-) diff --git a/js/cagov.core.js b/js/cagov.core.js index 31b878c21..be967304a 100644 --- a/js/cagov.core.js +++ b/js/cagov.core.js @@ -1,5 +1,5 @@ /** - * CA State Template v5.5 - @version v5.5.2 - 3/5/2019 + * CA State Template v5.5 - @version v5.5.2 - 3/13/2019 STYLES COMPILED FROM SOURCE (source/js) DO NOT MODIFY */ /*! modernizr (Custom Build) | MIT * * https://modernizr.com/download/?-flexbox-setclasses !*/ @@ -15214,7 +15214,7 @@ limitations under the License. case Keyboard.SPACE: case Keyboard.ENTER: if (isTopNavItem) { - event.preventDefault(); + // event.preventDefault(); _clickHandler.call(that, event); } else { return true; diff --git a/js/cagov.core.min.js b/js/cagov.core.min.js index 38919affd..dc771275c 100644 --- a/js/cagov.core.min.js +++ b/js/cagov.core.min.js @@ -1,4 +1,4 @@ /** - * CA State Template v5.5 - @version v5.5.2 - 3/5/2019 + * CA State Template v5.5 - @version v5.5.2 - 3/13/2019 STYLES COMPILED FROM SOURCE (source/js) DO NOT MODIFY */ -!function(o,d,p){function f(t,e){return typeof t===e}function g(){return"function"!=typeof d.createElement?d.createElement(arguments[0]):y?d.createElementNS.call(d,"http://www.w3.org/2000/svg",arguments[0]):d.createElement.apply(d,arguments)}function a(t,e){return function(){return t.apply(e,arguments)}}function s(t){return t.replace(/([A-Z])/g,function(t,e){return"-"+e.toLowerCase()}).replace(/^ms-/,"-ms-")}function r(t,e,i,n){var s,o,r,a,l,c="modernizr",h=g("div"),u=((l=d.body)||((l=g(y?"svg":"body")).fake=!0),l);if(parseInt(i,10))for(;i--;)(r=g("div")).id=n?n[i]:c+(i+1),h.appendChild(r);return(s=g("style")).type="text/css",s.id="s"+c,(u.fake?u:h).appendChild(s),u.appendChild(h),s.styleSheet?s.styleSheet.cssText=t:s.appendChild(d.createTextNode(t)),h.id=c,u.fake&&(u.style.background="",u.style.overflow="hidden",a=v.style.overflow,v.style.overflow="hidden",v.appendChild(u)),o=e(h,t),u.fake?(u.parentNode.removeChild(u),v.style.overflow=a,v.offsetHeight):h.parentNode.removeChild(h),!!o}function m(t,e){var i=t.length;if("CSS"in o&&"supports"in o.CSS){for(;i--;)if(o.CSS.supports(s(t[i]),e))return!0;return!1}if("CSSSupportsRule"in o){for(var n=[];i--;)n.push("("+s(t[i])+":"+e+")");return r("@supports ("+(n=n.join(" or "))+") { #modernizr { position: absolute; } }",function(t){return"absolute"==function(t,e,i){var n;if("getComputedStyle"in o){n=getComputedStyle.call(o,t,e);var s=o.console;null!==n?i&&(n=n.getPropertyValue(i)):s&&s[s.error?"error":"log"].call(s,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}else n=!e&&t.currentStyle&&t.currentStyle[i];return n}(t,null,"position")})}return p}function n(t,e,i,n,s){var o=t.charAt(0).toUpperCase()+t.slice(1),r=(t+" "+u.join(o+" ")+o).split(" ");return f(e,"string")||f(e,"undefined")?function(t,e,i,n){function s(){r&&(delete b.style,delete b.modElem)}if(n=!f(n,"undefined")&&n,!f(i,"undefined")){var o=m(t,i);if(!f(o,"undefined"))return o}for(var r,a,l,c,h,u=["modernizr","tspan","samp"];!b.style&&u.length;)r=!0,b.modElem=g(u.shift()),b.style=b.modElem.style;for(l=t.length,a=0;athis._items.length-1||t<0))if(this._isSliding)f(this._element).one(V.SLID,function(){return e.to(t)});else{if(i===t)return this.pause(),void this.cycle();var n=i=n.clientWidth&&i>=n.clientHeight}),h=0l[t]&&!n.escapeWithReference&&(i=Math.min(h[e],l[t]-("right"===t?h.width:h.height))),qt({},e,i)}};return c.forEach(function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";h=Bt({},h,u[e](t))}),t.offsets.popper=h,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,i=e.popper,n=e.reference,s=t.placement.split("-")[0],o=Math.floor,r=-1!==["top","bottom"].indexOf(s),a=r?"right":"bottom",l=r?"left":"top",c=r?"width":"height";return i[a]o(n[a])&&(t.offsets.popper[l]=o(n[a])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var i;if(!de(t.instance.modifiers,"arrow","keepTogether"))return t;var n=e.element;if("string"==typeof n){if(!(n=t.instance.popper.querySelector(n)))return t}else if(!t.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var s=t.placement.split("-")[0],o=t.offsets,r=o.popper,a=o.reference,l=-1!==["left","right"].indexOf(s),c=l?"height":"width",h=l?"Top":"Left",u=h.toLowerCase(),d=l?"left":"top",p=l?"bottom":"right",f=Jt(n)[c];a[p]-fr[p]&&(t.offsets.popper[u]+=a[u]+f-r[p]),t.offsets.popper=Ut(t.offsets.popper);var g=a[u]+a[c]/2-f/2,m=Dt(t.instance.popper),v=parseFloat(m["margin"+h],10),y=parseFloat(m["border"+h+"Width"],10),_=g-t.offsets.popper[u]-v-y;return _=Math.max(Math.min(r[c]-f,_),0),t.arrowElement=n,t.offsets.arrow=(qt(i={},u,Math.round(_)),qt(i,d,""),i),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(f,g){if(se(f.instance.modifiers,"inner"))return f;if(f.flipped&&f.placement===f.originalPlacement)return f;var m=Yt(f.instance.popper,f.instance.reference,g.padding,g.boundariesElement,f.positionFixed),v=f.placement.split("-")[0],y=te(v),_=f.placement.split("-")[1]||"",w=[];switch(g.behavior){case me:w=[v,y];break;case ve:w=ge(v);break;case ye:w=ge(v,!0);break;default:w=g.behavior}return w.forEach(function(t,e){if(v!==t||w.length===e+1)return f;v=f.placement.split("-")[0],y=te(v);var i,n=f.offsets.popper,s=f.offsets.reference,o=Math.floor,r="left"===v&&o(n.right)>o(s.left)||"right"===v&&o(n.left)o(s.top)||"bottom"===v&&o(n.top)o(m.right),c=o(n.top)o(m.bottom),u="left"===v&&a||"right"===v&&l||"top"===v&&c||"bottom"===v&&h,d=-1!==["top","bottom"].indexOf(v),p=!!g.flipVariations&&(d&&"start"===_&&a||d&&"end"===_&&l||!d&&"start"===_&&c||!d&&"end"===_&&h);(r||u||p)&&(f.flipped=!0,(r||u)&&(v=w[e+1]),p&&(_="end"===(i=_)?"start":"start"===i?"end":i),f.placement=v+(_?"-"+_:""),f.offsets.popper=Bt({},f.offsets.popper,ee(f.instance.popper,f.offsets.reference,f.placement)),f=ne(f.instance.modifiers,f,"flip"))}),f},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,i=e.split("-")[0],n=t.offsets,s=n.popper,o=n.reference,r=-1!==["left","right"].indexOf(i),a=-1===["top","left"].indexOf(i);return s[r?"left":"top"]=o[i]-(a?s[r?"width":"height"]:0),t.placement=te(e),t.offsets.popper=Ut(s),t}},hide:{order:800,enabled:!0,fn:function(t){if(!de(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,i=ie(t.instance.modifiers,function(t){return"preventOverflow"===t.name}).boundaries;if(e.bottomi.right||e.top>i.bottom||e.rightdocument.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},t._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},t._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=t.left+t.right
',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:vi},Ii="show",Oi="out",Pi={HIDE:"hide"+xi,HIDDEN:"hidden"+xi,SHOW:"show"+xi,SHOWN:"shown"+xi,INSERTED:"inserted"+xi,CLICK:"click"+xi,FOCUSIN:"focusin"+xi,FOCUSOUT:"focusout"+xi,MOUSEENTER:"mouseenter"+xi,MOUSELEAVE:"mouseleave"+xi},Ni="fade",Hi="show",Mi=".tooltip-inner",Li=".arrow",ji="hover",zi="focus",Ri="click",Fi="manual",Wi=function(){function n(t,e){if(void 0===be)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var t=n.prototype;return t.enable=function(){this._isEnabled=!0},t.disable=function(){this._isEnabled=!1},t.toggleEnabled=function(){this._isEnabled=!this._isEnabled},t.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,i=f(t.currentTarget).data(e);i||(i=new this.constructor(t.currentTarget,this._getDelegateConfig()),f(t.currentTarget).data(e,i)),i._activeTrigger.click=!i._activeTrigger.click,i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(f(this.getTipElement()).hasClass(Hi))return void this._leave(null,this);this._enter(null,this)}},t.dispose=function(){clearTimeout(this._timeout),f.removeData(this.element,this.constructor.DATA_KEY),f(this.element).off(this.constructor.EVENT_KEY),f(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&f(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,(this._activeTrigger=null)!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},t.show=function(){var e=this;if("none"===f(this.element).css("display"))throw new Error("Please use show on visible elements");var t=f.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){f(this.element).trigger(t);var i=g.findShadowRoot(this.element),n=f.contains(null!==i?i:this.element.ownerDocument.documentElement,this.element);if(t.isDefaultPrevented()||!n)return;var s=this.getTipElement(),o=g.getUID(this.constructor.NAME);s.setAttribute("id",o),this.element.setAttribute("aria-describedby",o),this.setContent(),this.config.animation&&f(s).addClass(Ni);var r="function"==typeof this.config.placement?this.config.placement.call(this,s,this.element):this.config.placement,a=this._getAttachment(r);this.addAttachmentClass(a);var l=this._getContainer();f(s).data(this.constructor.DATA_KEY,this),f.contains(this.element.ownerDocument.documentElement,this.tip)||f(s).appendTo(l),f(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new be(this.element,s,{placement:a,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:Li},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){return e._handlePopperPlacementChange(t)}}),f(s).addClass(Hi),"ontouchstart"in document.documentElement&&f(document.body).children().on("mouseover",null,f.noop);var c=function(){e.config.animation&&e._fixTransition();var t=e._hoverState;e._hoverState=null,f(e.element).trigger(e.constructor.Event.SHOWN),t===Oi&&e._leave(null,e)};if(f(this.tip).hasClass(Ni)){var h=g.getTransitionDurationFromElement(this.tip);f(this.tip).one(g.TRANSITION_END,c).emulateTransitionEnd(h)}else c()}},t.hide=function(t){var e=this,i=this.getTipElement(),n=f.Event(this.constructor.Event.HIDE),s=function(){e._hoverState!==Ii&&i.parentNode&&i.parentNode.removeChild(i),e._cleanTipClass(),e.element.removeAttribute("aria-describedby"),f(e.element).trigger(e.constructor.Event.HIDDEN),null!==e._popper&&e._popper.destroy(),t&&t()};if(f(this.element).trigger(n),!n.isDefaultPrevented()){if(f(i).removeClass(Hi),"ontouchstart"in document.documentElement&&f(document.body).children().off("mouseover",null,f.noop),this._activeTrigger[Ri]=!1,this._activeTrigger[zi]=!1,this._activeTrigger[ji]=!1,f(this.tip).hasClass(Ni)){var o=g.getTransitionDurationFromElement(i);f(i).one(g.TRANSITION_END,s).emulateTransitionEnd(o)}else s();this._hoverState=""}},t.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},t.isWithContent=function(){return Boolean(this.getTitle())},t.addAttachmentClass=function(t){f(this.getTipElement()).addClass(Ti+"-"+t)},t.getTipElement=function(){return this.tip=this.tip||f(this.config.template)[0],this.tip},t.setContent=function(){var t=this.getTipElement();this.setElementContent(f(t.querySelectorAll(Mi)),this.getTitle()),f(t).removeClass(Ni+" "+Hi)},t.setElementContent=function(t,e){"object"!=typeof e||!e.nodeType&&!e.jquery?this.config.html?(this.config.sanitize&&(e=wi(e,this.config.whiteList,this.config.sanitizeFn)),t.html(e)):t.text(e):this.config.html?f(e).parent().is(t)||t.empty().append(e):t.text(f(e).text())},t.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},t._getOffset=function(){var e=this,t={};return"function"==typeof this.config.offset?t.fn=function(t){return t.offsets=l({},t.offsets,e.config.offset(t.offsets,e.element)||{}),t}:t.offset=this.config.offset,t},t._getContainer=function(){return!1===this.config.container?document.body:g.isElement(this.config.container)?f(this.config.container):f(document).find(this.config.container)},t._getAttachment=function(t){return Ai[t.toUpperCase()]},t._setListeners=function(){var n=this;this.config.trigger.split(" ").forEach(function(t){if("click"===t)f(n.element).on(n.constructor.Event.CLICK,n.config.selector,function(t){return n.toggle(t)});else if(t!==Fi){var e=t===ji?n.constructor.Event.MOUSEENTER:n.constructor.Event.FOCUSIN,i=t===ji?n.constructor.Event.MOUSELEAVE:n.constructor.Event.FOCUSOUT;f(n.element).on(e,n.config.selector,function(t){return n._enter(t)}).on(i,n.config.selector,function(t){return n._leave(t)})}}),f(this.element).closest(".modal").on("hide.bs.modal",function(){n.element&&n.hide()}),this.config.selector?this.config=l({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},t._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},t._enter=function(t,e){var i=this.constructor.DATA_KEY;(e=e||f(t.currentTarget).data(i))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),f(t.currentTarget).data(i,e)),t&&(e._activeTrigger["focusin"===t.type?zi:ji]=!0),f(e.getTipElement()).hasClass(Hi)||e._hoverState===Ii?e._hoverState=Ii:(clearTimeout(e._timeout),e._hoverState=Ii,e.config.delay&&e.config.delay.show?e._timeout=setTimeout(function(){e._hoverState===Ii&&e.show()},e.config.delay.show):e.show())},t._leave=function(t,e){var i=this.constructor.DATA_KEY;(e=e||f(t.currentTarget).data(i))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),f(t.currentTarget).data(i,e)),t&&(e._activeTrigger["focusout"===t.type?zi:ji]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=Oi,e.config.delay&&e.config.delay.hide?e._timeout=setTimeout(function(){e._hoverState===Oi&&e.hide()},e.config.delay.hide):e.hide())},t._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},t._getConfig=function(t){var e=f(this.element).data();return Object.keys(e).forEach(function(t){-1!==ki.indexOf(t)&&delete e[t]}),"number"==typeof(t=l({},this.constructor.Default,e,"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),g.typeCheckConfig(bi,t,this.constructor.DefaultType),t.sanitize&&(t.template=wi(t.template,t.whiteList,t.sanitizeFn)),t},t._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},t._cleanTipClass=function(){var t=f(this.getTipElement()),e=t.attr("class").match($i);null!==e&&e.length&&t.removeClass(e.join(""))},t._handlePopperPlacementChange=function(t){var e=t.instance;this.tip=e.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},t._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(f(t).removeClass(Ni),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},n._jQueryInterface=function(i){return this.each(function(){var t=f(this).data(Ci),e="object"==typeof i&&i;if((t||!/dispose|hide/.test(i))&&(t||(t=new n(this,e),f(this).data(Ci,t)),"string"==typeof i)){if(void 0===t[i])throw new TypeError('No method named "'+i+'"');t[i]()}})},r(n,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return Di}},{key:"NAME",get:function(){return bi}},{key:"DATA_KEY",get:function(){return Ci}},{key:"Event",get:function(){return Pi}},{key:"EVENT_KEY",get:function(){return xi}},{key:"DefaultType",get:function(){return Si}}]),n}();f.fn[bi]=Wi._jQueryInterface,f.fn[bi].Constructor=Wi,f.fn[bi].noConflict=function(){return f.fn[bi]=Ei,Wi._jQueryInterface};var Vi="popover",qi="bs.popover",Bi="."+qi,Ui=f.fn[Vi],Ki="bs-popover",Qi=new RegExp("(^|\\s)"+Ki+"\\S+","g"),Gi=l({},Wi.Default,{placement:"right",trigger:"click",content:"",template:''}),Yi=l({},Wi.DefaultType,{content:"(string|element|function)"}),Xi="fade",Zi="show",Ji=".popover-header",tn=".popover-body",en={HIDE:"hide"+Bi,HIDDEN:"hidden"+Bi,SHOW:"show"+Bi,SHOWN:"shown"+Bi,INSERTED:"inserted"+Bi,CLICK:"click"+Bi,FOCUSIN:"focusin"+Bi,FOCUSOUT:"focusout"+Bi,MOUSEENTER:"mouseenter"+Bi,MOUSELEAVE:"mouseleave"+Bi},nn=function(t){var e,i;function n(){return t.apply(this,arguments)||this}i=t,(e=n).prototype=Object.create(i.prototype),(e.prototype.constructor=e).__proto__=i;var s=n.prototype;return s.isWithContent=function(){return this.getTitle()||this._getContent()},s.addAttachmentClass=function(t){f(this.getTipElement()).addClass(Ki+"-"+t)},s.getTipElement=function(){return this.tip=this.tip||f(this.config.template)[0],this.tip},s.setContent=function(){var t=f(this.getTipElement());this.setElementContent(t.find(Ji),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(tn),e),t.removeClass(Xi+" "+Zi)},s._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},s._cleanTipClass=function(){var t=f(this.getTipElement()),e=t.attr("class").match(Qi);null!==e&&0=this._offsets[s]&&(void 0===this._offsets[s+1]||t .active");n.find("[data-toggle=tab], [data-toggle=pill]").attr({tabIndex:"-1","aria-selected":!1}),n.filter(".tab-pane").attr({"aria-hidden":!0,tabIndex:"-1"}),tabactivate.apply(this,arguments),t.addClass("active"),t.find("[data-toggle=tab], [data-toggle=pill]").attr({tabIndex:"0","aria-selected":!0}),t.filter(".tab-pane").attr({"aria-hidden":!1,tabIndex:"0"})},function(l,i,s,a){function c(t,e){this.settings=null,this.options=l.extend({},c.Defaults,e),this.$element=l(t),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},l.each(["onResize","onThrottledResize"],l.proxy(function(t,e){this._handlers[e]=l.proxy(this[e],this)},this)),l.each(c.Plugins,l.proxy(function(t,e){this._plugins[t.charAt(0).toLowerCase()+t.slice(1)]=new e(this)},this)),l.each(c.Workers,l.proxy(function(t,e){this._pipe.push({filter:e.filter,run:l.proxy(e.run,this)})},this)),this.setup(),this.initialize()}c.Defaults={items:3,loop:!1,center:!1,rewind:!1,checkVisibility:!0,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:i,fallbackEasing:"swing",slideTransition:"",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},c.Width={Default:"default",Inner:"inner",Outer:"outer"},c.Type={Event:"event",State:"state"},c.Plugins={},c.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(t){t.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(t){var e=this.settings.margin||"",i=!this.settings.autoWidth,n=this.settings.rtl,s={width:"auto","margin-left":n?e:"","margin-right":n?"":e};!i&&this.$stage.children().css(s),t.css=s}},{filter:["width","items","settings"],run:function(t){var e=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,i=null,n=this._items.length,s=!this.settings.autoWidth,o=[];for(t.items={merge:!1,width:e};n--;)i=this._mergers[n],i=this.settings.mergeFit&&Math.min(i,this.settings.items)||i,t.items.merge=1",a)||this.op(e,"<",r)&&this.op(e,">",a))&&l.push(i);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+l.join("), :eq(")+")").addClass("active"),this.$stage.children(".center").removeClass("center"),this.settings.center&&this.$stage.children().eq(this.current()).addClass("center")}}],c.prototype.initializeStage=function(){this.$stage=this.$element.find("."+this.settings.stageClass),this.$stage.length||(this.$element.addClass(this.options.loadingClass),this.$stage=l("<"+this.settings.stageElement+">",{class:this.settings.stageClass}).wrap(l("
",{class:this.settings.stageOuterClass})),this.$element.append(this.$stage.parent()))},c.prototype.initializeItems=function(){var t=this.$element.find(".owl-item");if(t.length)return this._items=t.get().map(function(t){return l(t)}),this._mergers=this._items.map(function(){return 1}),void this.refresh();this.replace(this.$element.children().not(this.$stage.parent())),this.isVisible()?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass)},c.prototype.initialize=function(){var t,e,i;(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading"))&&(t=this.$element.find("img"),e=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:a,i=this.$element.children(e).width(),t.length&&i<=0&&this.preloadAutoWidthImages(t));this.initializeStage(),this.initializeItems(),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},c.prototype.isVisible=function(){return!this.settings.checkVisibility||this.$element.is(":visible")},c.prototype.setup=function(){var e=this.viewport(),t=this.options.responsive,i=-1,n=null;t?(l.each(t,function(t){t<=e&&i").addClass(this.options.itemClass).append(t)),this.trigger("prepared",{content:e.data}),e.data},c.prototype.update=function(){for(var t=0,e=this._pipe.length,i=l.proxy(function(t){return this[t]},this._invalidated),n={};t",r[t+1]!==a?r[t+1]:e-o)&&(s="left"===n?t+1:t),-1===s},this)),this.settings.loop||(this.op(i,">",r[this.minimum()])?s=i=this.minimum():this.op(i,"<",r[this.maximum()])&&(s=i=this.maximum())),s},c.prototype.animate=function(t){var e=0r/2&&(s+=-1*o*r),(n=(((t=i+s)-a)%r+r)%r+a)!==t&&n-s<=l&&0":return n?t=":return n?t<=i:i<=t;case"<=":return n?i<=t:t<=i}},c.prototype.on=function(t,e,i,n){t.addEventListener?t.addEventListener(e,i,n):t.attachEvent&&t.attachEvent("on"+e,i)},c.prototype.off=function(t,e,i,n){t.removeEventListener?t.removeEventListener(e,i,n):t.detachEvent&&t.detachEvent("on"+e,i)},c.prototype.trigger=function(t,e,i,n,s){var o={item:{count:this._items.length,index:this.current()}},r=l.camelCase(l.grep(["on",t,i],function(t){return t}).join("-").toLowerCase()),a=l.Event([t,"owl",i||"carousel"].join(".").toLowerCase(),l.extend({relatedTarget:this},o,e));return this._supress[t]||(l.each(this._plugins,function(t,e){e.onTrigger&&e.onTrigger(a)}),this.register({type:c.Type.Event,name:t}),this.$element.trigger(a),this.settings&&"function"==typeof this.settings[r]&&this.settings[r].call(this,a)),a},c.prototype.enter=function(t){l.each([t].concat(this._states.tags[t]||[]),l.proxy(function(t,e){this._states.current[e]===a&&(this._states.current[e]=0),this._states.current[e]++},this))},c.prototype.leave=function(t){l.each([t].concat(this._states.tags[t]||[]),l.proxy(function(t,e){this._states.current[e]--},this))},c.prototype.register=function(i){if(i.type===c.Type.Event){if(l.event.special[i.name]||(l.event.special[i.name]={}),!l.event.special[i.name].owl){var e=l.event.special[i.name]._default;l.event.special[i.name]._default=function(t){return!e||!e.apply||t.namespace&&-1!==t.namespace.indexOf("owl")?t.namespace&&-1
',i=l.lazyLoad?h("
",{class:"owl-video-tn "+a,srcType:t}):h("
",{class:"owl-video-tn",style:"opacity:1;background-image:url("+t+")"}),e.after(i),e.after('
')};if(e.wrap(h("
",{class:"owl-video-wrapper",style:s})),this._core.settings.lazyLoad&&(r="data-src",a="owl-lazy"),o.length)return c(o.attr(r)),o.remove(),!1;"youtube"===t.type?(n="//img.youtube.com/vi/"+t.id+"/hqdefault.jpg",c(n)):"vimeo"===t.type?h.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+t.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){n=t[0].thumbnail_large,c(n)}}):"vzaar"===t.type&&h.ajax({type:"GET",url:"//vzaar.com/api/videos/"+t.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){n=t.framegrab_url,c(n)}})},n.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},n.prototype.play=function(t){var e,i=h(t.target).closest("."+this._core.settings.itemClass),n=this._videos[i.attr("data-video")],s=n.width||"100%",o=n.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),i=this._core.items(this._core.relative(i.index())),this._core.reset(i.index()),(e=h('')).attr("height",o),e.attr("width",s),"youtube"===n.type?e.attr("src","//www.youtube.com/embed/"+n.id+"?autoplay=1&rel=0&v="+n.id):"vimeo"===n.type?e.attr("src","//player.vimeo.com/video/"+n.id+"?autoplay=1"):"vzaar"===n.type&&e.attr("src","//view.vzaar.com/"+n.id+"/player?autoplay=true"),h(e).wrap('
').insertAfter(i.find(".owl-video")),this._playing=i.addClass("owl-video-playing"))},n.prototype.isInFullScreen=function(){var t=e.fullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement;return t&&h(t).parent().hasClass("owl-video-frame")},n.prototype.destroy=function(){var t,e;for(t in this._core.$element.off("click.owl.video"),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},h.fn.owlCarousel.Constructor.Plugins.Video=n}(window.Zepto||window.jQuery,window,document),function(r,t,e,i){var n=function(t){this.core=t,this.core.options=r.extend({},n.Defaults,this.core.options),this.swapping=!0,this.previous=void 0,this.next=void 0,this.handlers={"change.owl.carousel":r.proxy(function(t){t.namespace&&"position"==t.property.name&&(this.previous=this.core.current(),this.next=t.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":r.proxy(function(t){t.namespace&&(this.swapping="translated"==t.type)},this),"translate.owl.carousel":r.proxy(function(t){t.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};n.Defaults={animateOut:!1,animateIn:!1},n.prototype.swap=function(){if(1===this.core.settings.items&&r.support.animation&&r.support.transition){this.core.speed(0);var t,e=r.proxy(this.clear,this),i=this.core.$stage.children().eq(this.previous),n=this.core.$stage.children().eq(this.next),s=this.core.settings.animateIn,o=this.core.settings.animateOut;this.core.current()!==this.previous&&(o&&(t=this.core.coordinates(this.previous)-this.core.coordinates(this.next),i.one(r.support.animation.end,e).css({left:t+"px"}).addClass("animated owl-animated-out").addClass(o)),s&&n.one(r.support.animation.end,e).addClass("animated owl-animated-in").addClass(s))}},n.prototype.clear=function(t){r(t.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},n.prototype.destroy=function(){var t,e;for(t in this.handlers)this.core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},r.fn.owlCarousel.Constructor.Plugins.Animate=n}(window.Zepto||window.jQuery,window,document),function(n,s,e,t){var i=function(t){this._core=t,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={"changed.owl.carousel":n.proxy(function(t){t.namespace&&"settings"===t.property.name?this._core.settings.autoplay?this.play():this.stop():t.namespace&&"position"===t.property.name&&this._paused&&(this._time=0)},this),"initialized.owl.carousel":n.proxy(function(t){t.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":n.proxy(function(t,e,i){t.namespace&&this.play(e,i)},this),"stop.owl.autoplay":n.proxy(function(t){t.namespace&&this.stop()},this),"mouseover.owl.autoplay":n.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":n.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":n.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":n.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=n.extend({},i.Defaults,this._core.options)};i.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},i.prototype._next=function(t){this._call=s.setTimeout(n.proxy(this._next,this,t),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),this._core.is("interacting")||e.hidden||this._core.next(t||this._core.settings.autoplaySpeed)},i.prototype.read=function(){return(new Date).getTime()-this._time},i.prototype.play=function(t,e){var i;this._core.is("rotating")||this._core.enter("rotating"),t=t||this._core.settings.autoplayTimeout,i=Math.min(this._time%(this._timeout||t),t),this._paused?(this._time=this.read(),this._paused=!1):s.clearTimeout(this._call),this._time+=this.read()%t-i,this._timeout=t,this._call=s.setTimeout(n.proxy(this._next,this,e),t-i)},i.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,s.clearTimeout(this._call),this._core.leave("rotating"))},i.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,s.clearTimeout(this._call))},i.prototype.destroy=function(){var t,e;for(t in this.stop(),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},n.fn.owlCarousel.Constructor.Plugins.autoplay=i}(window.Zepto||window.jQuery,window,document),function(o,t,e,i){"use strict";var n=function(t){this._core=t,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":o.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.push('
'+o(t.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"
")},this),"added.owl.carousel":o.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,0,this._templates.pop())},this),"remove.owl.carousel":o.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,1)},this),"changed.owl.carousel":o.proxy(function(t){t.namespace&&"position"==t.property.name&&this.draw()},this),"initialized.owl.carousel":o.proxy(function(t){t.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":o.proxy(function(t){t.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=o.extend({},n.Defaults,this._core.options),this.$element.on(this._handlers)};n.Defaults={nav:!1,navText:['',''],navSpeed:!1,navElement:'button type="button" role="presentation"',navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},n.prototype.initialize=function(){var t,i=this._core.settings;for(t in this._controls.$relative=(i.navContainer?o(i.navContainer):o("
").addClass(i.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=o("<"+i.navElement+">").addClass(i.navClass[0]).html(i.navText[0]).prependTo(this._controls.$relative).on("click",o.proxy(function(t){this.prev(i.navSpeed)},this)),this._controls.$next=o("<"+i.navElement+">").addClass(i.navClass[1]).html(i.navText[1]).appendTo(this._controls.$relative).on("click",o.proxy(function(t){this.next(i.navSpeed)},this)),i.dotsData||(this._templates=[o('
');t.append(n);var s=n.find(".play").hide(),o=n.find(".pause");s.on("click",function(){a(this).hide(),a(this).parent().removeClass("active"),o.show(),t.trigger("play.owl.autoplay",[r.delay]),t.owlCarousel("next")}),o.on("click",function(){a(this).hide(),a(this).parent().addClass("active"),s.show(),t.trigger("stop.owl.autoplay")}),a(".banner-pager .banner-control").each(function(){a(this).find("span").append(a(this).index()+1)})})},$("body .carousel-banner").owlBannerCarousel(),$.fn.owlCarousel&&($(".carousel-media").owlCarousel({onResized:function(){window.setTimeout(function(){$(window).trigger("resize")},0)},onDragged:function(){window.setTimeout(function(){$(window).trigger("resize")},0)},onTranslated:function(){window.setTimeout(function(){$(window).trigger("resize")},0)},responsive:!0,margin:10,nav:!0,loop:!0,responsiveClass:!0,responsive:{0:{items:1,nav:!0},400:{items:2},700:{items:3,nav:!0},1e3:{items:4,nav:!0}},navText:['',''],dots:!1}),$(".carousel-link").owlCarousel({margin:25,autoWidth:!0,nav:!0,navText:['',''],dots:!1}),$(".carousel-slider").owlCarousel({items:1,nav:!0,navText:['',''],dots:!1}),$(".carousel-gallery").owlCarousel({items:1,nav:!0,navText:['',''],dots:!1}))}),function(c){c.fn.initCAVideo=function(t){return this.each(function(){var r=c(this);if(!r.attr("data-loaded")){r.attr("data-loaded","true");var e=(r.find(".item a").first().attr("href")||"").split("?v=").pop(),i=0,a=r.find(".item").length;r.owlCarousel({items:1,loop:!1,nav:!0,lazyLoad:!1,video:!0,navText:['',''],dots:!1}),r.on("translated.owl.carousel",function(t){e=r.find(".owl-item.active").attr("data-video").split(/\?v=|\/v\//).pop(),n(),i=t.item.index,l.trigger("to.owl.carousel",[i,300,!0])}),r.find(".owl-video-play-icon").append(c('')),r.find(".owl-video-tn").after(c("
").addClass("item-overlay"));var l=c("
").insertAfter(r);l.addClass("carousel owl-carousel carousel-video-submenu"),r.find("a.owl-video").each(function(t){var e=c(this).attr("href"),i=c("
").addClass("item-thumbnail");i.on("click",function(){r.trigger("to.owl.carousel",[t%a,300,!0]),l.find(".watching").removeClass("watching"),c(this).parents(".owl-item").addClass("watching"),r.find(".active .owl-video-play-icon").trigger("click")});new RegExp("ab+c","i");var n="url(http://img.youtube.com/vi/"+e.split(/\?v=|\/v\//).pop()+"/0.jpg )",s=c("
');t.append(n);var s=n.find(".play").hide(),o=n.find(".pause");s.on("click",function(){a(this).hide(),a(this).parent().removeClass("active"),o.show(),t.trigger("play.owl.autoplay",[r.delay]),t.owlCarousel("next")}),o.on("click",function(){a(this).hide(),a(this).parent().addClass("active"),s.show(),t.trigger("stop.owl.autoplay")}),a(".banner-pager .banner-control").each(function(){a(this).find("span").append(a(this).index()+1)})})},$("body .carousel-banner").owlBannerCarousel(),$.fn.owlCarousel&&($(".carousel-media").owlCarousel({onResized:function(){window.setTimeout(function(){$(window).trigger("resize")},0)},onDragged:function(){window.setTimeout(function(){$(window).trigger("resize")},0)},onTranslated:function(){window.setTimeout(function(){$(window).trigger("resize")},0)},responsive:!0,margin:10,nav:!0,loop:!0,responsiveClass:!0,responsive:{0:{items:1,nav:!0},400:{items:2},700:{items:3,nav:!0},1e3:{items:4,nav:!0}},navText:['',''],dots:!1}),$(".carousel-link").owlCarousel({margin:25,autoWidth:!0,nav:!0,navText:['',''],dots:!1}),$(".carousel-slider").owlCarousel({items:1,nav:!0,navText:['',''],dots:!1}),$(".carousel-gallery").owlCarousel({items:1,nav:!0,navText:['',''],dots:!1}))}),function(c){c.fn.initCAVideo=function(t){return this.each(function(){var r=c(this);if(!r.attr("data-loaded")){r.attr("data-loaded","true");var e=(r.find(".item a").first().attr("href")||"").split("?v=").pop(),i=0,a=r.find(".item").length;r.owlCarousel({items:1,loop:!1,nav:!0,lazyLoad:!1,video:!0,navText:['',''],dots:!1}),r.on("translated.owl.carousel",function(t){e=r.find(".owl-item.active").attr("data-video").split(/\?v=|\/v\//).pop(),n(),i=t.item.index,l.trigger("to.owl.carousel",[i,300,!0])}),r.find(".owl-video-play-icon").append(c('')),r.find(".owl-video-tn").after(c("
").addClass("item-overlay"));var l=c("
").insertAfter(r);l.addClass("carousel owl-carousel carousel-video-submenu"),r.find("a.owl-video").each(function(t){var e=c(this).attr("href"),i=c("
").addClass("item-thumbnail");i.on("click",function(){r.trigger("to.owl.carousel",[t%a,300,!0]),l.find(".watching").removeClass("watching"),c(this).parents(".owl-item").addClass("watching"),r.find(".active .owl-video-play-icon").trigger("click")});new RegExp("ab+c","i");var n="url(http://img.youtube.com/vi/"+e.split(/\?v=|\/v\//).pop()+"/0.jpg )",s=c("