text: /*! UIkit 3.2.6 | http://www.getuikit.com | (c) 2014 - 2019 YOOtheme | MIT License */
  
  !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("uikit-util")):"function"==typeof define&&define.amd?define("uikitlightbox_panel",["uikit-util"],e):(t=t||self).UIkitLightbox_panel=e(t.UIkit.util)}(this,function(w){"use strict";var t={slide:{show:function(t){return[{transform:i(-100*t)},{transform:i()}]},percent:function(t){return e=t,Math.abs(w.css(e,"transform").split(",")[4]/e.offsetWidth)||0;var e},translate:function(t,e){return[{transform:i(-100*e*t)},{transform:i(100*e*(1-t))}]}}};function i(t,e){return void 0===t&&(t=0),void 0===e&&(e="%"),t+=t?e:"",w.isIE?"translateX("+t+")":"translate3d("+t+", 0, 0)"}function e(t){return"scale3d("+t+", "+t+", 1)"}var n=w.assign({},t,{fade:{show:function(){return[{opacity:0},{opacity:1}]},percent:function(t){return 1-w.css(t,"opacity")},translate:function(t){return[{opacity:1-t},{opacity:t}]}},scale:{show:function(){return[{opacity:0,transform:e(.8)},{opacity:1,transform:e(1)}]},percent:function(t){return 1-w.css(t,"opacity")},translate:function(t){return[{opacity:1-t,transform:e(1-.2*t)},{opacity:t,transform:e(.8+.2*t)}]}}}),s={props:{container:Boolean},data:{container:!0},computed:{container:function(t){var e=t.container;return!0===e&&this.$container||e&&w.$(e)}}},o={props:{cls:Boolean,animation:"list",duration:Number,origin:String,transition:String,queued:Boolean},data:{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(t){return!!t.animation[0]},hasTransition:function(t){var e=t.animation;return this.hasAnimation&&!0===e[0]}},methods:{toggleElement:function(l,u,d){var c=this;return new w.Promise(function(t){l=w.toNodes(l);function e(t){return w.Promise.all(t.map(function(t){return c._toggleElement(t,u,d)}))}var i;if(c.queued&&w.isUndefined(d)&&w.isUndefined(u)&&c.hasAnimation&&!(l.length<2)){var n=l.filter(function(t){return c.isToggled(t)}),s=l.filter(function(t){return!w.includes(n,t)}),o=document.body,r=o.scrollTop,a=n[0],h=w.Animation.inProgress(a)&&w.hasClass(a,"uk-animation-leave")||w.Transition.inProgress(a)&&"0px"===a.style.height;i=e(n),h||(i=i.then(function(){var t=e(s);return o.scrollTop=r,t}))}else i=e(l);i.then(t,w.noop)})},toggleNow:function(t,e){return this.toggleElement(t,e,!1)},isToggled:function(t){var e=w.toNodes(t||this.$el);return this.cls?w.hasClass(e,this.cls.split(" ")[0]):!w.hasAttr(e,"hidden")},updateAria:function(t){!1===this.cls&&w.attr(t,"aria-hidden",!this.isToggled(t))},_toggleElement:function(t,e,i){var n=this;if(e=w.isBoolean(e)?e:w.Animation.inProgress(t)?w.hasClass(t,"uk-animation-leave"):w.Transition.inProgress(t)?"0px"===t.style.height:!this.isToggled(t),!w.trigger(t,"before"+(e?"show":"hide"),[this]))return w.Promise.reject();var s,o,r,a,h,l,u,d,c,f,g,m,p=(w.isFunction(i)?i:!1!==i&&this.hasAnimation?this.hasTransition?(u=(l=this).isToggled,d=l.duration,c=l.initProps,f=l.hideProps,g=l.transition,m=l._toggle,function(t,e){var i=w.Transition.inProgress(t),n=t.hasChildNodes?w.toFloat(w.css(t.firstElementChild,"marginTop"))+w.toFloat(w.css(t.lastElementChild,"marginBottom")):0,s=w.isVisible(t)?w.height(t)+(i?0:n):0;w.Transition.cancel(t),u(t)||m(t,!0),w.height(t,""),w.fastdom.flush();var o=w.height(t)+(i?0:n);return w.height(t,s),(e?w.Transition.start(t,w.assign({},c,{overflow:"hidden",height:o}),Math.round(d*(1-s/o)),g):w.Transition.start(t,f,Math.round(d*(s/o)),g).then(function(){return m(t,!1)})).then(function(){return w.css(t,c)})}):(o=(s=this).animation,r=s.duration,a=s.origin,h=s._toggle,function(t,e){return w.Animation.cancel(t),e?(h(t,!0),w.Animation.in(t,o[0],r,a)):w.Animation.out(t,o[1]||o[0],r,a).then(function(){return h(t,!1)})}):this._toggle)(t,e);w.trigger(t,e?"show":"hide",[this]);function v(){w.trigger(t,e?"shown":"hidden",[n]),n.$update(t)}return p?p.then(v):w.Promise.resolve(v())},_toggle:function(t,e){var i;t&&(e=Boolean(e),this.cls?(i=w.includes(this.cls," ")||e!==w.hasClass(t,this.cls))&&w.toggleClass(t,this.cls,w.includes(this.cls," ")?void 0:e):(i=e===w.hasAttr(t,"hidden"))&&w.attr(t,"hidden",e?null:""),w.$$("[autofocus]",t).some(function(t){return w.isVisible(t)?t.focus()||!0:t.blur()}),this.updateAria(t),i&&this.$update(t))}}};var r=[];function a(t){var r=t.transitionElement,a=t._toggle;return function(s,o){return new w.Promise(function(i,n){return w.once(s,"show hide",function(){s._reject&&s._reject(),s._reject=n,a(s,o);var t=w.once(r,"transitionstart",function(){w.once(r,"transitionend transitioncancel",i,{self:!0}),clearTimeout(e)},{self:!0}),e=setTimeout(function(){t(),i()},w.toMs(w.css(r,"transitionDuration")))})})}}function d(t,e,i){w.trigger(t,w.createEvent(e,!1,!1,i))}var h={mixins:[s,{mixins:[{connected:function(){w.hasClass(this.$el,this.$name)||w.addClass(this.$el,this.$name)}},s,o],props:{selPanel:String,selClose:String,escClose:Boolean,bgClose:Boolean,stack:Boolean},data:{cls:"uk-open",escClose:!0,bgClose:!0,overlay:!0,stack:!1},computed:{panel:function(t,e){var i=t.selPanel;return w.$(i,e)},transitionElement:function(){return this.panel},bgClose:function(t){return t.bgClose&&this.panel}},beforeDisconnect:function(){this.isToggled()&&this.toggleNow(this.$el,!1)},events:[{name:"click",delegate:function(){return this.selClose},handler:function(t){t.preventDefault(),this.hide()}},{name:"toggle",self:!0,handler:function(t){t.defaultPrevented||(t.preventDefault(),this.toggle())}},{name:"beforeshow",self:!0,handler:function(t){if(w.includes(r,this))return!1;!this.stack&&r.length?(w.Promise.all(r.map(function(t){return t.hide()})).then(this.show),t.preventDefault()):r.push(this)}},{name:"show",self:!0,handler:function(){var t,e,i,n,s=this;w.width(window)-w.width(document)&&this.overlay&&w.css(document.body,"overflowY","scroll"),w.addClass(document.documentElement,this.clsPage),this.bgClose&&w.once(this.$el,"hide",(t=document,e="click",i=function(t){var e=t.defaultPrevented,i=t.target,n=w.last(r);e||n!==s||n.overlay&&!w.within(i,n.$el)||w.within(i,n.panel)||n.hide()},n=w.once(t,e,function(){return n=w.on(t,e,i)},!0),function(){return n()}),{self:!0}),this.escClose&&w.once(this.$el,"hide",w.on(document,"keydown",function(t){var e=w.last(r);27===t.keyCode&&e===s&&(t.preventDefault(),e.hide())}),{self:!0})}},{name:"hidden",self:!0,handler:function(){var e=this;r.splice(r.indexOf(this),1),r.length||w.css(document.body,"overflowY",""),r.some(function(t){return t.clsPage===e.clsPage})||w.removeClass(document.documentElement,this.clsPage)}}],methods:{toggle:function(){return this.isToggled()?this.hide():this.show()},show:function(){var e=this;return this.container&&this.$el.parentNode!==this.container?(w.append(this.container,this.$el),new w.Promise(function(t){return requestAnimationFrame(function(){return e.show().then(t)})})):this.toggleElement(this.$el,!0,a(this))},hide:function(){return this.toggleElement(this.$el,!1,a(this))}}},o,{mixins:[{mixins:[{props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected:function(){this.autoplay&&this.startAutoplay()},disconnected:function(){this.stopAutoplay()},update:function(){w.attr(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el:document,filter:function(){return this.autoplay},handler:function(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay:function(){var t=this;this.stopAutoplay(),this.interval=setInterval(function(){return(!t.draggable||!w.$(":focus",t.$el))&&(!t.pauseOnHover||!w.matches(t.$el,":hover"))&&!t.stack.length&&t.show("next")},this.autoplayInterval)},stopAutoplay:function(){this.interval&&clearInterval(this.interval)}}},{props:{draggable:Boolean},data:{draggable:!0,threshold:10},created:function(){var n=this;["start","move","end"].forEach(function(t){var i=n[t];n[t]=function(t){var e=w.getEventPos(t).x*(w.isRtl?-1:1);n.prevPos=e!==n.pos?n.pos:n.prevPos,n.pos=e,i(t)}})},events:[{name:w.pointerDown,delegate:function(){return this.selSlides},handler:function(t){var e;!this.draggable||!w.isTouch(t)&&(!(e=t.target).children.length&&e.childNodes.length)||w.closest(t.target,w.selInput)||0<t.button||this.length<2||this.start(t)}},{name:"touchmove",passive:!1,handler:"move",delegate:function(){return this.selSlides}},{name:"dragstart",handler:function(t){t.preventDefault()}}],methods:{start:function(){var t=this;this.drag=this.pos,this._transitioner?(this.percent=this._transitioner.percent(),this.drag+=this._transitioner.getDistance()*this.percent*this.dir,this._transitioner.cancel(),this._transitioner.translate(this.percent),this.dragging=!0,this.stack=[]):this.prevIndex=this.index;var e="touchmove"!==w.pointerMove?w.on(document,w.pointerMove,this.move,{passive:!1}):w.noop;this.unbindMove=function(){e(),t.unbindMove=null},w.on(window,"scroll",this.unbindMove),w.on(document,w.pointerUp,this.end,!0),w.css(this.list,"userSelect","none")},move:function(t){var e=this;if(this.unbindMove){var i=this.pos-this.drag;if(!(0==i||this.prevPos===this.pos||!this.dragging&&Math.abs(i)<this.threshold)){w.css(this.list,"pointerEvents","none"),t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=i<0?1:-1;for(var n=this.slides,s=this.prevIndex,o=Math.abs(i),r=this.getIndex(s+this.dir,s),a=this._getDistance(s,r)||n[s].offsetWidth;r!==s&&a<o;)this.drag-=a*this.dir,s=r,o-=a,r=this.getIndex(s+this.dir,s),a=this._getDistance(s,r)||n[s].offsetWidth;this.percent=o/a;var h,l=n[s],u=n[r],d=this.index!==r,c=s===r;[this.index,this.prevIndex].filter(function(t){return!w.includes([r,s],t)}).forEach(function(t){w.trigger(n[t],"itemhidden",[e]),c&&(h=!0,e.prevIndex=s)}),(this.index===s&&this.prevIndex!==s||h)&&w.trigger(n[this.index],"itemshown",[this]),d&&(this.prevIndex=s,this.index=r,c||w.trigger(l,"beforeitemhide",[this]),w.trigger(u,"beforeitemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),l,!c&&u),d&&(c||w.trigger(l,"itemhide",[this]),w.trigger(u,"itemshow",[this]))}}},end:function(){if(w.off(window,"scroll",this.unbindMove),this.unbindMove&&this.unbindMove(),w.off(document,w.pointerUp,this.end,!0),this.dragging)if(this.dragging=null,this.index===this.prevIndex)this.percent=1-this.percent,this.dir*=-1,this._show(!1,this.index,!0),this._transitioner=null;else{var t=(w.isRtl?this.dir*(w.isRtl?1:-1):this.dir)<0==this.prevPos>this.pos;this.index=t?this.index:this.prevIndex,t&&(this.percent=1-this.percent),this.show(0<this.dir&&!t||this.dir<0&&t?"next":"previous",!0)}w.css(this.list,{userSelect:"",pointerEvents:""}),this.drag=this.percent=null}}},{data:{selNav:!1},computed:{nav:function(t,e){var i=t.selNav;return w.$(i,e)},selNavItem:function(t){var e=t.attrItem;return"["+e+"],[data-"+e+"]"},navItems:function(t,e){return w.$$(this.selNavItem,e)}},update:{write:function(){var i=this;this.nav&&this.length!==this.nav.children.length&&w.html(this.nav,this.slides.map(function(t,e){return"<li "+i.attrItem+'="'+e+'"><a href="#"></a></li>'}).join("")),w.toggleClass(w.$$(this.selNavItem,this.$el).concat(this.nav),"uk-hidden",!this.maxIndex),this.updateNav()},events:["resize"]},events:[{name:"click",delegate:function(){return this.selNavItem},handler:function(t){t.preventDefault(),this.show(w.data(t.current,this.attrItem))}},{name:"itemshow",handler:"updateNav"}],methods:{updateNav:function(){var i=this,n=this.getValidIndex();this.navItems.forEach(function(t){var e=w.data(t,i.attrItem);w.toggleClass(t,i.clsActive,w.toNumber(e)===n),w.toggleClass(t,"uk-invisible",i.finite&&("previous"===e&&0===n||"next"===e&&n>=i.maxIndex))})}}}],props:{clsActivated:Boolean,easing:String,index:Number,finite:Boolean,velocity:Number,selSlides:String},data:function(){return{easing:"ease",finite:!1,velocity:1,index:0,prevIndex:-1,stack:[],percent:0,clsActive:"uk-active",clsActivated:!1,Transitioner:!1,transitionOptions:{}}},connected:function(){this.prevIndex=-1,this.index=this.getValidIndex(this.index),this.stack=[]},disconnected:function(){w.removeClass(this.slides,this.clsActive)},computed:{duration:function(t,e){var i=t.velocity;return.5*(e.offsetWidth/i)+300},list:function(t,e){var i=t.selList;return w.$(i,e)},maxIndex:function(){return this.length-1},selSlides:function(t){return t.selList+" "+(t.selSlides||"> *")},slides:{get:function(){return w.$$(this.selSlides,this.$el)},watch:function(){this.$reset()}},length:function(){return this.slides.length}},events:{itemshown:function(){this.$update(this.list)}},methods:{show:function(t,e){var i=this;if(void 0===e&&(e=!1),!this.dragging&&this.length){var n=this.stack,s=e?0:n.length,o=function(){n.splice(s,1),n.length&&i.show(n.shift(),!0)};if(n[e?"unshift":"push"](t),!e&&1<n.length)2===n.length&&this._transitioner.forward(Math.min(this.duration,200));else{var r=this.index,a=w.hasClass(this.slides,this.clsActive)&&this.slides[r],h=this.getIndex(t,this.index),l=this.slides[h];if(a!==l){var u,d;if(this.dir=(d=r,"next"===(u=t)?1:"previous"===u?-1:u<d?-1:1),this.prevIndex=r,this.index=h,a&&w.trigger(a,"beforeitemhide",[this]),!w.trigger(l,"beforeitemshow",[this,a]))return this.index=this.prevIndex,void o();var c=this._show(a,l,e).then(function(){return a&&w.trigger(a,"itemhidden",[i]),w.trigger(l,"itemshown",[i]),new w.Promise(function(t){w.fastdom.write(function(){n.shift(),n.length?i.show(n.shift(),!0):i._transitioner=null,t()})})});return a&&w.trigger(a,"itemhide",[this]),w.trigger(l,"itemshow",[this]),c}o()}}},getIndex:function(t,e){return void 0===t&&(t=this.index),void 0===e&&(e=this.index),w.clamp(w.getIndex(t,this.slides,e,this.finite),0,this.maxIndex)},getValidIndex:function(t,e){return void 0===t&&(t=this.index),void 0===e&&(e=this.prevIndex),this.getIndex(t,e)},_show:function(t,e,i){if(this._transitioner=this._getTransitioner(t,e,this.dir,w.assign({easing:i?e.offsetWidth<600?"cubic-bezier(0.25, 0.46, 0.45, 0.94)":"cubic-bezier(0.165, 0.84, 0.44, 1)":this.easing},this.transitionOptions)),!i&&!t)return this._translate(1),w.Promise.resolve();var n=this.stack.length;return this._transitioner[1<n?"forward":"show"](1<n?Math.min(this.duration,75+75/(n-1)):this.duration,this.percent)},_getDistance:function(t,e){return this._getTransitioner(t,t!==e&&e).getDistance()},_translate:function(t,e,i){void 0===e&&(e=this.prevIndex),void 0===i&&(i=this.index);var n=this._getTransitioner(e!==i&&e,i);return n.translate(t),n},_getTransitioner:function(t,e,i,n){return void 0===t&&(t=this.prevIndex),void 0===e&&(e=this.index),void 0===i&&(i=this.dir||1),void 0===n&&(n=this.transitionOptions),new this.Transitioner(w.isNumber(t)?this.slides[t]:t,w.isNumber(e)?this.slides[e]:e,i*(w.isRtl?-1:1),n)}}}],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:t,Transitioner:function(o,r,a,t){var e=t.animation,h=t.easing,i=e.percent,n=e.translate,s=e.show;void 0===s&&(s=w.noop);var l=s(a),u=new w.Deferred;return{dir:a,show:function(t,e,i){var n=this;void 0===e&&(e=0);var s=i?"linear":h;return t-=Math.round(t*w.clamp(e,-1,1)),this.translate(e),d(r,"itemin",{percent:e,duration:t,timing:s,dir:a}),d(o,"itemout",{percent:1-e,duration:t,timing:s,dir:a}),w.Promise.all([w.Transition.start(r,l[1],t,s),w.Transition.start(o,l[0],t,s)]).then(function(){n.reset(),u.resolve()},w.noop),u.promise},stop:function(){return w.Transition.stop([r,o])},cancel:function(){w.Transition.cancel([r,o])},reset:function(){for(var t in l[0])w.css([r,o],t,"")},forward:function(t,e){return void 0===e&&(e=this.percent()),w.Transition.cancel([r,o]),this.show(t,e,!0)},translate:function(t){this.reset();var e=n(t,a);w.css(r,e[1]),w.css(o,e[0]),d(r,"itemtranslatein",{percent:t,dir:a}),d(o,"itemtranslateout",{percent:1-t,dir:a})},percent:function(){return i(o||r,r,a)},getDistance:function(){return o&&o.offsetWidth}}}},computed:{animation:function(t){var e=t.animation,i=t.Animations;return w.assign(e in i?i[e]:i.slide,{name:e})},transitionOptions:function(){return{animation:this.animation}}},events:{"itemshow itemhide itemshown itemhidden":function(t){var e=t.target;this.$update(e)},beforeitemshow:function(t){var e=t.target;w.addClass(e,this.clsActive)},itemshown:function(t){var e=t.target;w.addClass(e,this.clsActivated)},itemhidden:function(t){var e=t.target;w.removeClass(e,this.clsActive,this.clsActivated)}}}],functional:!0,props:{delayControls:Number,preload:Number,videoAutoplay:Boolean,template:String},data:function(){return{preload:1,videoAutoplay:!1,delayControls:3e3,items:[],cls:"uk-open",clsPage:"uk-lightbox-page",selList:".uk-lightbox-items",attrItem:"uk-lightbox-item",selClose:".uk-close-large",selCaption:".uk-lightbox-caption",pauseOnHover:!1,velocity:2,Animations:n,template:'<div class="uk-lightbox uk-overflow-hidden"> <ul class="uk-lightbox-items"></ul> <div class="uk-lightbox-toolbar uk-position-top uk-text-right uk-transition-slide-top uk-transition-opaque"> <button class="uk-lightbox-toolbar-icon uk-close-large" type="button" uk-close></button> </div> <a class="uk-lightbox-button uk-position-center-left uk-position-medium uk-transition-fade" href="#" uk-slidenav-previous uk-lightbox-item="previous"></a> <a class="uk-lightbox-button uk-position-center-right uk-position-medium uk-transition-fade" href="#" uk-slidenav-next uk-lightbox-item="next"></a> <div class="uk-lightbox-toolbar uk-lightbox-caption uk-position-bottom uk-text-center uk-transition-slide-bottom uk-transition-opaque"></div> </div>'}},created:function(){var t=w.$(this.template),e=w.$(this.selList,t);this.items.forEach(function(){return w.append(e,"<li></li>")}),this.$mount(w.append(this.container,t))},computed:{caption:function(t,e){t.selCaption;return w.$(".uk-lightbox-caption",e)}},events:[{name:w.pointerMove+" "+w.pointerDown+" keydown",handler:"showControls"},{name:"click",self:!0,delegate:function(){return this.selSlides},handler:function(t){t.defaultPrevented||this.hide()}},{name:"shown",self:!0,handler:function(){this.showControls()}},{name:"hide",self:!0,handler:function(){this.hideControls(),w.removeClass(this.slides,this.clsActive),w.Transition.stop(this.slides)}},{name:"hidden",self:!0,handler:function(){this.$destroy(!0)}},{name:"keyup",el:document,handler:function(t){if(this.isToggled(this.$el))switch(t.keyCode){case 37:this.show("previous");break;case 39:this.show("next")}}},{name:"beforeitemshow",handler:function(t){this.isToggled()||(this.draggable=!1,t.preventDefault(),this.toggleNow(this.$el,!0),this.animation=n.scale,w.removeClass(t.target,this.clsActive),this.stack.splice(1,0,this.index))}},{name:"itemshow",handler:function(t){var e=t.target,i=w.index(e),n=this.getItem(i).caption;w.css(this.caption,"display",n?"":"none"),w.html(this.caption,n);for(var s=0;s<=this.preload;s++)this.loadItem(this.getIndex(i+s)),this.loadItem(this.getIndex(i-s))}},{name:"itemshown",handler:function(){this.draggable=this.$props.draggable}},{name:"itemload",handler:function(t,s){var o,r=this,e=s.source,i=s.type,n=s.alt;if(this.setItem(s,"<span uk-spinner></span>"),e)if("image"===i||e.match(/\.(jp(e)?g|png|gif|svg|webp)($|\?)/i))w.getImage(e).then(function(t){return r.setItem(s,'<img width="'+t.width+'" height="'+t.height+'" src="'+e+'" alt="'+(n||"")+'">')},function(){return r.setError(s)});else if("video"===i||e.match(/\.(mp4|webm|ogv)($|\?)/i)){var a=w.$("<video controls playsinline"+(s.poster?' poster="'+s.poster+'"':"")+' uk-video="'+this.videoAutoplay+'"></video>');w.attr(a,"src",e),w.once(a,"error loadedmetadata",function(t){"error"===t?r.setError(s):(w.attr(a,{width:a.videoWidth,height:a.videoHeight}),r.setItem(s,a))})}else if("iframe"===i||e.match(/\.(html|php)($|\?)/i))this.setItem(s,'<iframe class="uk-lightbox-iframe" src="'+e+'" frameborder="0" allowfullscreen></iframe>');else if(o=e.match(/\/\/.*?youtube(-nocookie)?\.[a-z]+\/watch\?v=([^&\s]+)/)||e.match(/()youtu\.be\/(.*)/)){var h=o[2],l=function(t,e){return void 0===t&&(t=640),void 0===e&&(e=450),r.setItem(s,u("https://www.youtube"+(o[1]||"")+".com/embed/"+h,t,e,r.videoAutoplay))};w.getImage("https://img.youtube.com/vi/"+h+"/maxresdefault.jpg").then(function(t){var e=t.width,i=t.height;120===e&&90===i?w.getImage("https://img.youtube.com/vi/"+h+"/0.jpg").then(function(t){var e=t.width,i=t.height;return l(e,i)},l):l(e,i)},l)}else(o=e.match(/(\/\/.*?)vimeo\.[a-z]+\/([0-9]+).*?/))&&w.ajax("https://vimeo.com/api/oembed.json?maxwidth=1920&url="+encodeURI(e),{responseType:"json",withCredentials:!1}).then(function(t){var e=t.response,i=e.height,n=e.width;return r.setItem(s,u("https://player.vimeo.com/video/"+o[2],n,i,r.videoAutoplay))},function(){return r.setError(s)})}}],methods:{loadItem:function(t){void 0===t&&(t=this.index);var e=this.getItem(t);e.content||w.trigger(this.$el,"itemload",[e])},getItem:function(t){return void 0===t&&(t=this.index),this.items[t]||{}},setItem:function(t,e){w.assign(t,{content:e});var i=w.html(this.slides[this.items.indexOf(t)],e);w.trigger(this.$el,"itemloaded",[this,i]),this.$update(i)},setError:function(t){this.setItem(t,'<span uk-icon="icon: bolt; ratio: 2"></span>')},showControls:function(){clearTimeout(this.controlsTimer),this.controlsTimer=setTimeout(this.hideControls,this.delayControls),w.addClass(this.$el,"uk-active","uk-transition-active")},hideControls:function(){w.removeClass(this.$el,"uk-active","uk-transition-active")}}};function u(t,e,i,n){return'<iframe src="'+t+'" width="'+e+'" height="'+i+'" style="max-width: 100%; box-sizing: border-box;" frameborder="0" allowfullscreen uk-video="autoplay: '+n+'" uk-responsive></iframe>'}return"undefined"!=typeof window&&window.UIkit&&window.UIkit.component("lightboxPanel",h),h});