'),this.responsivetab.dropdown=this.responsivetab.find(".uk-dropdown"),this.responsivetab.lst=this.responsivetab.dropdown.find("ul"),this.responsivetab.caption=this.responsivetab.find("a:first"),this.element.hasClass("uk-tab-bottom")&&this.responsivetab.dropdown.addClass("uk-dropdown-up"),this.responsivetab.lst.on("click.uk.tab","a",function(t){t.preventDefault(),t.stopPropagation();var i=a.$(this);e.element.children("li:not(.uk-tab-responsive)").eq(i.data("index")).trigger("click")}),this.on("show.uk.switcher change.uk.tab",function(t,i){e.responsivetab.caption.html(i.text())}),this.element.append(this.responsivetab),this.options.connect&&(this.switcher=a.switcher(this.element,{toggle:">li:not(.uk-tab-responsive)",connect:this.options.connect,active:this.options.active,animation:this.options.animation,duration:this.options.duration,swiping:this.options.swiping})),a.dropdown(this.responsivetab,{mode:"click",preventflip:"y"}),e.trigger("change.uk.tab",[this.element.find(this.options.target).not(".uk-tab-responsive").filter(".uk-active")]),this.check(),a.$win.on("resize orientationchange",a.Utils.debounce(function(){e.element.is(":visible")&&e.check()},100)),this.on("display.uk.check",function(){e.element.is(":visible")&&e.check()})},check:function(){var t=this.element.children("li:not(.uk-tab-responsive)").removeClass("uk-hidden");if(t.length){var i,e,o=t.eq(0).offset().top+Math.ceil(t.eq(0).height()/2),n=!1;if(this.responsivetab.lst.empty(),t.each(function(){a.$(this).offset().top>o&&(n=!0)}),n)for(var s=0;s
').parent()).attr("aria-expanded","false"),o=n.toggle.eq(t),e.data("toggle",o),e.data("content",i),o.data("wrapper",e),i.data("wrapper",e)}),this.element.trigger("update.uk.accordion",[this]),t&&this.options.showfirst&&this.toggleItem(this.toggle.eq(0).data("wrapper"),!1,!1)}}),s.accordion}),function(t){var i;window.UIkit2&&(i=t(UIkit2)),"function"==typeof define&&define.amd&&define("uikit-grid",["uikit"],function(){return i||t(UIkit2)})}(function(w){"use strict";w.component("grid",{defaults:{colwidth:"auto",animation:!0,duration:300,gutter:0,controls:!1,filter:!1,origin:w.langdirection},boot:function(){w.ready(function(t){w.$("[data-uk-grid]",t).each(function(){var t=w.$(this);t.data("grid")||w.grid(t,w.Utils.options(t.attr("data-uk-grid")))})})},init:function(){var e=this,t=String(this.options.gutter).trim().split(" ");this.gutterv=parseInt(t[0],10),this.gutterh=parseInt(t[1]||t[0],10),this.element.css({position:"relative"}),this.controls=null,this.origin=this.options.origin,this.options.controls&&(this.controls=w.$(this.options.controls),this.controls.on("click","[data-uk-filter]",function(t){t.preventDefault(),e.filter(w.$(this).attr("data-uk-filter"))}),this.controls.on("click","[data-uk-sort]",function(t){t.preventDefault();var i=w.$(this).attr("data-uk-sort").split(":");e.sort(i[0],i[1])})),w.$win.on("load resize orientationchange",w.Utils.debounce(function(){e.currentfilter?e.filter(e.currentfilter):this.update()}.bind(this),100)),this.on("display.uk.check",function(){e.element.is(":visible")&&e.update()}),w.domObserve(this.element,function(t){e.update()}),!1!==this.options.filter?this.filter(this.options.filter):this.update()},_prepareElements:function(){var t,i=this.element.children().not("[data-grid-prepared]");i.length&&(t={position:"absolute",boxSizing:"border-box",width:"auto"==this.options.colwidth?"":this.options.colwidth},this.options.gutter&&(t["padding-"+this.origin]=this.gutterh,t["padding-bottom"]=this.gutterv,this.element.css("margin-"+this.origin,-1*this.gutterh)),i.attr("data-grid-prepared","true").css(t))},update:function(t){var i=this;this._prepareElements();var e,o,n,s,a,r,l,d,h,c=t=t||this.element.children(":visible"),u=this.element.width()+2*this.gutterh+2,p=0,f=0,m=[];this.trigger("beforeupdate.uk.grid",[c]),c.each(function(t){for(e=w.$(this),h=this.getBoundingClientRect(),o=h.width,n=h.height,r=f=p=0,d=m.length;r
','"," "].join("")).appendTo("body")).dialog=d.find(".uk-modal-dialog:first"),d.content=d.find(".uk-lightbox-content:first"),d.loader=d.find(".uk-modal-spinner:first"),d.closer=d.find(".uk-close.uk-close-alt"),d.modal=p.modal(d,{modal:!1}),d.on("swipeRight swipeLeft",function(t){d.lightbox["swipeLeft"==t.type?"next":"previous"]()}).on("click","[data-lightbox-previous], [data-lightbox-next]",function(t){t.preventDefault(),d.lightbox[p.$(this).is("[data-lightbox-next]")?"next":"previous"]()}),d.on("hide.uk.modal",function(t){d.content.html("")});var i={w:window.innerWidth,h:window.innerHeight};return p.$win.on("load resize orientationchange",p.Utils.debounce(function(t){i.w!==window.innerWidth&&d.is(":visible")&&!p.Utils.isFullscreen()&&d.lightbox.fitSize(),i={w:window.innerWidth,h:window.innerHeight}},100)),d.lightbox=t,d}(this),this.modal.dialog.stop(),this.modal.content.stop();var t,i,o=this,n=p.$.Deferred();"object"==typeof(e=e||0)&&this.siblings.forEach(function(t,i){e[0]===t.link[0]&&(e=i)}),e<0?e=this.siblings.length-e:this.siblings[e]||(e=0),i=this.siblings[e],t={lightbox:o,source:i.source,type:i.type,index:e,promise:n,title:i.title,item:i,meta:{content:"",width:null,height:null}},this.index=e,this.modal.content.empty(),this.modal.is(":visible")||(this.modal.content.css({width:"",height:""}).empty(),this.modal.modal.show()),this.modal.loader.removeClass("uk-hidden"),n.promise().done(function(){o.data=t,o.fitSize(t)}).fail(function(){t.meta.content='