uikit.min.js 93.3 KB
/*! UIkit 3.0.0-beta.25 | http://www.getuikit.com | (c) 2014 - 2017 YOOtheme | MIT License */

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("jquery")):"function"==typeof define&&define.amd?define("uikit",["jquery"],e):t.UIkit=e(t.jQuery)}(this,function(t){"use strict";function e(){return"complete"===document.readyState||"loading"!==document.readyState&&!Gt.doScroll}function i(t){var i=function(){s(document,"DOMContentLoaded",i),s(window,"load",i),t()};e()?t():(n(document,"DOMContentLoaded",i),n(window,"load",i))}function n(t,e,i,n){e.split(" ").forEach(function(e){return P(t).addEventListener(e,i,n)})}function s(t,e,i,n){e.split(" ").forEach(function(e){return P(t).removeEventListener(e,i,n)})}function o(t,e,i,n){void 0===i&&(i=400),void 0===n&&(n="linear");var s=$(function(o,r){t=Xt(t);for(var a in e)t.css(a,t.css(a));var l=setTimeout(function(){return t.trigger($e||"transitionend")},i);t.one($e||"transitionend",function(e,i){e.promise=s,clearTimeout(l),t.removeClass("uk-transition").css("transition",""),i?r():o()}).addClass("uk-transition").css("transition","all "+i+"ms "+n).css(e)}).then(null,function(){});return s}function r(t,e,i,n,s){void 0===i&&(i=200);var o=$(function(r){function a(){t.css("animation-duration","").removeClass(l+" "+e)}var l=s?"uk-animation-leave":"uk-animation-enter";t=Xt(t),0===e.lastIndexOf("uk-animation-",0)&&(n&&(e+=" uk-animation-"+n),s&&(e+=" uk-animation-reverse")),a(),t.one(ke||"animationend",function(t){t.promise=o,o.then(a),r()}).css("animation-duration",i+"ms").addClass(e).addClass(l),ke||ue(function(){return ee.cancel(t)})});return o}function a(t){return t instanceof Xt}function l(t,e){return!!(t=Xt(t)).is(e)||(A(e)?t.parents(e).length:P(e).contains(t[0]))}function h(t,e,i,n){return(t=Xt(t)).attr(e,function(t,e){return e?e.replace(i,n):e})}function c(t,e){return h(t,"class",new RegExp("(^|\\s)"+e+"(?!\\S)","g"),"")}function u(t,e,i,n){if(void 0===e&&(e=!0),void 0===i&&(i=!1),void 0===n&&(n=!1),A(t)){var s=document.createEvent("Event");s.initEvent(t,e,i),t=s}return n&&he(t,n),t}function d(t,e,i){void 0===e&&(e=0),void 0===i&&(i=0);var n=P(t).getBoundingClientRect();return n.bottom>=-1*e&&n.right>=-1*i&&n.top<=window.innerHeight+e&&n.left<=window.innerWidth+i}function f(t){var e=(t=P(t)).offsetHeight,i=w(t),n=window.innerHeight,s=n+Math.min(0,i-n),o=Math.max(0,n-(p()-(i+e)));return R((s+window.pageYOffset-i)/((s+(e-(o<n?o:0)))/100)/100)}function p(){return Math.max(Gt.offsetHeight,Gt.scrollHeight)}function g(t,e,i){void 0===i&&(i=0),e=Xt(e);var n=Xt(e).length;return t=(O(t)?t:"next"===t?i+1:"previous"===t?i-1:A(t)?parseInt(t,10):e.index(t))%n,t<0?t+n:t}function m(t){return ie[P(t).tagName.toLowerCase()]}function v(t,e){var i=N(t);return i?i.reduce(function(t,e){return B(e,t)},e):B(t)}function w(t){var e=0;do{e+=t.offsetTop}while(t=t.offsetParent);return e}function b(t,e){return function(i){var n=arguments.length;return n?n>1?t.apply(e,arguments):t.call(e,i):t.call(e)}}function y(t,e){return se.call(t,e)}function $(t){if(pe)return new Promise(t);var e=Xt.Deferred();return t(e.resolve,e.reject),e}function x(t){return t.replace(/(?:^|[-_\/])(\w)/g,function(t,e){return e?e.toUpperCase():""})}function k(t){return t.replace(/([a-z\d])([A-Z])/g,"$1-$2").toLowerCase()}function C(t){return t.replace(oe,T)}function T(t,e){return e?e.toUpperCase():""}function _(t){return"function"==typeof t}function E(t){return null!==t&&"object"==typeof t}function S(t){return E(t)&&Object.getPrototypeOf(t)===Object.prototype}function A(t){return"string"==typeof t}function O(t){return"number"==typeof t}function D(t){return void 0===t}function I(t){return A(t)&&t.match(/^[!>+-]/)}function N(t){return I(t)&&t.split(/(?=\s[!>+-])/g).map(function(t){return t.trim()})}function B(t,e){if(!0===t)return null;try{if(e&&I(t)&&">"!==t[0]){var i=ae[t[0]],n=t.substr(1);e=Xt(e),"closest"===i&&(e=e.parent(),n=n||"*"),t=e[i](n)}else t=Xt(t,e)}catch(t){return null}return t.length?t:null}function P(t){return t&&(a(t)?t[0]:t)}function H(t){return"boolean"==typeof t?t:"true"===t||"1"===t||""===t||"false"!==t&&"0"!==t&&t}function M(t){var e=Number(t);return!isNaN(e)&&e}function j(e){return re(e)?e:A(e)?e.split(",").map(function(e){return t.isNumeric(e)?M(e):H(e.trim())}):[e]}function F(t){if(A(t))if("@"===t[0]){var e="media-"+t.substr(1);t=le[e]||(le[e]=parseFloat(Y(e)))}else if(t.match(/^\(min-width:/))return t;return!(!t||isNaN(t))&&"(min-width: "+t+"px)"}function z(t,e,i){return t===Boolean?H(e):t===Number?M(e):"jQuery"===t?v(e,i):"list"===t?j(e):"media"===t?F(e):t?t(e):e}function L(t){return t?"ms"===t.substr(-2)?parseFloat(t):1e3*parseFloat(t):0}function W(t,e,i){return t.replace(new RegExp(e+"|"+i,"mg"),function(t){return t===e?i:e})}function R(t,e,i){return void 0===e&&(e=0),void 0===i&&(i=1),Math.min(Math.max(t,e),i)}function q(t,e,i){return(window.getComputedStyle(P(t),i)||{})[e]}function Y(t){var e,i=document.documentElement,n=i.appendChild(document.createElement("div"));n.classList.add("var-"+t);try{e=q(n,"content",":before").replace(/^["'](.*)["']$/,"$1"),e=JSON.parse(e)}catch(t){}return i.removeChild(n),e||void 0}function U(t){return $(function(e,i){var n=new Image;n.onerror=i,n.onload=function(){return e(n)},n.src=t})}function V(t,e){var i,n=x(t),s=x(e).toLowerCase(),o=x(e),r=document.body||document.documentElement,a=(i={},i["Webkit"+n]="webkit"+o,i["Moz"+n]=s,i["o"+n]="o"+o+" o"+s,i[t]=s,i);for(t in a)if(void 0!==r.style[t])return a[t]}function X(){Ce.scheduled||(Ce.scheduled=!0,ue(Ce.flush.bind(Ce)))}function G(t){for(var e;e=t.shift();)e()}function Q(t,e){var i=t.indexOf(e);return!!~i&&!!t.splice(i,1)}function J(){}function Z(t,e){return(e.y-t.y)/(e.x-t.x)}function K(t,e){function i(i){s[i]=(Te[i]||De)(t[i],e[i])}var n,s={};if(e.mixins)for(var o=0,r=e.mixins.length;o<r;o++)t=K(t,e.mixins[o]);for(n in t)i(n);for(n in e)y(t,n)||i(n);return s}function tt(e,i,n,s,o,r,a,l){n=ot(n),s=ot(s);var h={element:n,target:s};if(!e)return h;var c=et(e),u=et(i),d=u;return st(d,n,c,-1),st(d,s,u,1),o=rt(o,c.width,c.height),r=rt(r,u.width,u.height),o.x+=r.x,o.y+=r.y,d.left+=o.x,d.top+=o.y,l=et(l||window),a&&t.each(Ie,function(t,e){function i(e,i){var n=d[f]+e+i-2*o[t];if(n>=l[f]&&n+c[r]<=l[p])return d[f]=n,["element","target"].forEach(function(i){h[i][t]=e?h[i][t]===Ie[t][1]?Ie[t][2]:Ie[t][1]:h[i][t]}),!0}var r=e[0],f=e[1],p=e[2];if(!0===a||~a.indexOf(t)){var g=n[t]===f?-c[r]:n[t]===p?c[r]:0,m=s[t]===f?u[r]:s[t]===p?-u[r]:0;if(d[f]<l[f]||d[f]+c[r]>l[p]){var v=c[r]/2,w="center"===s[t]?-u[r]/2:0;"center"===n[t]&&(i(v,w)||i(-v,-w))||i(g,m)}}}),Xt(e).offset({left:d.left,top:d.top}),h}function et(t){var e=nt(t=P(t)),i=e.pageYOffset,n=e.pageXOffset;if(!t.ownerDocument)return{top:i,left:n,height:e.innerHeight,width:e.innerWidth,bottom:i+e.innerHeight,right:n+e.innerWidth};var s=!1;t.offsetHeight||(s=t.style.display,t.style.display="block");var o=t.getBoundingClientRect();return!1!==s&&(t.style.display=s),{height:o.height,width:o.width,top:o.top+i,left:o.left+n,bottom:o.bottom+i,right:o.right+n}}function it(t){return(t=P(t)).getBoundingClientRect().top+nt(t).pageYOffset}function nt(t){return t&&t.ownerDocument?t.ownerDocument.defaultView:window}function st(e,i,n,s){t.each(Ie,function(t,o){var r=o[0],a=o[1],l=o[2];i[t]===l?e[a]+=n[r]*s:"center"===i[t]&&(e[a]+=n[r]*s/2)})}function ot(t){var e=/left|center|right/,i=/top|center|bottom/;return 1===(t=(t||"").split(" ")).length&&(t=e.test(t[0])?t.concat(["center"]):i.test(t[0])?["center"].concat(t):["center","center"]),{x:e.test(t[0])?t[0]:"center",y:i.test(t[1])?t[1]:"center"}}function rt(t,e,i){return t=(t||"").split(" "),{x:t[0]?parseFloat(t[0])*("%"===t[0][t[0].length-1]?e/100:1):0,y:t[1]?parseFloat(t[1])*("%"===t[1][t[1].length-1]?i/100:1):0}}function at(t){switch(t){case"left":return"right";case"right":return"left";case"top":return"bottom";case"bottom":return"top";default:return t}}function lt(t,e,i,n){return Math.abs(t-e)>=Math.abs(i-n)?t-e>0?"Left":"Right":i-n>0?"Up":"Down"}function ht(){_e&&clearTimeout(_e),Ee&&clearTimeout(Ee),Se&&clearTimeout(Se),_e=Ee=Se=null,Ne={}}function ct(t){return Be||"touch"===(t.originalEvent||t).pointerType}function ut(t){Jt.on((e={},e["click."+t]=function(t){Fe&&Fe.bgClose&&!t.isDefaultPrevented()&&!l(t.target,Fe.panel)&&Fe.hide()},e["keydown."+t]=function(t){27===t.keyCode&&Fe&&Fe.escClose&&(t.preventDefault(),Fe.hide())},e));var e}function dt(t){Jt.off("click."+t).off("keydown."+t)}function ft(t){t.component("accordion",{mixins:[Le,We],props:{targets:String,active:null,collapsible:Boolean,multiple:Boolean,toggle:String,content:String,transition:String},defaults:{targets:"> *",active:!1,animation:[!0],collapsible:!0,multiple:!1,clsOpen:"uk-open",toggle:"> .uk-accordion-title",content:"> .uk-accordion-content",transition:"ease"},computed:{items:function(){var t=this,e=Xt(this.targets,this.$el);return this._changed=!this._items||e.length!==this._items.length||e.toArray().some(function(e,i){return e!==t._items.get(i)}),this._items=e}},events:[{name:"click",delegate:function(){return this.targets+" "+this.$props.toggle},handler:function(t){t.preventDefault(),this.toggle(this.items.find(this.$props.toggle).index(t.currentTarget))}}],update:function(){var t=this;if(this.items.length&&this._changed){this.items.each(function(e,i){i=Xt(i),t.toggleNow(i.find(t.content),i.hasClass(t.clsOpen))});var e=!1!==this.active&&B(this.items.eq(Number(this.active)))||!this.collapsible&&B(this.items.eq(0));e&&!e.hasClass(this.clsOpen)&&this.toggle(e,!1)}},methods:{toggle:function(t,e){var i=this,n=g(t,this.items),s=this.items.filter("."+this.clsOpen);(t=this.items.eq(n)).add(!this.multiple&&s).each(function(n,o){var r=(o=Xt(o)).is(t),a=r&&!o.hasClass(i.clsOpen);if(a||!r||i.collapsible||!(s.length<2)){o.toggleClass(i.clsOpen,a);var l=o[0]._wrapper?o[0]._wrapper.children().first():o.find(i.content);o[0]._wrapper||(o[0]._wrapper=l.wrap("<div>").parent().attr("hidden",a)),i._toggleImmediate(l,!0),i.toggleElement(o[0]._wrapper,a,e).then(function(){o.hasClass(i.clsOpen)===a&&(a||i._toggleImmediate(l,!1),o[0]._wrapper=null,l.unwrap())})}})}}})}function pt(t){t.component("alert",{mixins:[Le,We],args:"animation",props:{close:String},defaults:{animation:[!0],close:".uk-alert-close",duration:150,hideProps:{opacity:0}},events:[{name:"click",delegate:function(){return this.close},handler:function(t){t.preventDefault(),this.closeAlert()}}],methods:{closeAlert:function(){var t=this;this.toggleElement(this.$el).then(function(){return t.$destroy(!0)})}}})}function gt(t){t.component("cover",{mixins:[Le],props:{automute:Boolean,width:Number,height:Number},defaults:{automute:!0},computed:{el:function(){return this.$el[0]},parent:function(){return this.el.parentNode}},ready:function(){if(this.$el.is("iframe")&&(this.$el.css("pointerEvents","none"),this.automute)){var t=this.$el.attr("src");this.$el.attr("src",t+(~t.indexOf("?")?"&":"?")+"enablejsapi=1&api=1").on("load",function(t){return t.target.contentWindow.postMessage('{"event": "command", "func": "mute", "method":"setVolume", "value":0}',"*")})}},update:{write:function(){0!==this.el.offsetHeight&&this.$el.css({width:"",height:""}).css(ne.cover({width:this.width||this.el.clientWidth,height:this.height||this.el.clientHeight},{width:this.parent.offsetWidth,height:this.parent.offsetHeight}))},events:["load","resize"]},events:{loadedmetadata:function(){this.$emit()}}})}function mt(t){function e(){n||(n=!0,Jt.on("click",function(t){for(var e;i&&i!==e&&!l(t.target,i.$el)&&(!i.toggle||!l(t.target,i.toggle.$el));)e=i,i.hide(!1)}))}var i;t.component("drop",{mixins:[qe,We],args:"pos",props:{mode:"list",toggle:Boolean,boundary:"jQuery",boundaryAlign:Boolean,delayShow:Number,delayHide:Number,clsDrop:String},defaults:{mode:["click","hover"],toggle:"- :first",boundary:window,boundaryAlign:!1,delayShow:0,delayHide:800,clsDrop:!1,hoverIdle:200,animation:["uk-animation-fade"],cls:"uk-open"},init:function(){this.tracker=new J,this.clsDrop=this.clsDrop||"uk-"+this.$options.name,this.clsPos=this.clsDrop,this.$addClass(this.clsDrop)},ready:function(){this.updateAria(this.$el),this.toggle&&(this.toggle=t.toggle(v(this.toggle,this.$el),{target:this.$el,mode:this.mode}))},events:[{name:"click",delegate:function(){return"."+this.clsDrop+"-close"},handler:function(t){t.preventDefault(),this.hide(!1)}},{name:"click",delegate:function(){return'a[href^="#"]'},handler:function(t){if(!t.isDefaultPrevented()){var e=Xt(t.target).attr("href");1===e.length&&t.preventDefault(),1!==e.length&&l(e,this.$el)||this.hide(!1)}}},{name:"toggle",handler:function(t,e){e&&!this.$el.is(e.target)||(t.preventDefault(),this.isToggled()?this.hide(!1):this.show(e,!1))}},{name:be,filter:function(){return~this.mode.indexOf("hover")},handler:function(t){ct(t)||(i&&i!==this&&i.toggle&&~i.toggle.mode.indexOf("hover")&&!l(t.target,i.$el)&&!l(t.target,i.toggle.$el)&&i.hide(!1),t.preventDefault(),this.show(this.toggle))}},{name:"toggleshow",handler:function(t,e){e&&!this.$el.is(e.target)||(t.preventDefault(),this.show(e||this.toggle))}},{name:"togglehide "+ye,handler:function(t,e){ct(t)||e&&!this.$el.is(e.target)||(t.preventDefault(),this.toggle&&~this.toggle.mode.indexOf("hover")&&this.hide())}},{name:"beforeshow",self:!0,handler:function(){this.clearTimers()}},{name:"show",self:!0,handler:function(){this.tracker.init(),this.toggle.$el.addClass(this.cls).attr("aria-expanded","true"),e()}},{name:"beforehide",self:!0,handler:function(){this.clearTimers()}},{name:"hide",handler:function(t){var e=t.target;this.$el.is(e)?(i=this.isActive()?null:i,this.toggle.$el.removeClass(this.cls).attr("aria-expanded","false").blur().find("a, button").blur(),this.tracker.cancel()):i=null===i&&l(e,this.$el)&&this.isToggled()?this:i}}],update:{write:function(){this.isToggled()&&!ee.inProgress(this.$el)&&this.position()},events:["resize"]},methods:{show:function(t,e){var n=this;void 0===e&&(e=!0);var s=function(){n.isToggled()||(n.position(),n.toggleElement(n.$el,!0))},o=function(){if(n.toggle=t||n.toggle,n.clearTimers(),!n.isActive())if(e&&i&&i!==n&&i.isDelaying)n.showTimer=setTimeout(n.show,10);else{if(n.isParentOf(i)){if(!i.hideTimer)return;i.hide(!1)}else if(i&&!n.isChildOf(i)&&!n.isParentOf(i))for(var o;i&&i!==o;)o=i,i.hide(!1);e&&n.delayShow?n.showTimer=setTimeout(s,n.delayShow):s(),i=n}};t&&this.toggle&&!this.toggle.$el.is(t.$el)?(this.$el.one("hide",o),this.hide(!1)):o()},hide:function(t){var e=this;void 0===t&&(t=!0);var i=function(){return e.toggleNow(e.$el,!1)};this.clearTimers(),this.isDelaying=this.tracker.movesTo(this.$el),t&&this.isDelaying?this.hideTimer=setTimeout(this.hide,this.hoverIdle):t&&this.delayHide?this.hideTimer=setTimeout(i,this.delayHide):i()},clearTimers:function(){clearTimeout(this.showTimer),clearTimeout(this.hideTimer),this.showTimer=null,this.hideTimer=null,this.isDelaying=!1},isActive:function(){return i===this},isChildOf:function(t){return t&&t!==this&&l(this.$el,t.$el)},isParentOf:function(t){return t&&t!==this&&l(t.$el,this.$el)},position:function(){c(this.$el,this.clsDrop+"-(stack|boundary)").css({top:"",left:""}),this.$el.show().toggleClass(this.clsDrop+"-boundary",this.boundaryAlign);var t=et(this.boundary),e=this.boundaryAlign?t:et(this.toggle.$el);if("justify"===this.align){var i="y"===this.getAxis()?"width":"height";this.$el.css(i,e[i])}else this.$el.outerWidth()>Math.max(t.right-e.left,e.right-t.left)&&(this.$addClass(this.clsDrop+"-stack"),this.$el.trigger("stack",[this]));this.positionAt(this.$el,this.boundaryAlign?this.boundary:this.toggle.$el,this.boundary),this.$el[0].style.display=""}}}),t.drop.getActive=function(){return i};var n}function vt(t){t.component("dropdown",t.components.drop.extend({name:"dropdown"}))}function wt(t){t.component("form-custom",{mixins:[Le],args:"target",props:{target:Boolean},defaults:{target:!1},computed:{input:function(){return this.$el.find(":input:first")},state:function(){return this.input.next()},target:function(){return this.$props.target&&v(!0===this.$props.target?"> :input:first + :first":this.$props.target,this.$el)}},connected:function(){this.input.trigger("change")},events:[{name:"focusin focusout mouseenter mouseleave",delegate:":input:first",handler:function(t){var e=t.type;this.state.toggleClass("uk-"+(~e.indexOf("focus")?"focus":"hover"),~["focusin","mouseenter"].indexOf(e))}},{name:"change",handler:function(){this.target&&this.target[this.target.is(":input")?"val":"text"](this.input[0].files&&this.input[0].files[0]?this.input[0].files[0].name:this.input.is("select")?this.input.find("option:selected").text():this.input.val())}}]})}function bt(t){t.component("gif",{update:{read:function(){var t=d(this.$el);!this.isInView&&t&&(this.$el[0].src=this.$el[0].src),this.isInView=t},events:["scroll","load","resize"]}})}function yt(t){t.component("grid",t.components.margin.extend({mixins:[Le],name:"grid",defaults:{margin:"uk-grid-margin",clsStack:"uk-grid-stack"},update:{write:function(){this.$toggleClass(this.clsStack,this.stacks)},events:["load","resize"]}}))}function $t(t){t.component("height-match",{args:"target",props:{target:String,row:Boolean},defaults:{target:"> *",row:!0},computed:{elements:function(){return Xt(this.target,this.$el)}},update:{read:function(){var t=this,e=!1;this.elements.css("minHeight",""),this.rows=this.row?this.elements.toArray().reduce(function(t,i){return e!==i.offsetTop?t.push([i]):t[t.length-1].push(i),e=i.offsetTop,t},[]).map(function(e){return t.match(Xt(e))}):[this.match(this.elements)]},write:function(){this.rows.forEach(function(t){var e=t.height,i=t.elements;return i&&i.each(function(t,i){return i.style.minHeight=e+"px"})})},events:["load","resize"]},methods:{match:function(t){if(t.length<2)return{};var e=0,i=[];return t=t.each(function(t,n){var s,o,r;0===n.offsetHeight&&(o=(s=Xt(n)).attr("style")||null,r=s.attr("hidden")||null,s.attr({style:o+";display:block !important;",hidden:null})),e=Math.max(e,n.offsetHeight),i.push(n.offsetHeight),s&&s.attr({style:o,hidden:r})}).filter(function(t){return i[t]<e}),{height:e,elements:t}}}})}function xt(e){e.component("height-viewport",{props:{expand:Boolean,offsetTop:Boolean,offsetBottom:Boolean},defaults:{expand:!1,offsetTop:!1,offsetBottom:!1},update:{write:function(){this.$el.css("boxSizing","border-box");var e,i=window.innerHeight,n=0;if(this.expand){this.$el.css({height:"",minHeight:""});var s=i-document.documentElement.offsetHeight;s>0&&this.$el.css("min-height",e=this.$el.outerHeight()+s)}else{var o=it(this.$el);if(o<i&&this.offsetTop&&(n+=o),!0===this.offsetBottom)n+=this.$el.next().outerHeight()||0;else if(t.isNumeric(this.offsetBottom))n+=i/100*this.offsetBottom;else if(this.offsetBottom&&"px"===this.offsetBottom.substr(-2))n+=parseFloat(this.offsetBottom);else if(A(this.offsetBottom)){var r=v(this.offsetBottom,this.$el);n+=r&&r.outerHeight()||0}this.$el.css("min-height",e=n?"calc(100vh - "+n+"px)":"100vh")}this.$el.height(""),e&&i-n>=this.$el.outerHeight()&&this.$el.css("height",e)},events:["load","resize"]}})}function kt(t){i(function(){if(ge){var e="uk-hover";Zt.on("tap",function(t){var i=t.target;return Xt("."+e).filter(function(t,e){return!l(i,e)}).removeClass(e)}),Object.defineProperty(t,"hoverSelector",{set:function(t){Zt.on("tap",t,function(t){return t.currentTarget.classList.add(e)})}}),t.hoverSelector=".uk-animation-toggle, .uk-transition-toggle, [uk-hover]"}})}function Ct(t){function e(e,i){t.component(e,t.components.icon.extend({name:e,mixins:i?[i]:[],defaults:{icon:e}}))}var i={},n={spinner:oi,totop:ri,marker:Ve,"close-icon":Ye,"close-large":Ue,"navbar-toggle-icon":Xe,"overlay-icon":Ge,"pagination-next":Qe,"pagination-previous":Je,"search-icon":Ze,"search-large":Ke,"search-navbar":ti,"slidenav-next":ei,"slidenav-next-large":ii,"slidenav-previous":ni,"slidenav-previous-large":si};t.component("icon",t.components.svg.extend({attrs:["icon","ratio"],mixins:[Le],name:"icon",args:"icon",props:["icon"],defaults:{exclude:["id","style","class","src","icon"]},init:function(){this.$addClass("uk-icon"),Kt&&(this.icon=W(W(this.icon,"left","right"),"previous","next"))},update:{read:function(){if(this.delay){var t=this.getIcon();t&&this.delay(t)}},events:["load"]},methods:{getSvg:function(){var t=this,e=this.getIcon();return e?$.resolve(e):"complete"!==document.readyState?$(function(e){t.delay=e}):$.reject("Icon not found.")},getIcon:function(){return n[this.icon]?(i[this.icon]||(i[this.icon]=this.parse(n[this.icon])),i[this.icon]):null}}})),["marker","navbar-toggle-icon","overlay-icon","pagination-previous","pagination-next","totop"].forEach(function(t){return e(t)}),["slidenav-previous","slidenav-next"].forEach(function(t){return e(t,{init:function(){this.$addClass("uk-slidenav"),this.$hasClass("uk-slidenav-large")&&(this.icon+="-large")}})}),e("search-icon",{init:function(){this.$hasClass("uk-search-icon")&&this.$el.parents(".uk-search-large").length?this.icon="search-large":this.$el.parents(".uk-search-navbar").length&&(this.icon="search-navbar")}}),e("close",{init:function(){this.icon="close-"+(this.$hasClass("uk-close-large")?"large":"icon")}}),e("spinner",{connected:function(){var t=this;this.height=this.width=this.$el.width(),this.svg.then(function(e){var i=Xt(e).find("circle"),n=Math.floor(t.width/2);e.setAttribute("viewBox","0 0 "+t.width+" "+t.width),i.attr({cx:n,cy:n,r:n-parseFloat(i.css("stroke-width")||0)})})}}),t.icon.add=function(t){return he(n,t)}}function Tt(t){t.component("margin",{props:{margin:String,firstColumn:Boolean},defaults:{margin:"uk-margin-small-top",firstColumn:"uk-first-column"},computed:{items:function(){return this.$el[0].children}},update:{read:function(){var t=this;if(this.items.length&&0!==this.$el[0].offsetHeight){this.stacks=!0;for(var e=[[]],i=0;i<this.items.length;i++){var n=t.items[i],s=n.getBoundingClientRect();if(s.height)for(var o=e.length-1;o>=0;o--){var r=e[o];if(!r[0]){r.push(n);break}var a=r[0].getBoundingClientRect();if(s.top>=a.bottom){e.push([n]);break}if(s.bottom>a.top){if(t.stacks=!1,s.left<a.left&&!Kt){r.unshift(n);break}r.push(n);break}if(0===o){e.unshift([n]);break}}}this.rows=e}else this.rows=!1},write:function(){var t=this;this.rows&&this.rows.forEach(function(e,i){return e.forEach(function(e,n){t.$toggleClass(e,t.margin,0!==i),t.$toggleClass(e,t.firstColumn,0===n)})})},events:["load","resize"]}})}function _t(t){t.component("modal",{mixins:[Re],props:{center:Boolean},defaults:{center:!1,clsPage:"uk-modal-page",clsPanel:"uk-modal-dialog",selClose:".uk-modal-close, .uk-modal-close-default, .uk-modal-close-outside, .uk-modal-close-full"},update:{write:function(){"block"===this.$el.css("display")&&this.center&&this.$el.removeClass("uk-flex uk-flex-center uk-flex-middle").css("display","block").toggleClass("uk-flex uk-flex-center uk-flex-middle",window.innerHeight>this.panel.outerHeight(!0)).css("display",this.$el.hasClass("uk-flex")?"":"block")},events:["resize"]},events:[{name:"beforeshow",self:!0,handler:function(){this.$el.css("display","block").height()}},{name:"hidden",self:!0,handler:function(){this.$el.css("display","").removeClass("uk-flex uk-flex-center uk-flex-middle")}}]}),t.component("overflow-auto",{mixins:[Le],computed:{panel:function(){return this.$el.closest(".uk-modal-dialog")}},connected:function(){this.$el.css("min-height",150)},update:{write:function(){var t=this.$el.css("max-height");this.$el.css("max-height",150).css("max-height",Math.max(150,150-(this.panel.outerHeight(!0)-window.innerHeight))),t!==this.$el.css("max-height")&&this.$el.trigger("resize")},events:["load","resize"]}}),t.modal.dialog=function(e,i){var n=t.modal('<div class="uk-modal">\n                <div class="uk-modal-dialog">'+e+"</div>\n             </div>",i);return n.$el.on("hidden",function(t){t.target===t.currentTarget&&n.$destroy(!0)}),n.show(),n},t.modal.alert=function(e,i){return i=he({bgClose:!1,escClose:!1,labels:t.modal.labels},i),$(function(n){return t.modal.dialog('\n                <div class="uk-modal-body">'+(A(e)?e:Xt(e).html())+'</div>\n                <div class="uk-modal-footer uk-text-right">\n                    <button class="uk-button uk-button-primary uk-modal-close" autofocus>'+i.labels.ok+"</button>\n                </div>\n            ",i).$el.on("hide",n)})},t.modal.confirm=function(e,i){return i=he({bgClose:!1,escClose:!1,labels:t.modal.labels},i),$(function(n,s){return t.modal.dialog('\n                <div class="uk-modal-body">'+(A(e)?e:Xt(e).html())+'</div>\n                <div class="uk-modal-footer uk-text-right">\n                    <button class="uk-button uk-button-default uk-modal-close">'+i.labels.cancel+'</button>\n                    <button class="uk-button uk-button-primary uk-modal-close" autofocus>'+i.labels.ok+"</button>\n                </div>\n            ",i).$el.on("click",".uk-modal-footer button",function(t){return 0===Xt(t.target).index()?s():n()})})},t.modal.prompt=function(e,i,n){return n=he({bgClose:!1,escClose:!1,labels:t.modal.labels},n),$(function(s){var o=!1,r=t.modal.dialog('\n                <form class="uk-form-stacked">\n                    <div class="uk-modal-body">\n                        <label>'+(A(e)?e:Xt(e).html())+'</label>\n                        <input class="uk-input" type="text" autofocus>\n                    </div>\n                    <div class="uk-modal-footer uk-text-right">\n                        <button class="uk-button uk-button-default uk-modal-close" type="button">'+n.labels.cancel+'</button>\n                        <button class="uk-button uk-button-primary" type="submit">'+n.labels.ok+"</button>\n                    </div>\n                </form>\n            ",n),a=r.$el.find("input").val(i);r.$el.on("submit","form",function(t){t.preventDefault(),s(a.val()),o=!0,r.hide()}).on("hide",function(){o||s(null)})})},t.modal.labels={ok:"Ok",cancel:"Cancel"}}function Et(t){t.component("nav",t.components.accordion.extend({name:"nav",defaults:{targets:"> .uk-parent",toggle:"> a",content:"ul:first"}}))}function St(t){t.component("navbar",{mixins:[Le],props:{dropdown:String,mode:"list",align:String,offset:Number,boundary:Boolean,boundaryAlign:Boolean,clsDrop:String,delayShow:Number,delayHide:Number,dropbar:Boolean,dropbarMode:String,dropbarAnchor:"jQuery",duration:Number},defaults:{dropdown:".uk-navbar-nav > li",align:Kt?"right":"left",clsDrop:"uk-navbar-dropdown",mode:void 0,offset:void 0,delayShow:void 0,delayHide:void 0,boundaryAlign:void 0,flip:"x",boundary:!0,dropbar:!1,dropbarMode:"slide",dropbarAnchor:!1,duration:200},computed:{boundary:function(){return!0===this.$props.boundary||this.boundaryAlign?this.$el:this.$props.boundary},pos:function(){return"bottom-"+this.align}},ready:function(){this.dropbar&&t.navbarDropbar(v(this.dropbar,this.$el)||Xt("<div></div>").insertAfter(this.dropbarAnchor||this.$el),{clsDrop:this.clsDrop,mode:this.dropbarMode,duration:this.duration,navbar:this})},update:function(){t.drop(Xt(this.dropdown+" ."+this.clsDrop,this.$el),he({},this.$props,{boundary:this.boundary,pos:this.pos}))},events:[{name:be,delegate:function(){return this.dropdown},handler:function(t){var e=t.currentTarget,i=this.getActive();i&&i.toggle&&!l(i.toggle.$el,e)&&!i.tracker.movesTo(i.$el)&&i.hide(!1)}}],methods:{getActive:function(){var e=t.drop.getActive();return e&&"click"!==e.mode&&l(e.toggle.$el,this.$el)&&e}}}),t.component("navbar-dropbar",{mixins:[Le],defaults:{clsDrop:"",mode:"slide",navbar:null,duration:200},init:function(){"slide"===this.mode&&this.$addClass("uk-navbar-dropbar-slide")},events:[{name:"beforeshow",el:function(){return this.navbar.$el},handler:function(t,e){var i=e.$el;if("bottom"===e.dir&&!l(i,this.$el))return i.appendTo(this.$el),e.show(),!1}},{name:"mouseleave",handler:function(){var t=this.navbar.getActive();t&&!this.$el.is(":hover")&&t.hide()}},{name:"beforeshow",handler:function(t,e){var i=e.$el;this.clsDrop&&i.addClass(this.clsDrop+"-dropbar"),this.transitionTo(i.outerHeight(!0))}},{name:"beforehide",handler:function(t,e){var i=e.$el,n=this.navbar.getActive();if(this.$el.is(":hover")&&n&&n.$el.is(i))return!1}},{name:"hide",handler:function(t,e){var i=e.$el,n=this.navbar.getActive();(!n||n&&n.$el.is(i))&&this.transitionTo(0)}}],methods:{transitionTo:function(t){var e=this;return this.$el.height(this.$el[0].offsetHeight?this.$el.height():0),te.cancel(this.$el).then(function(){return te.start(e.$el,{height:t},e.duration)})}}})}function At(t){t.component("offcanvas",{mixins:[Re],args:"mode",props:{content:String,mode:String,flip:Boolean,overlay:Boolean},defaults:{content:".uk-offcanvas-content:first",mode:"slide",flip:!1,overlay:!1,clsPage:"uk-offcanvas-page",clsContainer:"uk-offcanvas-container",clsPanel:"uk-offcanvas-bar",clsFlip:"uk-offcanvas-flip",clsContent:"uk-offcanvas-content",clsContentAnimation:"uk-offcanvas-content-animation",clsSidebarAnimation:"uk-offcanvas-bar-animation",clsMode:"uk-offcanvas",clsOverlay:"uk-offcanvas-overlay",selClose:".uk-offcanvas-close"},computed:{content:function(){return Xt(v(this.$props.content,this.$el))},clsFlip:function(){return this.flip?this.$props.clsFlip:""},clsOverlay:function(){return this.overlay?this.$props.clsOverlay:""},clsMode:function(){return this.$props.clsMode+"-"+this.mode},clsSidebarAnimation:function(){return"none"===this.mode||"reveal"===this.mode?"":this.$props.clsSidebarAnimation},clsContentAnimation:function(){return"push"!==this.mode&&"reveal"!==this.mode?"":this.$props.clsContentAnimation},transitionElement:function(){return"reveal"===this.mode?this.panel.parent():this.panel}},update:{write:function(){this.isToggled()&&((this.overlay||this.clsContentAnimation)&&this.content.width(window.innerWidth-this.scrollbarWidth),this.overlay&&(this.content.height(window.innerHeight),ze&&this.content.scrollTop(ze.y)))},events:["resize"]},events:[{name:"beforeshow",self:!0,handler:function(){ze=ze||{x:window.pageXOffset,y:window.pageYOffset},"reveal"!==this.mode||this.panel.parent().hasClass(this.clsMode)||this.panel.wrap("<div>").parent().addClass(this.clsMode),Zt.css("overflow-y",(!this.clsContentAnimation||this.flip)&&this.scrollbarWidth&&this.overlay?"scroll":""),this.body.addClass(this.clsContainer+" "+this.clsFlip+" "+this.clsOverlay).height(),this.content.addClass(this.clsContentAnimation),this.panel.addClass(this.clsSidebarAnimation+" "+("reveal"!==this.mode?this.clsMode:"")),this.$el.addClass(this.clsOverlay).css("display","block").height()}},{name:"beforehide",self:!0,handler:function(){this.content.removeClass(this.clsContentAnimation),("none"===this.mode||this.getActive()&&this.getActive()!==this)&&this.panel.trigger($e)}},{name:"hidden",self:!0,handler:function(){"reveal"===this.mode&&this.panel.unwrap(),this.overlay||(ze={x:window.pageXOffset,y:window.pageYOffset}),this.panel.removeClass(this.clsSidebarAnimation+" "+this.clsMode),this.$el.removeClass(this.clsOverlay).css("display",""),this.body.removeClass(this.clsContainer+" "+this.clsFlip+" "+this.clsOverlay).scrollTop(ze.y),Zt.css("overflow-y",""),this.content.width("").height(""),window.scrollTo(ze.x,ze.y),ze=null}},{name:"swipeLeft swipeRight",handler:function(t){this.isToggled()&&ct(t)&&("swipeLeft"===t.type&&!this.flip||"swipeRight"===t.type&&this.flip)&&this.hide()}}]})}function Ot(t){t.component("responsive",{props:["width","height"],init:function(){this.$addClass("uk-responsive-width")},update:{read:function(){this.dim=!!(this.$el.is(":visible")&&this.width&&this.height)&&{width:this.$el.parent().width(),height:this.height}},write:function(){this.dim&&this.$el.height(ne.contain({height:this.height,width:this.width},this.dim).height)},events:["load","resize"]}})}function Dt(t){t.component("scroll",{props:{duration:Number,easing:String,offset:Number},defaults:{duration:1e3,easing:"easeOutExpo",offset:0},methods:{scrollToElement:function(t){var e=this,i=it(Xt(t))-this.offset,n=p(),s=window.innerHeight;i+s>n&&(i=n-s),Xt("html,body").stop().animate({scrollTop:Math.round(i)},this.duration,this.easing).promise().then(function(){return e.$el.trigger("scrolled",[e])})}},events:{click:function(t){t.isDefaultPrevented()||(t.preventDefault(),this.scrollToElement(Xt(this.$el[0].hash).length?this.$el[0].hash:"body"))}}}),Xt.easing.easeOutExpo=Xt.easing.easeOutExpo||function(t,e,i,n,s){return e===s?i+n:n*(1-Math.pow(2,-10*e/s))+i}}function It(t){t.component("scrollspy",{args:"cls",props:{cls:"list",target:String,hidden:Boolean,offsetTop:Number,offsetLeft:Number,repeat:Boolean,delay:Number},defaults:{cls:["uk-scrollspy-inview"],target:!1,hidden:!0,offsetTop:0,offsetLeft:0,repeat:!1,delay:0,inViewClass:"uk-scrollspy-inview"},computed:{elements:function(){return this.target&&Xt(this.target,this.$el)||this.$el}},update:[{write:function(){this.hidden&&this.elements.filter(":not(."+this.inViewClass+")").css("visibility","hidden")}},{read:function(){var t=this;this.elements.each(function(e,i){if(!i._scrollspy){var n=Xt(i).attr("uk-scrollspy-class");i._scrollspy={toggles:n&&n.split(",")||t.cls}}i._scrollspy.show=d(i,t.offsetTop,t.offsetLeft)})},write:function(){var t=this,e=1===this.elements.length?1:0;this.elements.each(function(i,n){var s=Xt(n),o=n._scrollspy,r=o.toggles[i]||o.toggles[0];if(o.show){if(!o.inview&&!o.timer){var a=function(){s.css("visibility","").addClass(t.inViewClass).toggleClass(r).trigger("inview"),t.$update(),o.inview=!0,delete o.timer};t.delay&&e?o.timer=setTimeout(a,t.delay*e):a(),e++}}else o.inview&&t.repeat&&(o.timer&&(clearTimeout(o.timer),delete o.timer),s.removeClass(t.inViewClass).toggleClass(r).css("visibility",t.hidden?"hidden":"").trigger("outview"),t.$update(),o.inview=!1)})},events:["scroll","load","resize"]}]})}function Nt(t){t.component("scrollspy-nav",{props:{cls:String,closest:String,scroll:Boolean,overflow:Boolean,offset:Number},defaults:{cls:"uk-active",closest:!1,scroll:!1,overflow:!0,offset:0},computed:{links:function(){return this.$el.find('a[href^="#"]').filter(function(t,e){return e.hash})},elements:function(){return this.closest?this.links.closest(this.closest):this.links},targets:function(){return Xt(this.links.toArray().map(function(t){return t.hash}).join(","))}},update:[{read:function(){this.scroll&&t.scroll(this.links,{offset:this.offset||0})}},{read:function(){var t=this,e=window.pageYOffset+this.offset,i=p()-window.innerHeight+this.offset;this.active=!1,this.targets.each(function(n,s){var o=it(s=Xt(s)),r=n+1===t.targets.length;if(!t.overflow&&(0===n&&o>e||r&&o+s[0].offsetTop<e))return!1;if(r||!(it(t.targets.eq(n+1))<=e)){if(e>=i)for(var a=t.targets.length-1;a>n;a--)if(d(t.targets.eq(a))){s=t.targets.eq(a);break}return!(t.active=B(t.links.filter('[href="#'+s.attr("id")+'"]')))}})},write:function(){this.links.blur(),this.elements.removeClass(this.cls),this.active&&this.$el.trigger("active",[this.active,(this.closest?this.active.closest(this.closest):this.active).addClass(this.cls)])},events:["scroll","load","resize"]}]})}function Bt(e){e.component("sticky",{mixins:[Le],attrs:!0,props:{top:null,bottom:Boolean,offset:Number,animation:String,clsActive:String,clsInactive:String,clsFixed:String,clsBelow:String,widthElement:"jQuery",showOnUp:Boolean,media:"media",target:Number},defaults:{top:0,bottom:!1,offset:0,animation:"",clsActive:"uk-active",clsInactive:"",clsFixed:"uk-sticky-fixed",clsBelow:"uk-sticky-below",widthElement:!1,showOnUp:!1,media:!1,target:!1},connected:function(){this.placeholder=Xt('<div class="uk-sticky-placeholder"></div>'),this.widthElement=this.$props.widthElement||this.placeholder,this.isActive||this.$addClass(this.clsInactive)},disconnected:function(){this.isActive&&(this.isActive=!1,this.hide(),this.$removeClass(this.clsInactive)),this.placeholder.remove(),this.placeholder=null,this.widthElement=null},ready:function(){var t=this;if(this.target&&location.hash&&window.pageYOffset>0){var e=v(location.hash);e&&ue(function(){var i=it(e),n=it(t.$el),s=t.$el[0].offsetHeight;n+s>=i&&n<=i+e[0].offsetHeight&&window.scrollTo(0,i-s-t.target-t.offset)})}},update:[{write:function(){var e,i=this,n=(this.isActive?this.placeholder:this.$el)[0].offsetHeight;this.placeholder.css("height","absolute"!==this.$el.css("position")?n:"").css(this.$el.css(["marginTop","marginBottom","marginLeft","marginRight"])),document.documentElement.contains(this.placeholder[0])||this.placeholder.insertAfter(this.$el).attr("hidden",!0),this.width=this.widthElement.attr("hidden",null)[0].offsetWidth,this.widthElement.attr("hidden",!this.isActive),this.topOffset=it(this.isActive?this.placeholder:this.$el),this.bottomOffset=this.topOffset+n,["top","bottom"].forEach(function(n){i[n]=i.$props[n],i[n]&&(t.isNumeric(i[n])?i[n]=i[n+"Offset"]+parseFloat(i[n]):A(i[n])&&i[n].match(/^-?\d+vh$/)?i[n]=window.innerHeight*parseFloat(i[n])/100:(e=!0===i[n]?i.$el.parent():v(i[n],i.$el))&&(i[n]=it(e)+e[0].offsetHeight))}),this.top=Math.max(parseFloat(this.top),this.topOffset)-this.offset,this.bottom=this.bottom&&this.bottom-n,this.inactive=this.media&&!window.matchMedia(this.media).matches,this.isActive&&this.update()},events:["load","resize"]},{read:function(){this.offsetTop=it(this.$el),this.scroll=window.pageYOffset,this.visible=this.$el.is(":visible")},write:function(t){var e=this;void 0===t&&(t={});var i=t.dir,n=this.scroll;if(!(n<0||!this.visible||this.disabled||this.showOnUp&&!i))if(this.inactive||n<this.top||this.showOnUp&&(n<=this.top||"down"===i||"up"===i&&!this.isActive&&n<=this.bottomOffset)){if(!this.isActive)return;this.isActive=!1,this.animation&&n>this.topOffset?ee.cancel(this.$el).then(function(){return ee.out(e.$el,e.animation).then(function(){return e.hide()})}):this.hide()}else this.isActive?this.update():this.animation?ee.cancel(this.$el).then(function(){e.show(),ee.in(e.$el,e.animation)}):this.show()},events:["scroll"]}],methods:{show:function(){this.isActive=!0,this.update(),this.$el.trigger("active"),this.placeholder.attr("hidden",null)},hide:function(){this.$addClass(this.clsInactive),this.$removeClass(this.clsFixed,this.clsActive,this.clsBelow),this.$el.css({position:"",top:"",width:""}).trigger("inactive"),this.placeholder.attr("hidden",!0)},update:function(){var t=Math.max(0,this.offset),e=this.scroll>this.top;this.bottom&&this.scroll>this.bottom-this.offset&&(t=this.bottom-this.scroll),this.$el.css({position:"fixed",top:t+"px",width:this.width}),this.$addClass(this.clsFixed),this.$toggleClass(this.clsActive,e),this.$toggleClass(this.clsInactive,!e),this.$toggleClass(this.clsBelow,this.scroll>this.bottomOffset)}}})}function Pt(e){e.component("svg",{attrs:!0,props:{id:String,icon:String,src:String,style:String,width:Number,height:Number,ratio:Number,class:String},defaults:{ratio:1,id:!1,exclude:["src"],class:""},init:function(){this.class+=" uk-svg"},connected:function(){var t=this;if(!this.icon&&this.src&&~this.src.indexOf("#")){var e=this.src.split("#");e.length>1&&(this.src=e[0],this.icon=e[1])}this.width=this.$props.width,this.height=this.$props.height,this.svg=this.getSvg().then(function(e){return $(function(i,n){return Ce.mutate(function(){var s,o;if(e){if(t.icon)if(s=e.getElementById(t.icon)){var r=s.outerHTML;if(!r){var a=document.createElement("div");a.appendChild(s.cloneNode(!0)),r=a.innerHTML}r=r.replace(/<symbol/g,"<svg"+(~r.indexOf("xmlns")?"":' xmlns="http://www.w3.org/2000/svg"')).replace(/symbol>/g,"svg>"),o=li.parseFromString(r,"image/svg+xml").documentElement}else e.querySelector("symbol")||(o=e.documentElement.cloneNode(!0));else o=e.documentElement.cloneNode(!0);if(o){var l=o.getAttribute("viewBox");l&&(l=l.split(" "),t.width=t.width||l[2],t.height=t.height||l[3]),t.width*=t.ratio,t.height*=t.ratio;for(var h in t.$options.props)t[h]&&!~t.exclude.indexOf(h)&&o.setAttribute(h,t[h]);t.id||o.removeAttribute("id"),t.width&&!t.height&&o.removeAttribute("height"),t.height&&!t.width&&o.removeAttribute("width");var c=t.$el[0];m(c)||"CANVAS"===c.tagName?(t.$el.attr({hidden:!0,id:null}),c.nextSibling?c.parentNode.insertBefore(o,c.nextSibling):c.parentNode.appendChild(o)):c.appendChild(o),i(o)}else n("SVG not found.")}else n("SVG not found.")})})}).then(null,function(){})},disconnected:function(){m(this.$el)&&this.$el.attr({hidden:null,id:this.id||null}),this.svg&&(this.svg.then(function(t){return t&&t.parentNode&&t.parentNode.removeChild(t)}),this.svg=null)},methods:{getSvg:function(){var e=this;return this.src?ai[this.src]?ai[this.src]:(ai[this.src]=$(function(i,n){0===e.src.lastIndexOf("data:",0)?i(e.parse(decodeURIComponent(e.src.split(",")[1]))):t.ajax(e.src,{dataType:"html"}).then(function(t){i(e.parse(t))},function(){n("SVG not found.")})}),ai[this.src]):$.reject()},parse:function(t){var e=li.parseFromString(t,"image/svg+xml");return e.documentElement&&"svg"===e.documentElement.nodeName?e:null}}})}function Ht(t){t.component("switcher",{mixins:[We],args:"connect",props:{connect:String,toggle:String,active:Number,swiping:Boolean},defaults:{connect:!1,toggle:" > *",active:0,swiping:!0,cls:"uk-active",clsContainer:"uk-switcher",attrItem:"uk-switcher-item",queued:!0},computed:{connects:function(){return v(this.connect,this.$el)||Xt(this.$el.next("."+this.clsContainer))},toggles:function(){return Xt(this.toggle,this.$el)}},events:[{name:"click",delegate:function(){return this.toggle+":not(.uk-disabled)"},handler:function(t){t.preventDefault(),this.show(t.currentTarget)}},{name:"click",el:function(){return this.connects},delegate:function(){return"["+this.attrItem+"],[data-"+this.attrItem+"]"},handler:function(t){t.preventDefault(),this.show(Xt(t.currentTarget)[t.currentTarget.hasAttribute(this.attrItem)?"attr":"data"](this.attrItem))}},{name:"swipeRight swipeLeft",filter:function(){return this.swiping},el:function(){return this.connects},handler:function(t){ct(t)&&(t.preventDefault(),window.getSelection().toString()||this.show("swipeLeft"===t.type?"next":"previous"))}}],update:function(){this.updateAria(this.connects.children()),this.show(B(this.toggles.filter("."+this.cls+":first"))||B(this.toggles.eq(this.active))||this.toggles.first())},methods:{show:function(t){for(var e,i=this,n=this.toggles.length,s=this.connects.children("."+this.cls).index(),o=s>=0,r=g(t,this.toggles,s),a="previous"===t?-1:1,l=0;l<n;l++,r=(r+a+n)%n)if(!i.toggles.eq(r).is(".uk-disabled, [disabled]")){e=i.toggles.eq(r);break}!e||s>=0&&e.hasClass(this.cls)||s===r||(this.toggles.removeClass(this.cls).attr("aria-expanded",!1),e.addClass(this.cls).attr("aria-expanded",!0),o?this.toggleElement(this.connects.children(":nth-child("+(s+1)+"),:nth-child("+(r+1)+")")):this.toggleNow(this.connects.children(":nth-child("+(r+1)+")")))}}})}function Mt(t){t.component("tab",t.components.switcher.extend({mixins:[Le],name:"tab",props:{media:"media"},defaults:{media:960,attrItem:"uk-tab-item"},init:function(){var e=this.$hasClass("uk-tab-left")&&"uk-tab-left"||this.$hasClass("uk-tab-right")&&"uk-tab-right";e&&t.toggle(this.$el,{cls:e,mode:"media",media:this.media})}}))}function jt(e){e.component("toggle",{mixins:[e.mixin.togglable],args:"target",props:{href:String,target:null,mode:"list",media:"media"},defaults:{href:!1,target:!1,mode:"click",queued:!0,media:!1},computed:{target:function(){return v(this.$props.target||this.href,this.$el)||this.$el}},events:[{name:be+" "+ye,filter:function(){return~this.mode.indexOf("hover")},handler:function(t){ct(t)||this.toggle("toggle"+(t.type===be?"show":"hide"))}},{name:"click",filter:function(){return~this.mode.indexOf("click")||ge},handler:function(t){if(ct(t)||~this.mode.indexOf("click")){var e=Xt(t.target).closest("a[href]");(Xt(t.target).closest('a[href="#"], button').length||e.length&&(this.cls||!this.target.is(":visible")||"#"===e.attr("href")[0]&&this.target.is(e.attr("href"))))&&t.preventDefault(),this.toggle()}}}],update:{write:function(){if(~this.mode.indexOf("media")&&this.media){var t=this.isToggled(this.target);(window.matchMedia(this.media).matches?!t:t)&&this.toggle()}},events:["load","resize"]},methods:{toggle:function(e){var i=t.Event(e||"toggle");this.target.triggerHandler(i,[this]),i.isDefaultPrevented()||this.toggleElement(this.target)}}})}function Ft(t){t.component("leader",{mixins:[Le],props:{fill:String,media:"media"},defaults:{fill:"",media:!1,clsWrapper:"uk-leader-fill",clsHide:"uk-leader-hide",attrFill:"data-fill"},computed:{fill:function(){return this.$props.fill||Y("leader-fill")}},connected:function(){this.wrapper=this.$el.wrapInner('<span class="'+this.clsWrapper+'">').children().first()},disconnected:function(){this.wrapper.contents().unwrap()},update:[{read:function(){var t=this._width;this._width=Math.floor(this.$el[0].offsetWidth/2),this._changed=t!==this._width,this._hide=this.media&&!window.matchMedia(this.media).matches},write:function(){this.wrapper.toggleClass(this.clsHide,this._hide),this._changed&&this.wrapper.attr(this.attrFill,new Array(this._width).join(this.fill))},events:["load","resize"]}]})}function zt(t){function e(t){var e=t-Date.now();return{total:e,seconds:e/1e3%60,minutes:e/1e3/60%60,hours:e/1e3/60/60%24,days:e/1e3/60/60/24}}zt.installed||t.component("countdown",{mixins:[t.mixin.class],attrs:!0,props:{date:String,clsWrapper:String},defaults:{date:"",clsWrapper:".uk-countdown-%unit%"},computed:{date:function(){return Date.parse(this.$props.date)},days:function(){return this.$el.find(this.clsWrapper.replace("%unit%","days"))},hours:function(){return this.$el.find(this.clsWrapper.replace("%unit%","hours"))},minutes:function(){return this.$el.find(this.clsWrapper.replace("%unit%","minutes"))},seconds:function(){return this.$el.find(this.clsWrapper.replace("%unit%","seconds"))},units:function(){var t=this;return["days","hours","minutes","seconds"].filter(function(e){return t[e].length})}},connected:function(){this.start()},disconnected:function(){var t=this;this.stop(),this.units.forEach(function(e){return t[e].empty()})},update:{write:function(){var t=this,i=e(this.date);i.total<=0&&(this.stop(),i.days=i.hours=i.minutes=i.seconds=0),this.units.forEach(function(e){var n=String(Math.floor(i[e]));if(n=n.length<2?"0"+n:n,t[e].text()!==n){var s=t[e];(n=n.split("")).length!==s.children().length&&s.empty().append(n.map(function(){return"<span></span>"}).join("")),n.forEach(function(t,e){return s[0].childNodes[e].innerText=t})}})}},methods:{start:function(){var t=this;this.stop(),this.date&&this.units.length&&(this.$emit(),this.timer=setInterval(function(){return t.$emit()},1e3))},stop:function(){this.timer&&(clearInterval(this.timer),this.timer=null)}}})}function Lt(t){if(!Lt.installed){var e=t.util,i=e.$,n=e.ajax,s=e.assign,o=e.doc,r=e.Event,a=e.Dimensions,l=e.getIndex,h=e.Transition;t.component("lightbox",{name:"lightbox",props:{toggle:String,duration:Number,inverse:Boolean},defaults:{toggle:"a",duration:400,dark:!1,attrItem:"uk-lightbox-item",items:[],index:0},computed:{toggles:function(){var t=this;return i(this.toggle,this.$el).each(function(e,i){return t.items.push({source:i.getAttribute("href"),title:i.getAttribute("title"),type:i.getAttribute("type")})})}},events:[{name:"click",delegate:function(){return this.toggle+":not(.uk-disabled)"},handler:function(t){t.preventDefault(),this.show(this.toggles.index(t.currentTarget))}},{name:"showitem",handler:function(t){this.getItem().content&&(this.$update(),t.stopImmediatePropagation())}}],update:{write:function(){var t=this,e=this.getItem();if(this.modal&&e.content){var n=this.modal.panel,s={width:n.width(),height:n.height()},o={width:window.innerWidth-(n.outerWidth(!0)-s.width),height:window.innerHeight-(n.outerHeight(!0)-s.height)},r=a.contain({width:e.width,height:e.height},o);h.stop(n),h.stop(this.modal.content),this.modal.content&&this.modal.content.remove(),this.modal.content=i(e.content).css("opacity",0).appendTo(n),n.css(s),h.start(n,r,this.duration).then(function(){h.start(t.modal.content,{opacity:1},400).then(function(){n.find("[uk-transition-hide]").show(),n.find("[uk-transition-show]").hide()})})}},events:["resize"]},methods:{show:function(e){var n=this;this.index=l(e,this.items,this.index),this.modal||(this.modal=t.modal.dialog('\n                        <button class="uk-modal-close-outside" uk-transition-hide type="button" uk-close></button>\n                        <span class="uk-position-center" uk-transition-show uk-spinner></span>\n                    ',{center:!0}),this.modal.$el.css("overflow","hidden").addClass("uk-modal-lightbox"),this.modal.panel.css({width:200,height:200}),this.modal.caption=i('<div class="uk-modal-caption" uk-transition-hide></div>').appendTo(this.modal.panel),this.items.length>1&&i('<div class="'+(this.dark?"uk-dark":"uk-light")+'" uk-transition-hide>\n                                <a href="#" class="uk-position-center-left" uk-slidenav-previous uk-lightbox-item="previous"></a>\n                                <a href="#" class="uk-position-center-right" uk-slidenav-next uk-lightbox-item="next"></a>\n                            </div>\n                        ').appendTo(this.modal.panel.addClass("uk-slidenav-position")),this.modal.$el.on("hidden",this.hide).on("click","["+this.attrItem+"]",function(t){t.preventDefault(),n.show(i(t.currentTarget).attr(n.attrItem))}).on("swipeRight swipeLeft",function(t){t.preventDefault(),window.getSelection().toString()||n.show("swipeLeft"===t.type?"next":"previous")})),this.modal.panel.find("[uk-transition-hide]").hide(),this.modal.panel.find("[uk-transition-show]").show(),this.modal.content&&this.modal.content.remove(),this.modal.caption.text(this.getItem().title);var s=r("showitem");this.$el.trigger(s),s.isImmediatePropagationStopped()||this.setError(this.getItem()),o.on("keydown."+this.$options.name,function(t){switch(t.keyCode){case 37:n.show("previous");break;case 39:n.show("next")}})},hide:function(){var t=this;o.off("keydown."+this.$options.name),this.modal.hide().then(function(){t.modal.$destroy(!0),t.modal=null})},getItem:function(){return this.items[this.index]||{source:"",title:"",type:""}},setItem:function(t,e,i,n){void 0===i&&(i=200),void 0===n&&(n=200),s(t,{content:e,width:i,height:n}),this.$update()},setError:function(t){this.setItem(t,'<div class="uk-position-cover uk-flex uk-flex-middle uk-flex-center"><strong>Loading resource failed!</strong></div>',400,300)}}}),t.mixin({events:{showitem:function(t){var e=this,i=this.getItem();if("image"===i.type||!i.source||i.source.match(/\.(jp(e)?g|png|gif|svg)$/i)){var n=new Image;n.onerror=function(){return e.setError(i)},n.onload=function(){return e.setItem(i,'<img class="uk-responsive-width" width="'+n.width+'" height="'+n.height+'" src ="'+i.source+'">',n.width,n.height)},n.src=i.source,t.stopImmediatePropagation()}}}},"lightbox"),t.mixin({events:{showitem:function(t){var e=this,n=this.getItem();if("video"===n.type||!n.source||n.source.match(/\.(mp4|webm|ogv)$/i)){var s=i('<video class="uk-responsive-width" controls></video>').on("loadedmetadata",function(){return e.setItem(n,s.attr({width:s[0].videoWidth,height:s[0].videoHeight}),s[0].videoWidth,s[0].videoHeight)}).attr("src",n.source);t.stopImmediatePropagation()}}}},"lightbox"),t.mixin({events:{showitem:function(t){var e,i=this,n=this.getItem();if((e=n.source.match(/\/\/.*?youtube\.[a-z]+\/watch\?v=([^&]+)&?(.*)/))||n.source.match(/youtu\.be\/(.*)/)){var s=e[1],o=new Image,r=!1,a=function(t,e){return i.setItem(n,'<iframe src="//www.youtube.com/embed/'+s+'" width="'+t+'" height="'+e+'" style="max-width:100%;box-sizing:border-box;"></iframe>',t,e)};o.onerror=function(){return a(640,320)},o.onload=function(){120===o.width&&90===o.height?r?a(640,320):(r=!0,o.src="//img.youtube.com/vi/"+s+"/0.jpg"):a(o.width,o.height)},o.src="//img.youtube.com/vi/"+s+"/maxresdefault.jpg",t.stopImmediatePropagation()}}}},"lightbox"),t.mixin({events:{showitem:function(t){var e,i=this,s=this.getItem();if(e=s.source.match(/(\/\/.*?)vimeo\.[a-z]+\/([0-9]+).*?/)){var o=e[2],r=function(t,e){return i.setItem(s,'<iframe src="//player.vimeo.com/video/'+o+'" width="'+t+'" height="'+e+'" style="max-width:100%;box-sizing:border-box;"></iframe>',t,e)};n({type:"GET",url:"http://vimeo.com/api/oembed.json?url="+encodeURI(s.source),jsonp:"callback",dataType:"jsonp"}).then(function(t){return r(t.width,t.height)}),t.stopImmediatePropagation()}}}},"lightbox")}}function Wt(t){if(!Wt.installed){var e=t.util,i=e.$,n=e.each,s=e.pointerEnter,o=e.pointerLeave,r=e.Transition,a={};t.component("notification",{functional:!0,args:["message","status"],defaults:{message:"",status:"",timeout:5e3,group:null,pos:"top-center",onClose:null,clsClose:"uk-notification-close",clsMsg:"uk-notification-message"},created:function(){a[this.pos]||(a[this.pos]=i('<div class="uk-notification uk-notification-'+this.pos+'"></div>').appendTo(t.container)),this.$mount(i('<div class="'+this.clsMsg+(this.status?" "+this.clsMsg+"-"+this.status:"")+'">\n                    <a href="#" class="'+this.clsClose+'" data-uk-close></a>\n                    <div>'+this.message+"</div>\n                </div>").appendTo(a[this.pos].show())[0])},ready:function(){var t=this,e=parseInt(this.$el.css("margin-bottom"),10);r.start(this.$el.css({opacity:0,marginTop:-1*this.$el.outerHeight(),marginBottom:0}),{opacity:1,marginTop:0,marginBottom:e}).then(function(){t.timeout&&(t.timer=setTimeout(t.close,t.timeout))})},events:(l={click:function(t){i(t.target).closest('a[href="#"]').length&&t.preventDefault(),this.close()}},l[s]=function(){this.timer&&clearTimeout(this.timer)},l[o]=function(){this.timeout&&(this.timer=setTimeout(this.close,this.timeout))},l),methods:{close:function(t){var e=this,i=function(){e.onClose&&e.onClose(),e.$el.trigger("close",[e]).remove(),a[e.pos].children().length||a[e.pos].hide()};this.timer&&clearTimeout(this.timer),t?i():r.start(this.$el,{opacity:0,marginTop:-1*this.$el.outerHeight(),marginBottom:0}).then(i)}}});var l;t.notification.closeAll=function(e,i){n(t.instances,function(t,n){"notification"!==n.$options.name||e&&e!==n.group||n.close(i)})}}}function Rt(t){function e(i){return t.getComponent(i,"sortable")||i.parentNode&&e(i.parentNode)}function i(){var t=setTimeout(function(){return a.trigger("click")},0),e=function(i){i.preventDefault(),i.stopPropagation(),clearTimeout(t),f(a,"click",e,!0)};d(a,"click",e,!0)}if(!Rt.installed){var n=t.mixin,s=t.util,o=s.$,r=s.assign,a=s.docElement,l=s.docHeight,h=s.fastdom,c=s.getDimensions,u=s.isWithin,d=s.on,f=s.off,p=s.offsetTop,g=s.pointerDown,m=s.pointerMove,v=s.pointerUp,w=s.promise,b=s.win;t.component("sortable",{mixins:[n.class],props:{group:String,animation:Number,threshold:Number,clsItem:String,clsPlaceholder:String,clsDrag:String,clsDragState:String,clsBase:String,clsNoDrag:String,clsEmpty:String,clsCustom:String,handle:String},defaults:{group:!1,animation:150,threshold:5,clsItem:"uk-sortable-item",clsPlaceholder:"uk-sortable-placeholder",clsDrag:"uk-sortable-drag",clsDragState:"uk-drag",clsBase:"uk-sortable",clsNoDrag:"uk-sortable-nodrag",clsEmpty:"uk-sortable-empty",clsCustom:"",handle:!1},init:function(){var t=this;["init","start","move","end"].forEach(function(e){var i=t[e];t[e]=function(e){e=e.originalEvent||e,t.scrollY=window.scrollY;var n=e.touches&&e.touches[0]||e,s=n.pageX,o=n.pageY;t.pos={x:s,y:o},i(e)}})},events:(y={},y[g]="init",y),update:{write:function(){var t=this;if(this.clsEmpty&&this.$toggleClass(this.clsEmpty,!this.$el.children().length),this.drag){this.drag.offset({top:this.pos.y+this.origin.top,left:this.pos.x+this.origin.left});var e=p(this.drag),i=e+this.drag[0].offsetHeight;e>0&&e<this.scrollY?setTimeout(function(){return b.scrollTop(t.scrollY-5)},5):i<l()&&i>window.innerHeight+this.scrollY&&setTimeout(function(){return b.scrollTop(t.scrollY+5)},5)}}},methods:{init:function(t){var e=o(t.target),i=this.$el.children().filter(function(e,i){return u(t.target,i)});!i.length||e.is(":input")||this.handle&&!u(e,this.handle)||t.button&&0!==t.button||u(e,"."+this.clsNoDrag)||(t.preventDefault(),t.stopPropagation(),this.touched=[this],this.placeholder=i,this.origin=r({target:e,index:this.placeholder.index()},this.pos),a.on(m,this.move),a.on(v,this.end),b.on("scroll",this.scroll),this.threshold||this.start(t))},start:function(e){this.drag=o(this.placeholder[0].outerHTML.replace(/^<li/i,"<div").replace(/li>$/i,"div>")).attr("uk-no-boot","").addClass(this.clsDrag+" "+this.clsCustom).css({boxSizing:"border-box",width:this.placeholder.outerWidth(),height:this.placeholder.outerHeight()}).css(this.placeholder.css(["paddingLeft","paddingRight","paddingTop","paddingBottom"])).appendTo(t.container),this.drag.children().first().height(this.placeholder.children().height());var i=c(this.placeholder),n=i.left,s=i.top;r(this.origin,{left:n-this.pos.x,top:s-this.pos.y}),this.placeholder.addClass(this.clsPlaceholder),this.$el.children().addClass(this.clsItem),a.addClass(this.clsDragState),this.$el.trigger("start",[this,this.placeholder,this.drag]),this.move(e)},move:function(t){if(this.drag){this.$emit();var i="mousemove"===t.type?t.target:document.elementFromPoint(this.pos.x-document.body.scrollLeft,this.pos.y-document.body.scrollTop),n=e(i),s=e(this.placeholder[0]),r=n!==s;if(n&&!u(i,this.placeholder)&&(!r||n.group&&n.group===s.group)){if(i=n.$el.is(i.parentNode)&&o(i)||n.$el.children().has(i),r)s.remove(this.placeholder);else if(!i.length)return;n.insert(this.placeholder,i),~this.touched.indexOf(n)||this.touched.push(n)}}else(Math.abs(this.pos.x-this.origin.x)>this.threshold||Math.abs(this.pos.y-this.origin.y)>this.threshold)&&this.start(t)},scroll:function(){var t=window.scrollY;t!==this.scrollY&&(this.pos.y+=t-this.scrollY,this.scrollY=t,this.$emit())},end:function(t){if(a.off(m,this.move),a.off(v,this.end),b.off("scroll",this.scroll),this.drag){i();var n=e(this.placeholder[0]);this===n?this.origin.index!==this.placeholder.index()&&this.$el.trigger("change",[this,this.placeholder,"moved"]):(n.$el.trigger("change",[n,this.placeholder,"added"]),this.$el.trigger("change",[this,this.placeholder,"removed"])),this.$el.trigger("stop",[this]),this.drag.remove(),this.drag=null;var s=this.touched.map(function(t){return t.clsPlaceholder+" "+t.clsItem}).join(" ");this.touched.forEach(function(t){return t.$el.children().removeClass(s)}),a.removeClass(this.clsDragState)}else"mouseup"!==t.type&&u(t.target,"a[href]")&&(location.href=o(t.target).closest("a[href]").attr("href"))},insert:function(t,e){var i=this;this.$el.children().addClass(this.clsItem);var n=function(){e.length?!i.$el.has(t).length||t.prevAll().filter(e).length?t.insertBefore(e):t.insertAfter(e):i.$el.append(t)};this.animation?this.animate(n):n()},remove:function(t){this.$el.has(t).length&&(this.animation?this.animate(function(){return t.detach()}):t.detach())},animate:function(t){var e=this,i=[],n=this.$el.children().toArray().map(function(t){return t=o(t),i.push(r({position:"absolute",pointerEvents:"none",width:t.outerWidth(),height:t.outerHeight()},t.position())),t}),s={position:"",width:"",height:"",pointerEvents:"",top:"",left:""};t(),n.forEach(function(t){return t.stop()}),this.$el.children().css(s),this.$update("update",!0),h.flush(),this.$el.css("min-height",this.$el.height());var a=n.map(function(t){return t.position()});w.all(n.map(function(t,n){return t.css(i[n]).animate(a[n],e.animation).promise()})).then(function(){e.$el.css("min-height","").children().css(s),e.$update("update",!0),h.flush()})}}});var y}}function qt(t){if(!qt.installed){var e=t.util,i=t.mixin,n=e.$,s=e.doc,o=e.fastdom,r=e.flipPosition,a=e.isTouch,l=e.isWithin,h=e.pointerDown,c=e.pointerEnter,u=e.pointerLeave,d=[];t.component("tooltip",{attrs:!0,mixins:[i.togglable,i.position],props:{delay:Number,container:Boolean,title:String},defaults:{pos:"top",title:"",delay:0,animation:["uk-animation-scale-up"],duration:100,cls:"uk-active",clsPos:"uk-tooltip",container:!0},computed:{container:function(){return n(!0===this.$props.container&&t.container||this.$props.container||t.container)}},connected:function(){var t=this;o.mutate(function(){return t.$el.removeAttr("title").attr("aria-expanded",!1)})},disconnected:function(){this.hide()},methods:{show:function(){var t=this;~d.indexOf(this)||(d.forEach(function(t){return t.hide()}),d.push(this),s.on("click."+this.$options.name,function(e){l(e.target,t.$el)||t.hide()}),clearTimeout(this.showTimer),this.tooltip=n('<div class="'+this.clsPos+'" aria-hidden="true"><div class="'+this.clsPos+'-inner">'+this.title+"</div></div>").appendTo(this.container),this.$el.attr("aria-expanded",!0),this.positionAt(this.tooltip,this.$el),this.origin="y"===this.getAxis()?r(this.dir)+"-"+this.align:this.align+"-"+r(this.dir),this.showTimer=setTimeout(function(){t.toggleElement(t.tooltip,!0),t.hideTimer=setInterval(function(){t.$el.is(":visible")||t.hide()},150)},this.delay))},hide:function(){var t=d.indexOf(this);!~t||this.$el.is("input")&&this.$el[0]===document.activeElement||(d.splice(t,1),clearTimeout(this.showTimer),clearInterval(this.hideTimer),this.$el.attr("aria-expanded",!1),this.toggleElement(this.tooltip,!1),this.tooltip&&this.tooltip.remove(),this.tooltip=!1,s.off("click."+this.$options.name))}},events:(f={blur:"hide"},f["focus "+c+" "+h]=function(t){t.type===h&&a(t)||this.show()},f[u]=function(t){a(t)||this.hide()},f)});var f}}function Yt(t){function e(t,e){return e.match(new RegExp("^"+t.replace(/\//g,"\\/").replace(/\*\*/g,"(\\/[^\\/]+)*").replace(/\*/g,"[^\\/]+").replace(/((?!\\))\?/g,"$1.")+"$","i"))}function i(t,e){for(var i=[],n=0;n<t.length;n+=e){for(var s=[],o=0;o<e;o++)s.push(t[n+o]);i.push(s)}return i}if(!Yt.installed){var n=t.util,s=n.$,o=n.ajax,r=n.on;t.component("upload",{props:{allow:String,clsDragover:String,concurrent:Number,dataType:String,mime:String,msgInvalidMime:String,msgInvalidName:String,multiple:Boolean,name:String,params:Object,type:String,url:String},defaults:{allow:!1,clsDragover:"uk-dragover",concurrent:1,dataType:void 0,mime:!1,msgInvalidMime:"Invalid File Type: %s",msgInvalidName:"Invalid File Name: %s",multiple:!1,name:"files[]",params:{},type:"POST",url:"",abort:null,beforeAll:null,beforeSend:null,complete:null,completeAll:null,error:null,fail:function(t){alert(t)},load:null,loadEnd:null,loadStart:null,progress:null},events:{change:function(t){s(t.target).is('input[type="file"]')&&(t.preventDefault(),t.target.files&&this.upload(t.target.files),t.target.value="")},drop:function(t){t.preventDefault(),t.stopPropagation();var e=t.originalEvent.dataTransfer;e&&e.files&&(this.$removeClass(this.clsDragover),this.upload(e.files))},dragenter:function(t){t.preventDefault(),t.stopPropagation()},dragover:function(t){t.preventDefault(),t.stopPropagation(),this.$addClass(this.clsDragover)},dragleave:function(t){t.preventDefault(),t.stopPropagation(),this.$removeClass(this.clsDragover)}},methods:{upload:function(t){var n=this;if(t.length){this.$el.trigger("upload",[t]);for(var a=0;a<t.length;a++){if(n.allow&&!e(n.allow,t[a].name))return void n.fail(n.msgInvalidName.replace(/%s/,n.allow));if(n.mime&&!e(n.mime,t[a].type))return void n.fail(n.msgInvalidMime.replace(/%s/,n.mime))}this.multiple||(t=[t[0]]),this.beforeAll&&this.beforeAll(this,t);var l=i(t,this.concurrent),h=function(t){var e=new FormData;t.forEach(function(t){return e.append(n.name,t)});for(var i in n.params)e.append(i,n.params[i]);o({data:e,url:n.url,type:n.type,dataType:n.dataType,beforeSend:n.beforeSend,complete:[n.complete,function(t,e){l.length?h(l.shift()):n.completeAll&&n.completeAll(t),"abort"===e&&n.abort&&n.abort(t)}],cache:!1,contentType:!1,processData:!1,xhr:function(){var t=s.ajaxSettings.xhr();return t.upload&&n.progress&&r(t.upload,"progress",n.progress),["loadStart","load","loadEnd","error","abort"].forEach(function(e){return n[e]&&r(t,e.toLowerCase(),n[e])}),t}})};h(l.shift())}}}})}}function Ut(t){function e(t,e){return t.sort(function(t,i){return t[e]>i[e]?1:i[e]>t[e]?-1:0})}if(!Ut.installed){var i=t.util.scrolledOver;t.component("grid-parallax",t.components.grid.extend({props:{target:String,translate:Number},defaults:{target:!1,translate:150},init:function(){this.$addClass("uk-grid")},disconnected:function(){this.reset(),this.$el.css("margin-bottom","")},computed:{translate:function(){return Math.abs(this.$props.translate)},items:function(){return(this.target?this.$el.find(this.target):this.$el.children()).toArray()}},update:[{read:function(){this.columns=this.rows&&this.rows[0]&&this.rows[0].length||0,this.rows=this.rows&&this.rows.map(function(t){return e(t,"offsetLeft")})},write:function(){this.$el.css("margin-bottom","").css("margin-bottom",this.columns>1?this.translate+parseFloat(this.$el.css("margin-bottom")):"")},events:["load","resize"]},{read:function(){this.scrolled=i(this.$el)*this.translate},write:function(){var t=this;if(!this.rows||1===this.columns||!this.scrolled)return this.reset();this.rows.forEach(function(e){return e.forEach(function(e,i){return e.style.transform="translateY("+(i%2?t.scrolled:t.scrolled/8)+"px)"})})},events:["scroll","load","resize"]}],methods:{reset:function(){this.items.forEach(function(t){return t.style.transform=""})}}})),t.component("grid-parallax").options.update.unshift({read:function(){this.reset()},events:["load","resize"]})}}function Vt(t){function e(t){return t.split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(function(t){return parseFloat(t)})}function i(t,e){var i=!1;return Object.keys(t).reduce(function(s,o){var r=t[o],a=n(r,e);switch(o){case"x":case"y":if(i)break;var l=["x","y"].map(function(i){return o===i?a+r.unit:t[i]?n(t[i],e)+t[i].unit:0}),h=l[0],c=l[1];i=s.transform+=" translate3d("+h+", "+c+", 0)";break;case"rotate":s.transform+=" rotate("+a+"deg)";break;case"scale":s.transform+=" scale("+a+")";break;case"bgy":case"bgx":s["background-position-"+o[2]]="calc("+r.pos+" + "+(a+r.unit)+")";break;case"color":case"backgroundColor":case"borderColor":s[o]="rgba("+r.start.map(function(t,i){return t+=e*(r.end[i]-t),3===i?parseFloat(t):parseInt(t,10)}).join(",")+")";break;case"blur":s.filter+=" blur("+a+"px)";break;case"hue":s.filter+=" hue-rotate("+a+"deg)";break;case"fopacity":s.filter+=" opacity("+a+"%)";break;case"grayscale":case"invert":case"saturate":case"sepia":s.filter+=" "+o+"("+a+"%)";break;default:s[o]=a}return s},{transform:"",filter:""})}function n(t,e){return+(h(t.diff)?+t.end:t.start+t.diff*e*(t.start<t.end?1:-1)).toFixed(2)}if(!Vt.installed){var s=t.util,o=(s.$,s.assign),r=s.clamp,a=s.Dimensions,l=s.getImage,h=s.isUndefined,c=s.scrolledOver,u=s.query,d=["x","y","bgx","bgy","rotate","scale","color","backgroundColor","borderColor","opacity","blur","hue","grayscale","invert","saturate","sepia","fopacity"];t.component("parallax",{props:d.reduce(function(t,e){return t[e]="list",t},{easing:Number,target:String,viewport:Number,media:"media"}),defaults:d.reduce(function(t,e){return t[e]=void 0,t},{easing:1,target:!1,viewport:1,media:!1}),computed:{target:function(){return this.$props.target&&u(this.$props.target,this.$el)||this.$el},props:function(){var t=this;return d.reduce(function(i,n){if(h(t.$props[n]))return i;var s=n.match(/color/i),r=s||"opacity"===n,a=t.$props[n];r&&t.$el.css(n,"");var l,c=(h(a[1])?"scale"===n?1:r?t.$el.css(n):0:a[0])||0,u=h(a[1])?a[0]:a[1],d=~a.join("").indexOf("%")?"%":"px";if(s){var f=t.$el[0].style.color;t.$el[0].style.color=c,c=e(t.$el.css("color")),t.$el[0].style.color=u,u=e(t.$el.css("color")),t.$el[0].style.color=f}else c=parseFloat(c),u=parseFloat(u),l=Math.abs(c-u);if(i[n]={start:c,end:u,diff:l,unit:d},n.match(/^bg/)){var p="background-position-"+n[2];i[n].pos=t.$el.css(p,"").css(p),t.covers&&o(i[n],{start:0,end:c<=u?l:-l})}return i},{})},bgProps:function(){var t=this;return["bgx","bgy"].filter(function(e){return e in t.props})},covers:function(){return"cover"===this.$el.css("backgroundSize","").css("backgroundSize")}},disconnected:function(){delete this._prev,delete this._image},update:[{read:function(){var t=this;if(delete this._prev,delete this._computeds.props,this._active=!this.media||window.matchMedia(this.media).matches,this._image&&(this._image.dimEl={width:this.$el[0].offsetWidth,height:this.$el[0].offsetHeight}),h(this._image)&&this.covers&&this.bgProps.length){var e=this.$el.css("backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");e&&(this._image=!1,l(e).then(function(e){t._image={width:e.naturalWidth,height:e.naturalHeight},t.$emit()}))}},write:function(){var t=this;if(this._image)if(this._active){var e=this._image,i=e.dimEl,n=a.cover(e,i);this.bgProps.forEach(function(s){var o=t.props[s],l=o.start,h=o.end,c=o.pos,u=o.diff,d="bgy"===s?"height":"width",f=n[d]-i[d];if(c.match(/%$/)){if(l>=h)f<u?(i[d]=n[d]+u-f,t.props[s].pos="0px"):(c=-1*f/100*parseFloat(c),c=r(c,u-f,0),t.props[s].pos=c+"px");else{if(f<u)i[d]=n[d]+u-f;else if(f/100*parseFloat(c)>u)return;t.props[s].pos="-"+u+"px"}n=a.cover(e,i)}}),this.$el.css({backgroundSize:n.width+"px "+n.height+"px",backgroundRepeat:"no-repeat"})}else this.$el.css({backgroundSize:"",backgroundRepeat:""})},events:["load","resize"]},{read:function(){var t=c(this.target)/(this.viewport||1);this._percent=r(t*(1-(this.easing-this.easing*t)))},write:function(){var t=this;this._active?this._prev!==this._percent&&(this.$el.css(i(this.props,this._percent)),this._prev=this._percent):Object.keys(i(this.props,0)).forEach(function(e){return t.$el.css(e,"")})},events:["scroll","load","resize"]}]})}}var Xt="default"in t?t.default:t,Gt=document.documentElement,Qt=Xt(window),Jt=Xt(document),Zt=Xt(Gt),Kt="rtl"===Gt.getAttribute("dir"),te={start:o,stop:function(e,i){var n=t.Event($e||"transitionend");return Xt(e).triggerHandler(n,[i]),n.promise||$.resolve()},cancel:function(t){return this.stop(t,!0)},inProgress:function(t){return Xt(t).hasClass("uk-transition")}},ee={in:function(t,e,i,n){return r(t,e,i,n,!1)},out:function(t,e,i,n){return r(t,e,i,n,!0)},inProgress:function(t){return Xt(t).hasClass("uk-animation-enter")||Xt(t).hasClass("uk-animation-leave")},cancel:function(e){var i=t.Event(ke||"animationend");return Xt(e).triggerHandler(i),i.promise||$.resolve()}},ie={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,menuitem:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},ne={ratio:function(t,e,i){var n="width"===e?"height":"width";return s={},s[n]=Math.round(i*t[n]/t[e]),s[e]=i,s;var s},contain:function(e,i){var n=this;return e=he({},e),t.each(e,function(t){return e=e[t]>i[t]?n.ratio(e,t,i[t]):e}),e},cover:function(e,i){var n=this;return e=this.contain(e,i),t.each(e,function(t){return e=e[t]<i[t]?n.ratio(e,t,i[t]):e}),e}},se=Object.prototype.hasOwnProperty;$.resolve=function(t){return $(function(e){e(t)})},$.reject=function(t){return $(function(e,i){i(t)})},$.all=function(t){return pe?Promise.all(t):Xt.when.apply(Xt,t)};var oe=/-(\w)/g,re=Array.isArray,ae={"!":"closest","+":"nextAll","-":"prevAll"},le={},he=Object.assign||function(t){for(var e=[],i=arguments.length-1;i-- >0;)e[i]=arguments[i+1];t=Object(t);for(var n=0;n<e.length;n++){var s=e[n];if(null!==s)for(var o in s)y(s,o)&&(t[o]=s[o])}return t},ce=window.MutationObserver||window.WebKitMutationObserver,ue=window.requestAnimationFrame||function(t){return setTimeout(t,1e3/60)},de="ontouchstart"in window,fe=window.PointerEvent,pe="Promise"in window,ge="ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch||navigator.msPointerEnabled&&navigator.msMaxTouchPoints||navigator.pointerEnabled&&navigator.maxTouchPoints,me=ge?"mousedown "+(de?"touchstart":"pointerdown"):"mousedown",ve=ge?"mousemove "+(de?"touchmove":"pointermove"):"mousemove",we=ge?"mouseup "+(de?"touchend":"pointerup"):"mouseup",be=ge&&fe?"pointerenter":"mouseenter",ye=ge&&fe?"pointerleave":"mouseleave",$e=V("transition","transition-end"),xe=V("animation","animation-start"),ke=V("animation","animation-end"),Ce={reads:[],writes:[],measure:function(t){return this.reads.push(t),X(),t},mutate:function(t){return this.writes.push(t),X(),t},clear:function(t){return Q(this.reads,t)||Q(this.writes,t)},flush:function(){G(this.reads),G(this.writes.splice(0,this.writes.length)),this.scheduled=!1,(this.reads.length||this.writes.length)&&X()}};J.prototype={positions:[],position:null,init:function(){var t=this;this.positions=[],this.position=null;var e=!1;this.handler=function(i){e||setTimeout(function(){var n=Date.now(),s=t.positions.length;s&&n-t.positions[s-1].time>100&&t.positions.splice(0,s),t.positions.push({time:n,x:i.pageX,y:i.pageY}),t.positions.length>5&&t.positions.shift(),e=!1},5),e=!0},Jt.on("mousemove",this.handler)},cancel:function(){this.handler&&Jt.off("mousemove",this.handler)},movesTo:function(t){if(this.positions.length<2)return!1;var e=et(t),i=this.positions[this.positions.length-1],n=this.positions[0];if(e.left<=i.x&&i.x<=e.right&&e.top<=i.y&&i.y<=e.bottom)return!1;var s=[[{x:e.left,y:e.top},{x:e.right,y:e.bottom}],[{x:e.right,y:e.top},{x:e.left,y:e.bottom}]];return e.right<=i.x||(e.left>=i.x?(s[0].reverse(),s[1].reverse()):e.bottom<=i.y?s[0].reverse():e.top>=i.y&&s[1].reverse()),!!s.reduce(function(t,e){return t+(Z(n,e[0])<Z(i,e[0])&&Z(n,e[1])>Z(i,e[1]))},0)}};var Te={};Te.args=Te.created=Te.events=Te.init=Te.ready=Te.connected=Te.disconnected=Te.destroy=function(t,e){return t=t&&!re(t)?[t]:t,e?t?t.concat(e):re(e)?e:[e]:t},Te.update=function(t,e){return Te.args(t,_(e)?{read:e}:e)},Te.props=function(t,e){return re(e)&&(e=e.reduce(function(t,e){return t[e]=String,t},{})),Te.methods(t,e)},Te.computed=Te.defaults=Te.methods=function(t,e){return e?t?he({},t,e):e:t};var _e,Ee,Se,Ae,Oe,De=function(t,e){return D(e)?t:e},Ie={x:["width","left","right"],y:["height","top","bottom"]},Ne={};i(function(){var e,i,s=0,o=0;"MSGesture"in window&&((Ae=new MSGesture).target=document.body),n(document,"click",function(){return Oe=!0},!0),n(document,"MSGestureEnd gestureend",function(t){var e=t.velocityX>1?"Right":t.velocityX<-1?"Left":t.velocityY>1?"Down":t.velocityY<-1?"Up":null;e&&void 0!==Ne.el&&(Ne.el.trigger("swipe"),Ne.el.trigger("swipe"+e))}),n(document,me,function(t){var n=t.touches?t.touches[0]:t,s=n.target,o=n.pageX,r=n.pageY;e=Date.now(),i=e-(Ne.last||e),Ne.el=Xt("tagName"in s?s:s.parentNode),_e&&clearTimeout(_e),Ne.x1=o,Ne.y1=r,i>0&&i<=250&&(Ne.isDoubleTap=!0),Ne.last=e,!Ae||"pointerdown"!==t.type&&"touchstart"!==t.type||Ae.addPointer(t.pointerId),Oe=t.button>0}),n(document,ve,function(t){var e=t.touches?t.touches[0]:t,i=e.pageX,n=e.pageY;Ne.x2=i,Ne.y2=n,s+=Math.abs(Ne.x1-Ne.x2),o+=Math.abs(Ne.y1-Ne.y2)}),n(document,we,function(){Ne.x2&&Math.abs(Ne.x1-Ne.x2)>30||Ne.y2&&Math.abs(Ne.y1-Ne.y2)>30?Se=setTimeout(function(){void 0!==Ne.el&&(Ne.el.trigger("swipe"),Ne.el.trigger("swipe"+lt(Ne.x1,Ne.x2,Ne.y1,Ne.y2))),Ne={}}):"last"in Ne&&(isNaN(s)||s<30&&o<30?Ee=setTimeout(function(){var e=t.Event("tap");e.cancelTouch=ht,void 0!==Ne.el&&Ne.el.trigger(e),Ne.isDoubleTap?(void 0!==Ne.el&&Ne.el.trigger("doubleTap"),Ne={}):_e=setTimeout(function(){_e=null,void 0!==Ne.el&&(Ne.el.trigger("singleTap"),Oe||Ne.el.trigger("click")),Ne={}},350)}):Ne={},s=o=0)}),n(document,"touchcancel",ht),n(window,"scroll",ht)});var Be=!1;n(document,"touchstart",function(){return Be=!0},!0),n(document,"click",function(){Be=!1}),n(document,"touchcancel",function(){return Be=!1},!0);var Pe,He,Me=Object.freeze({win:Qt,doc:Jt,docElement:Zt,isRtl:Kt,isReady:e,ready:i,on:n,off:s,transition:o,Transition:te,animate:r,Animation:ee,isJQuery:a,isWithin:l,attrFilter:h,removeClass:c,createEvent:u,isInView:d,scrolledOver:f,docHeight:p,getIndex:g,isVoidElement:m,Dimensions:ne,query:v,Observer:ce,requestAnimationFrame:ue,hasPromise:pe,hasTouch:ge,pointerDown:me,pointerMove:ve,pointerUp:we,pointerEnter:be,pointerLeave:ye,transitionend:$e,animationstart:xe,animationend:ke,getStyle:q,getCssVar:Y,getImage:U,fastdom:Ce,$:Xt,bind:b,hasOwn:y,promise:$,classify:x,hyphenate:k,camelize:C,isArray:re,isFunction:_,isObject:E,isPlainObject:S,isString:A,isNumber:O,isUndefined:D,isContextSelector:I,getContextSelectors:N,toJQuery:B,toNode:P,toBoolean:H,toNumber:M,toList:j,toMedia:F,coerce:z,toMs:L,swap:W,assign:he,clamp:R,ajax:t.ajax,each:t.each,Event:t.Event,isNumeric:t.isNumeric,MouseTracker:J,mergeOptions:K,position:tt,getDimensions:et,offsetTop:it,flipPosition:at,isTouch:ct});!function(){var t=document.createElement("_").classList;t.add("a","b"),t.toggle("c",!1),Pe=t.contains("b"),He=!t.contains("c"),t=null}();var je=function(t){this._init(t)};je.util=Me,je.data="__uikit__",je.prefix="uk-",je.options={},je.instances={},je.elements=[],function(t){function e(t){return new Function("return function "+x(t)+" (options) { this._init(options); }")()}function i(t,e){if(t.nodeType===Node.ELEMENT_NODE)for(e(t),t=t.firstChild;t;)i(t,e),t=t.nextSibling}function n(t,e){if(t)for(var i in t)t[i]._isReady&&t[i]._callUpdate(e)}var s=t.data;t.use=function(t){if(!t.installed)return t.call(null,this),t.installed=!0,this},t.mixin=function(e,i){i=(A(i)?t.components[i]:i)||this,(e=K({},e)).mixins=i.options.mixins,delete i.options.mixins,i.options=K(e,i.options)},t.extend=function(t){var i=this,n=e((t=t||{}).name||i.options.name||"UIkitComponent");return n.prototype=Object.create(i.prototype),n.prototype.constructor=n,n.options=K(i.options,t),n.super=i,n.extend=i.extend,n},t.update=function(e,o,r){if(void 0===r&&(r=!1),e=u(e||"update"),o)if(o=P(o),r)do{n(o[s],e),o=o.parentNode}while(o);else i(o,function(t){return n(t[s],e)});else n(t.instances,e)};var o;Object.defineProperty(t,"container",{get:function(){return o||document.body},set:function(t){o=t}})}(je),function(t){t.prototype._callHook=function(t){var e=this,i=this.$options[t];i&&i.forEach(function(t){return t.call(e)})},t.prototype._callReady=function(){this._isReady||(this._isReady=!0,this._callHook("ready"),this._callUpdate())},t.prototype._callConnected=function(){var e=this;this._connected||(~t.elements.indexOf(this.$options.el)||t.elements.push(this.$options.el),t.instances[this._uid]=this,this._initEvents(),this._callHook("connected"),this._connected=!0,this._initObserver(),this._isReady||i(function(){return e._callReady()}),this._callUpdate())},t.prototype._callDisconnected=function(){if(this._connected){this._observer&&(this._observer.disconnect(),this._observer=null);var e=t.elements.indexOf(this.$options.el);~e&&t.elements.splice(e,1),delete t.instances[this._uid],this._initEvents(!0),this._callHook("disconnected"),this._connected=!1}},t.prototype._callUpdate=function(t){var e=this;"update"===(t=u(t||"update")).type&&(this._computeds={});var i=this.$options.update;i&&i.forEach(function(i,n){("update"===t.type||i.events&&~i.events.indexOf(t.type))&&(i.read&&!~Ce.reads.indexOf(e._frames.reads[n])&&(e._frames.reads[n]=Ce.measure(function(){i.read.call(e,t),delete e._frames.reads[n]})),i.write&&!~Ce.writes.indexOf(e._frames.writes[n])&&(e._frames.writes[n]=Ce.mutate(function(){i.write.call(e,t),delete e._frames.writes[n]})))})}}(je),function(t){function e(t,e,i){Object.defineProperty(t,e,{enumerable:!0,get:function(){return y(t._computeds,e)||(t._computeds[e]=i.call(t)),t._computeds[e]},set:function(i){t._computeds[e]=i}})}function i(t,e,i,s){S(i)||(i={name:s,handler:i});var o=i.name,r=i.el,a=i.delegate,l=i.self,h=i.filter,c=i.handler,u="."+t.$options.name+"."+t._uid;if(r=r&&r.call(t)||t.$el,o=o.split(" ").map(function(t){return t+"."+u}).join(" "),e)r.off(o);else{if(h&&!h.call(t))return;c=A(c)?t[c]:b(c,t),l&&(c=n(c,t)),a?r.on(o,A(a)?a:a.call(t),c):r.on(o,c)}}function n(t,e){return function(i){if(i.target===i.currentTarget)return t.call(e,i)}}function s(t,e){return t.every(function(t){return!t||!y(t,e)})}function o(t,e){return D(t)||t===e||a(t)&&a(e)&&t.is(e)}var r=0;t.prototype.props={},t.prototype._init=function(e){e=e||{},e=this.$options=K(this.constructor.options,e,this),this.$el=null,this.$name=t.prefix+k(this.$options.name),this.$props={},this._frames={reads:{},writes:{}},this._uid=r++,this._initData(),this._initMethods(),this._initComputeds(),this._callHook("created"),e.el&&this.$mount(e.el)},t.prototype._initData=function(){var t=this,e=this.$options,i=e.defaults,n=e.data;void 0===n&&(n={});var s=e.args;void 0===s&&(s=[]);var o=e.props;void 0===o&&(o={});var r=e.el;s.length&&re(n)&&(n=n.slice(0,s.length).reduce(function(t,e,i){return S(e)?he(t,e):t[s[i]]=e,t},{}));for(var a in i)t.$props[a]=t[a]=y(n,a)&&!D(n[a])?z(o[a],n[a],r):re(i[a])?i[a].concat():i[a]},t.prototype._initMethods=function(){var t=this,e=this.$options.methods;if(e)for(var i in e)t[i]=b(e[i],t)},t.prototype._initComputeds=function(){var t=this,i=this.$options.computed;if(this._computeds={},i)for(var n in i)e(t,n,i[n])},t.prototype._initProps=function(t){var e=this;this._computeds={},he(this.$props,t||this._getProps());var i=[this.$options.computed,this.$options.methods];for(var n in e.$props)s(i,n)&&(e[n]=e.$props[n])},t.prototype._initEvents=function(t){var e=this,n=this.$options.events;n&&n.forEach(function(n){if(y(n,"handler"))i(e,t,n);else for(var s in n)i(e,t,n[s],s)})},t.prototype._initObserver=function(){var t=this,e=this.$options,i=e.attrs,n=e.props,s=e.el;!this._observer&&n&&i&&ce&&(i=re(i)?i:Object.keys(n).map(function(t){return k(t)}),this._observer=new ce(function(){var e=t._getProps();i.some(function(i){return!o(e[i],t.$props[i])})&&t.$reset(e)}),this._observer.observe(s,{attributes:!0,attributeFilter:i.concat([this.$name,"data-"+this.$name])}))},t.prototype._getProps=function(){var t={},e=this.$options,i=e.args;void 0===i&&(i=[]);var n=e.props;void 0===n&&(n={});var s,o,r=e.el,a=r.getAttribute(this.$name)||r.getAttribute("data-"+this.$name);if(!n)return t;for(s in n)if(o=k(s),r.hasAttribute(o)){var l=z(n[s],r.getAttribute(o),r);if("target"===o&&(!l||0===l.lastIndexOf("_",0)))continue;t[s]=l}if(!a)return t;if("{"===a[0])try{a=JSON.parse(a)}catch(t){console.warn("Invalid JSON."),a={}}else if(i.length&&!~a.indexOf(":")){(h={})[i[0]]=a,a=h;var h}else{var c={};a.split(";").forEach(function(t){var e=t.split(/:(.+)/),i=e[0],n=e[1];i&&n&&(c[i.trim()]=n.trim())}),a=c}for(s in a||{})void 0!==n[o=C(s)]&&(t[o]=z(n[o],a[s],r));return t}}(je),function(t){var e=t.data;t.prototype.$mount=function(t){var i=this.$options.name;t[e]||(t[e]={}),t[e][i]||(t[e][i]=this,this.$options.el=this.$options.el||t,this.$el=Xt(t),this._initProps(),this._callHook("init"),document.documentElement.contains(t)&&this._callConnected())},t.prototype.$emit=function(t){this._callUpdate(t)},t.prototype.$update=function(e,i){t.update(e,this.$options.el,i)},t.prototype.$reset=function(t){this._callDisconnected(),this._initProps(t),this._callConnected()},t.prototype.$destroy=function(t){void 0===t&&(t=!1);var i=this.$options,n=i.el,s=i.name;n&&this._callDisconnected(),this._callHook("destroy"),n&&n[e]&&(delete n[e][s],Object.keys(n[e]).length||delete n[e],t&&this.$el.remove())}}(je),function(t){var e=t.data;t.components={},t.component=function(e,i){var n=C(e);if(S(i))i.name=n,i=t.extend(i);else{if(D(i))return t.components[n];i.options.name=n}return t.components[n]=i,t[n]=function(e,i){function s(e){return t.getComponent(e,n)||new t.components[n]({el:e,data:i||{}})}for(var o=arguments.length,r=Array(o);o--;)r[o]=arguments[o];return S(e)?new t.components[n]({data:e}):t.components[n].options.functional?new t.components[n]({data:[].concat(r)}):e&&e.nodeType?s(e):Xt(e).toArray().map(s)[0]},t._initialized&&!i.options.functional&&Ce.measure(function(){return t[n]("[uk-"+e+"],[data-uk-"+e+"]")}),t.components[n]},t.getComponents=function(t){return t&&(t=a(t)?t[0]:t)&&t[e]||{}},t.getComponent=function(e,i){return t.getComponents(e)[i]},t.connect=function(i){var n;if(i[e])for(n in i[e])i[e][n]._callConnected();for(var s=0;s<i.attributes.length;s++)0!==(n=i.attributes[s].name).lastIndexOf("uk-",0)&&0!==n.lastIndexOf("data-uk-",0)||(n=C(n.replace("data-uk-","").replace("uk-","")),t[n]&&t[n](i))},t.disconnect=function(t){for(var i in t[e])t[e][i]._callDisconnected()}}(je),function(t){function e(t,e,n){(e=i(e,t))&&(Pe?e[0][n].apply(e[0],e.slice(1)):e.slice(1).forEach(function(t){return e[0][n](t)}))}function i(t,e){return A(t[0])&&t.unshift(e),t[0]=P(t[0]).classList,t.forEach(function(e,i){return i>0&&A(e)&&~e.indexOf(" ")&&Array.prototype.splice.apply(t,[i,1].concat(t[i].split(" ")))}),!!(t[1]&&t.length>1)&&t}t.prototype.$addClass=function(){for(var t=[],i=arguments.length;i--;)t[i]=arguments[i];e(this.$options.el,t,"add")},t.prototype.$removeClass=function(){for(var t=[],i=arguments.length;i--;)t[i]=arguments[i];e(this.$options.el,t,"remove")},t.prototype.$hasClass=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return(t=i(t,this.$options.el))&&t[0].contains(t[1])},t.prototype.$toggleClass=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];for(var n=(t=i(t,this.$options.el))&&!A(t[t.length-1])?t.pop():void 0,s=1;s<t.length;s++)t[0]&&He?t[0].toggle(t[s],n):t[0][(D(n)?!t[0].contains(t[s]):n)?"add":"remove"](t[s])}}(je);var Fe,ze,Le={init:function(){this.$addClass(this.$name)}},We={props:{cls:Boolean,animation:"list",duration:Number,origin:String,transition:String,queued:Boolean},defaults:{cls:!1,animation:[!1],duration:200,origin:!1,transition:"linear",queued:!1,initProps:{overflow:"",height:"",paddingTop:"",paddingBottom:"",marginTop:"",marginBottom:""},hideProps:{overflow:"hidden",height:0,paddingTop:0,paddingBottom:0,marginTop:0,marginBottom:0}},computed:{hasAnimation:function(){return!!this.animation[0]},hasTransition:function(){return this.hasAnimation&&!0===this.animation[0]}},methods:{toggleElement:function(t,e,i){var n,s=this,o=document.body,r=o.scrollTop,a=function(t){return $.all(t.toArray().map(function(t){return s._toggleElement(t,e,i)})).then(null,function(){})},l=function(t){var e=a(t);return s._queued=null,o.scrollTop=r,e};return t=Xt(t),!this.hasAnimation||!this.queued||t.length<2?a(t):this._queued?l(t.not(this._queued)):(this._queued=t.not(n=t.filter(function(t,e){return s.isToggled(e)})),a(n).then(function(){return s._queued&&l(s._queued)}))},toggleNow:function(t,e){var i=this;return $.all(Xt(t).toArray().map(function(t){return i._toggleElement(t,e,!1)})).then(null,function(){})},isToggled:function(t){return t=t&&Xt(t)||this.$el,this.cls?t.hasClass(this.cls.split(" ")[0]):!t.attr("hidden")},updateAria:function(t){!1===this.cls&&t.attr("aria-hidden",!this.isToggled(t))},_toggleElement:function(e,i,n){var s=this;if(e=Xt(e),ee.inProgress(e))return ee.cancel(e).then(function(){return s._toggleElement(e,i,n)});i="boolean"==typeof i?i:!this.isToggled(e);var o=t.Event("before"+(i?"show":"hide"));if(e.trigger(o,[this]),!1===o.result)return $.reject();var r=(!1!==n&&this.hasAnimation?this.hasTransition?this._toggleHeight:this._toggleAnimation:this._toggleImmediate)(e,i);return e.trigger(i?"show":"hide",[this]),r.then(function(){return e.trigger(i?"shown":"hidden",[s])})},_toggle:function(t,e){t=Xt(t),this.cls?t.toggleClass(this.cls,~this.cls.indexOf(" ")?void 0:e):t.attr("hidden",!e),t.find("[autofocus]:visible").focus(),this.updateAria(t),je.update(null,t)},_toggleImmediate:function(t,e){return this._toggle(t,e),$.resolve()},_toggleHeight:function(t,e){var i,n=this,s=te.inProgress(t),o=parseFloat(t.children().first().css("margin-top"))+parseFloat(t.children().last().css("margin-bottom")),r=t[0].offsetHeight?t.height()+(s?0:o):0;return te.cancel(t).then(function(){return n.isToggled(t)||n._toggle(t,!0),t.height(""),$(function(a){return ue(function(){i=t.height()+(s?0:o),t.height(r),(e?te.start(t,he(n.initProps,{overflow:"hidden",height:i}),Math.round(n.duration*(1-r/i)),n.transition):te.start(t,n.hideProps,Math.round(n.duration*(r/i)),n.transition).then(function(){n._toggle(t,!1),t.css(n.initProps)})).then(a)})})})},_toggleAnimation:function(t,e){var i=this;return e?(this._toggle(t,!0),ee.in(t,this.animation[0],this.duration,this.origin)):ee.out(t,this.animation[1]||this.animation[0],this.duration,this.origin).then(function(){return i._toggle(t,!1)})}}},Re={mixins:[Le,We],props:{clsPanel:String,selClose:String,escClose:Boolean,bgClose:Boolean,stack:Boolean,container:Boolean},defaults:{cls:"uk-open",escClose:!0,bgClose:!0,overlay:!0,stack:!1,container:!0},computed:{body:function(){return Xt(document.body)},panel:function(){return this.$el.find("."+this.clsPanel)},container:function(){return P(!0===this.$props.container&&je.container||this.$props.container&&B(this.$props.container))},transitionElement:function(){return this.panel},transitionDuration:function(){return L(this.transitionElement.css("transition-duration"))}},events:[{name:"click",delegate:function(){return this.selClose},handler:function(t){t.preventDefault(),this.hide()}},{name:"toggle",handler:function(t){t.preventDefault(),this.toggle()}},{name:"beforeshow",self:!0,handler:function(){var t=this;if(this.isToggled())return!1;var e=Fe&&Fe!==this&&Fe;if(Fe=this,e){if(!this.stack)return e.hide().then(this.show),!1;this.prev=e}else ue(function(){return ut(t.$options.name)});e||(this.scrollbarWidth=window.innerWidth-Zt[0].offsetWidth,this.body.css("overflow-y",this.scrollbarWidth&&this.overlay?"scroll":"")),Zt.addClass(this.clsPage)}},{name:"beforehide",self:!0,handler:function(){if(!this.isToggled())return!1;(Fe=Fe&&Fe!==this&&Fe||this.prev)||dt(this.$options.name)}},{name:"hidden",self:!0,handler:function(){Fe||(Zt.removeClass(this.clsPage),this.body.css("overflow-y",""))}}],methods:{toggle:function(){return this.isToggled()?this.hide():this.show()},show:function(){var t=this;return this.container&&!this.$el.parent().is(this.container)?(this.container.appendChild(this.$el[0]),$(function(e){return ue(function(){return e(t.show())})})):this.toggleNow(this.$el,!0)},hide:function(){return this.toggleNow(this.$el,!1)},getActive:function(){return Fe},_toggleImmediate:function(t,e){var i=this;return this._toggle(t,e),this.transitionDuration?$(function(t,e){i._transition&&(i.transitionElement.off($e,i._transition.handler),i._transition.reject()),i._transition={reject:e,handler:function(){t(),i._transition=null}},i.transitionElement.one($e,i._transition.handler)}):$.resolve()}}},qe={props:{pos:String,offset:null,flip:Boolean,clsPos:String},defaults:{pos:Kt?"bottom-right":"bottom-left",flip:!0,offset:!1,clsPos:""},computed:{pos:function(){return(this.$props.pos+(~this.$props.pos.indexOf("-")?"":"-center")).split("-")},dir:function(){return this.pos[0]},align:function(){return this.pos[1]}},methods:{positionAt:function(t,e,i){c(t,this.clsPos+"-(top|bottom|left|right)(-[a-z]+)?").css({top:"",left:""});var n=M(this.offset)||0,s=this.getAxis(),o=tt(t,e,"x"===s?at(this.dir)+" "+this.align:this.align+" "+at(this.dir),"x"===s?this.dir+" "+this.align:this.align+" "+this.dir,"x"===s?""+("left"===this.dir?-1*n:n):" "+("top"===this.dir?-1*n:n),null,this.flip,i);this.dir="x"===s?o.target.x:o.target.y,this.align="x"===s?o.target.y:o.target.x,t.toggleClass(this.clsPos+"-"+this.dir+"-"+this.align,!1===this.offset)},getAxis:function(){return"top"===this.dir||"bottom"===this.dir?"y":"x"}}},Ye='<svg width="14" height="14" viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg"><line fill="none" stroke="#000" stroke-width="1.1" x1="1" y1="1" x2="13" y2="13"></line><line fill="none" stroke="#000" stroke-width="1.1" x1="13" y1="1" x2="1" y2="13"></line></svg>',Ue='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><line fill="none" stroke="#000" stroke-width="1.4" x1="1" y1="1" x2="19" y2="19"></line><line fill="none" stroke="#000" stroke-width="1.4" x1="19" y1="1" x2="1" y2="19"></line></svg>',Ve='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect x="9" y="4" width="1" height="11"></rect><rect x="4" y="9" width="11" height="1"></rect></svg>',Xe='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect y="9" width="20" height="2"></rect><rect y="3" width="20" height="2"></rect><rect y="15" width="20" height="2"></rect></svg>',Ge='<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><rect x="19" y="0" width="1" height="40"></rect><rect x="0" y="19" width="40" height="1"></rect></svg>',Qe='<svg width="7" height="12" viewBox="0 0 7 12" xmlns="http://www.w3.org/2000/svg"><polyline fill="none" stroke="#000" stroke-width="1.2" points="1 1 6 6 1 11"></polyline></svg>',Je='<svg width="7" height="12" viewBox="0 0 7 12" xmlns="http://www.w3.org/2000/svg"><polyline fill="none" stroke="#000" stroke-width="1.2" points="6 1 1 6 6 11"></polyline></svg>',Ze='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle fill="none" stroke="#000" stroke-width="1.1" cx="9" cy="9" r="7"></circle><path fill="none" stroke="#000" stroke-width="1.1" d="M14,14 L18,18 L14,14 Z"></path></svg>',Ke='<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><circle fill="none" stroke="#000" stroke-width="1.8" cx="17.5" cy="17.5" r="16.5"></circle><line fill="none" stroke="#000" stroke-width="1.8" x1="38" y1="39" x2="29" y2="30"></line></svg>',ti='<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><circle fill="none" stroke="#000" stroke-width="1.1" cx="10.5" cy="10.5" r="9.5"/><line fill="none" stroke="#000" stroke-width="1.1" x1="23" y1="23" x2="17" y2="17"/></svg>',ei='<svg width="11" height="20" viewBox="0 0 11 20" xmlns="http://www.w3.org/2000/svg"><polyline fill="none" stroke="#000" stroke-width="1.2" points="1 1 10 10 1 19"></polyline></svg>',ii='<svg width="18" height="34" viewBox="0 0 18 34" xmlns="http://www.w3.org/2000/svg"><polyline fill="none" stroke="#000" stroke-width="1.4" points="1 1 17 17 1 33"></polyline></svg>',ni='<svg width="11" height="20" viewBox="0 0 11 20" xmlns="http://www.w3.org/2000/svg"><polyline fill="none" stroke="#000" stroke-width="1.2" points="10 1 1 10 10 19"></polyline></svg>',si='<svg width="18" height="34" viewBox="0 0 18 34" xmlns="http://www.w3.org/2000/svg"><polyline fill="none" stroke="#000" stroke-width="1.4" points="17 1 1 17 17 33"></polyline></svg>',oi='<svg width="30" height="30" viewBox="0 0 30 30" xmlns="http://www.w3.org/2000/svg"><circle fill="none" stroke="#000" cx="15" cy="15" r="14"></circle></svg>',ri='<svg width="18" height="10" viewBox="0 0 18 10" xmlns="http://www.w3.org/2000/svg"><polyline fill="none" stroke="#000" stroke-width="1.2" points="1 9 9 1 17 9 "></polyline></svg>',ai={},li=new DOMParser;return je.version="3.0.0-beta.25",function(t){t.mixin.class=Le,t.mixin.modal=Re,t.mixin.position=qe,t.mixin.togglable=We}(je),function(t){var e=0,i=0;n(window,"load resize",t.update),n(window,"scroll",function(i){i.dir=e<window.pageYOffset?"down":"up",e=window.pageYOffset,t.update(i),Ce.flush()}),n(document,xe,function(t){var e=t.target;(q(e,"animationName")||"").match(/^uk-.*(left|right)/)&&(i++,document.body.style.overflowX="hidden",setTimeout(function(){--i||(document.body.style.overflowX="")},L(q(e,"animationDuration"))+100))},!0),t.use(jt),t.use(ft),t.use(pt),t.use(gt),t.use(mt),t.use(vt),t.use(wt),t.use($t),t.use(xt),t.use(kt),t.use(Tt),t.use(bt),t.use(yt),t.use(Ft),t.use(_t),t.use(Et),t.use(St),t.use(At),t.use(Ot),t.use(Dt),t.use(It),t.use(Nt),t.use(Bt),t.use(Pt),t.use(Ct),t.use(Ht),t.use(Mt)}(je),je.use(zt),je.use(Lt),je.use(Wt),je.use(Rt),je.use(qt),je.use(Yt),je.use(Ut),je.use(Vt),function(t){function e(){s(document.body,r),Ce.flush(),new ce(function(e){return e.forEach(function(e){for(var i=e.addedNodes,n=e.removedNodes,o=e.target,l=0;l<i.length;l++)s(i[l],r);for(l=0;l<n.length;l++)s(n[l],a);t.update("update",o,!0)})}).observe(o,{childList:!0,subtree:!0,characterData:!0,attributes:!0,attributeFilter:["href"]}),t._initialized=!0}function s(t,e){if(t.nodeType===Node.ELEMENT_NODE&&!t.hasAttribute("uk-no-boot"))for(e(t),t=t.firstChild;t;){var i=t.nextSibling;s(t,e),t=i}}var o=document.documentElement,r=t.connect,a=t.disconnect;ce?document.body?e():new ce(function(){document.body&&(this.disconnect(),e())}).observe(o,{childList:!0,subtree:!0}):i(function(){s(document.body,r),n(o,"DOMNodeInserted",function(t){return s(t.target,r)}),n(o,"DOMNodeRemoved",function(t){return s(t.target,a)})})}(je),je});