diff --git a/asset-manifest.json b/asset-manifest.json index ff9076d..34235d0 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,13 +1,13 @@ { "files": { "main.css": "/my-waifu-list/static/css/main.b1728d95.css", - "main.js": "/my-waifu-list/static/js/main.e185186c.js", + "main.js": "/my-waifu-list/static/js/main.787685ce.js", "index.html": "/my-waifu-list/index.html", "main.b1728d95.css.map": "/my-waifu-list/static/css/main.b1728d95.css.map", - "main.e185186c.js.map": "/my-waifu-list/static/js/main.e185186c.js.map" + "main.787685ce.js.map": "/my-waifu-list/static/js/main.787685ce.js.map" }, "entrypoints": [ "static/css/main.b1728d95.css", - "static/js/main.e185186c.js" + "static/js/main.787685ce.js" ] } \ No newline at end of file diff --git a/index.html b/index.html index fda906d..99f3cbc 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -Taufiq Pop's Waifu List
\ No newline at end of file +Taufiq Pop's Waifu List
\ No newline at end of file diff --git a/static/js/main.e185186c.js b/static/js/main.787685ce.js similarity index 71% rename from static/js/main.e185186c.js rename to static/js/main.787685ce.js index 67b040d..313850e 100644 --- a/static/js/main.e185186c.js +++ b/static/js/main.787685ce.js @@ -1,3 +1,3 @@ -/*! For license information please see main.e185186c.js.LICENSE.txt */ -(()=>{var e={955:function(e){e.exports=function(){"use strict";function e(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(t,n){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=e[a]=e[a]||[],l={all:i,evt:null,found:null};return t&&n&&A(i)>0&&r(i,(function(e,i){if(e.eventName==t&&e.fn.toString()==n.toString())return l.found=!0,l.evt=i,!1})),l}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.onElement,i=t.withCallback,l=t.avoidDuplicate,a=void 0===l||l,s=t.once,o=void 0!==s&&s,d=t.useCapture,u=void 0!==d&&d,h=arguments.length>2?arguments[2]:void 0,m=n||[];function f(e){k(i)&&i.call(h,e,this),o&&f.destroy()}return S(m)&&(m=document.querySelectorAll(m)),f.destroy=function(){r(m,(function(t){var n=c(t,e,f);n.found&&n.all.splice(n.evt,1),t.removeEventListener&&t.removeEventListener(e,f,u)}))},r(m,(function(t){var n=c(t,e,f);(t.addEventListener&&a&&!n.found||!a)&&(t.addEventListener(e,f,u),n.all.push({eventName:e,fn:f}))})),f}function d(e,t){r(t.split(" "),(function(t){return e.classList.add(t)}))}function u(e,t){r(t.split(" "),(function(t){return e.classList.remove(t)}))}function h(e,t){return e.classList.contains(t)}function m(e,t){for(;e!==document.body;){if(!(e=e.parentElement))return!1;if("function"==typeof e.matches?e.matches(t):e.msMatchesSelector(t))return e}}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e||""===t)return!1;if("none"===t)return k(n)&&n(),!1;var i=j(),l=t.split(" ");r(l,(function(t){d(e,"g"+t)})),o(i,{onElement:e,avoidDuplicate:!1,once:!0,withCallback:function(e,t){r(l,(function(e){u(t,"g"+e)})),k(n)&&n()}})}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(""===t)return e.style.webkitTransform="",e.style.MozTransform="",e.style.msTransform="",e.style.OTransform="",e.style.transform="",!1;e.style.webkitTransform=t,e.style.MozTransform=t,e.style.msTransform=t,e.style.OTransform=t,e.style.transform=t}function p(e){e.style.display="block"}function x(e){e.style.display="none"}function v(e){var t=document.createDocumentFragment(),n=document.createElement("div");for(n.innerHTML=e;n.firstChild;)t.appendChild(n.firstChild);return t}function y(){return{width:window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,height:window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}}function j(){var e,t=document.createElement("fakeelement"),n={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"animationend",WebkitAnimation:"webkitAnimationEnd"};for(e in n)if(void 0!==t.style[e])return n[e]}function b(e,t,n,i){if(e())t();else{var l;n||(n=100);var a=setInterval((function(){e()&&(clearInterval(a),l&&clearTimeout(l),t())}),n);i&&(l=setTimeout((function(){clearInterval(a)}),i))}}function N(e,t,n){if(M(e))console.error("Inject assets error");else if(k(t)&&(n=t,t=!1),S(t)&&t in window)k(n)&&n();else{var i;if(-1!==e.indexOf(".css")){if((i=document.querySelectorAll('link[href="'+e+'"]'))&&i.length>0)return void(k(n)&&n());var l=document.getElementsByTagName("head")[0],a=l.querySelectorAll('link[rel="stylesheet"]'),s=document.createElement("link");return s.rel="stylesheet",s.type="text/css",s.href=e,s.media="all",a?l.insertBefore(s,a[0]):l.appendChild(s),void(k(n)&&n())}if((i=document.querySelectorAll('script[src="'+e+'"]'))&&i.length>0){if(k(n)){if(S(t))return b((function(){return void 0!==window[t]}),(function(){n()})),!1;n()}}else{var r=document.createElement("script");r.type="text/javascript",r.src=e,r.onload=function(){if(k(n)){if(S(t))return b((function(){return void 0!==window[t]}),(function(){n()})),!1;n()}},document.body.appendChild(r)}}}function w(){return"navigator"in window&&window.navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)|(Android)|(PlayBook)|(BB10)|(BlackBerry)|(Opera Mini)|(IEMobile)|(webOS)|(MeeGo)/i)}function k(e){return"function"==typeof e}function S(e){return"string"==typeof e}function E(e){return!(!e||!e.nodeType||1!=e.nodeType)}function C(e){return Array.isArray(e)}function T(e){return e&&e.length&&isFinite(e.length)}function _(e){return"object"===t(e)&&null!=e&&!k(e)&&!C(e)}function M(e){return null==e}function L(e,t){return null!==e&&hasOwnProperty.call(e,t)}function A(e){if(_(e)){if(e.keys)return e.keys().length;var t=0;for(var n in e)L(e,n)&&t++;return t}return e.length}function P(e){return!isNaN(parseFloat(e))&&isFinite(e)}function z(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,t=document.querySelectorAll(".gbtn[data-taborder]:not(.disabled)");if(!t.length)return!1;if(1==t.length)return t[0];"string"==typeof e&&(e=parseInt(e));var n=[];r(t,(function(e){n.push(e.getAttribute("data-taborder"))}));var i=Math.max.apply(Math,n.map((function(e){return parseInt(e)}))),l=e<0?1:e+1;l>i&&(l="1");var a=n.filter((function(e){return e>=parseInt(l)})),s=a.sort()[0];return document.querySelector('.gbtn[data-taborder="'.concat(s,'"]'))}function R(e){if(e.events.hasOwnProperty("keyboard"))return!1;e.events.keyboard=o("keydown",{onElement:window,withCallback:function(t,n){var i=(t=t||window.event).keyCode;if(9==i){var l=document.querySelector(".gbtn.focused");if(!l){var a=!(!document.activeElement||!document.activeElement.nodeName)&&document.activeElement.nodeName.toLocaleLowerCase();if("input"==a||"textarea"==a||"button"==a)return}t.preventDefault();var s=document.querySelectorAll(".gbtn[data-taborder]");if(!s||s.length<=0)return;if(!l){var r=z();return void(r&&(r.focus(),d(r,"focused")))}var c=z(l.getAttribute("data-taborder"));u(l,"focused"),c&&(c.focus(),d(c,"focused"))}39==i&&e.nextSlide(),37==i&&e.prevSlide(),27==i&&e.close()}})}var O=l((function e(t,i){var l=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(n(this,e),this.img=t,this.slide=i,this.onclose=a,this.img.setZoomEvents)return!1;this.active=!1,this.zoomedIn=!1,this.dragging=!1,this.currentX=null,this.currentY=null,this.initialX=null,this.initialY=null,this.xOffset=0,this.yOffset=0,this.img.addEventListener("mousedown",(function(e){return l.dragStart(e)}),!1),this.img.addEventListener("mouseup",(function(e){return l.dragEnd(e)}),!1),this.img.addEventListener("mousemove",(function(e){return l.drag(e)}),!1),this.img.addEventListener("click",(function(e){return l.slide.classList.contains("dragging-nav")?(l.zoomOut(),!1):l.zoomedIn?void(l.zoomedIn&&!l.dragging&&l.zoomOut()):l.zoomIn()}),!1),this.img.setZoomEvents=!0}),[{key:"zoomIn",value:function(){var e=this.widowWidth();if(!(this.zoomedIn||e<=768)){var t=this.img;if(t.setAttribute("data-style",t.getAttribute("style")),t.style.maxWidth=t.naturalWidth+"px",t.style.maxHeight=t.naturalHeight+"px",t.naturalWidth>e){var n=e/2-t.naturalWidth/2;this.setTranslate(this.img.parentNode,n,0)}this.slide.classList.add("zoomed"),this.zoomedIn=!0}}},{key:"zoomOut",value:function(){this.img.parentNode.setAttribute("style",""),this.img.setAttribute("style",this.img.getAttribute("data-style")),this.slide.classList.remove("zoomed"),this.zoomedIn=!1,this.currentX=null,this.currentY=null,this.initialX=null,this.initialY=null,this.xOffset=0,this.yOffset=0,this.onclose&&"function"==typeof this.onclose&&this.onclose()}},{key:"dragStart",value:function(e){e.preventDefault(),this.zoomedIn?("touchstart"===e.type?(this.initialX=e.touches[0].clientX-this.xOffset,this.initialY=e.touches[0].clientY-this.yOffset):(this.initialX=e.clientX-this.xOffset,this.initialY=e.clientY-this.yOffset),e.target===this.img&&(this.active=!0,this.img.classList.add("dragging"))):this.active=!1}},{key:"dragEnd",value:function(e){var t=this;e.preventDefault(),this.initialX=this.currentX,this.initialY=this.currentY,this.active=!1,setTimeout((function(){t.dragging=!1,t.img.isDragging=!1,t.img.classList.remove("dragging")}),100)}},{key:"drag",value:function(e){this.active&&(e.preventDefault(),"touchmove"===e.type?(this.currentX=e.touches[0].clientX-this.initialX,this.currentY=e.touches[0].clientY-this.initialY):(this.currentX=e.clientX-this.initialX,this.currentY=e.clientY-this.initialY),this.xOffset=this.currentX,this.yOffset=this.currentY,this.img.isDragging=!0,this.dragging=!0,this.setTranslate(this.img,this.currentX,this.currentY))}},{key:"onMove",value:function(e){if(this.zoomedIn){var t=e.clientX-this.img.naturalWidth/2,n=e.clientY-this.img.naturalHeight/2;this.setTranslate(this.img,t,n)}}},{key:"setTranslate",value:function(e,t,n){e.style.transform="translate3d("+t+"px, "+n+"px, 0)"}},{key:"widowWidth",value:function(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}}]),I=l((function e(){var t=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,e);var l=i.dragEl,a=i.toleranceX,s=void 0===a?40:a,r=i.toleranceY,c=void 0===r?65:r,o=i.slide,d=void 0===o?null:o,u=i.instance,h=void 0===u?null:u;this.el=l,this.active=!1,this.dragging=!1,this.currentX=null,this.currentY=null,this.initialX=null,this.initialY=null,this.xOffset=0,this.yOffset=0,this.direction=null,this.lastDirection=null,this.toleranceX=s,this.toleranceY=c,this.toleranceReached=!1,this.dragContainer=this.el,this.slide=d,this.instance=h,this.el.addEventListener("mousedown",(function(e){return t.dragStart(e)}),!1),this.el.addEventListener("mouseup",(function(e){return t.dragEnd(e)}),!1),this.el.addEventListener("mousemove",(function(e){return t.drag(e)}),!1)}),[{key:"dragStart",value:function(e){if(this.slide.classList.contains("zoomed"))this.active=!1;else{"touchstart"===e.type?(this.initialX=e.touches[0].clientX-this.xOffset,this.initialY=e.touches[0].clientY-this.yOffset):(this.initialX=e.clientX-this.xOffset,this.initialY=e.clientY-this.yOffset);var t=e.target.nodeName.toLowerCase();e.target.classList.contains("nodrag")||m(e.target,".nodrag")||-1!==["input","select","textarea","button","a"].indexOf(t)?this.active=!1:(e.preventDefault(),(e.target===this.el||"img"!==t&&m(e.target,".gslide-inline"))&&(this.active=!0,this.el.classList.add("dragging"),this.dragContainer=m(e.target,".ginner-container")))}}},{key:"dragEnd",value:function(e){var t=this;e&&e.preventDefault(),this.initialX=0,this.initialY=0,this.currentX=null,this.currentY=null,this.initialX=null,this.initialY=null,this.xOffset=0,this.yOffset=0,this.active=!1,this.doSlideChange&&(this.instance.preventOutsideClick=!0,"right"==this.doSlideChange&&this.instance.prevSlide(),"left"==this.doSlideChange&&this.instance.nextSlide()),this.doSlideClose&&this.instance.close(),this.toleranceReached||this.setTranslate(this.dragContainer,0,0,!0),setTimeout((function(){t.instance.preventOutsideClick=!1,t.toleranceReached=!1,t.lastDirection=null,t.dragging=!1,t.el.isDragging=!1,t.el.classList.remove("dragging"),t.slide.classList.remove("dragging-nav"),t.dragContainer.style.transform="",t.dragContainer.style.transition=""}),100)}},{key:"drag",value:function(e){if(this.active){e.preventDefault(),this.slide.classList.add("dragging-nav"),"touchmove"===e.type?(this.currentX=e.touches[0].clientX-this.initialX,this.currentY=e.touches[0].clientY-this.initialY):(this.currentX=e.clientX-this.initialX,this.currentY=e.clientY-this.initialY),this.xOffset=this.currentX,this.yOffset=this.currentY,this.el.isDragging=!0,this.dragging=!0,this.doSlideChange=!1,this.doSlideClose=!1;var t=Math.abs(this.currentX),n=Math.abs(this.currentY);if(t>0&&t>=Math.abs(this.currentY)&&(!this.lastDirection||"x"==this.lastDirection)){this.yOffset=0,this.lastDirection="x",this.setTranslate(this.dragContainer,this.currentX,0);var i=this.shouldChange();if(!this.instance.settings.dragAutoSnap&&i&&(this.doSlideChange=i),this.instance.settings.dragAutoSnap&&i)return this.instance.preventOutsideClick=!0,this.toleranceReached=!0,this.active=!1,this.instance.preventOutsideClick=!0,this.dragEnd(null),"right"==i&&this.instance.prevSlide(),void("left"==i&&this.instance.nextSlide())}if(this.toleranceY>0&&n>0&&n>=t&&(!this.lastDirection||"y"==this.lastDirection)){this.xOffset=0,this.lastDirection="y",this.setTranslate(this.dragContainer,0,this.currentY);var l=this.shouldClose();return!this.instance.settings.dragAutoSnap&&l&&(this.doSlideClose=!0),void(this.instance.settings.dragAutoSnap&&l&&this.instance.close())}}}},{key:"shouldChange",value:function(){var e=!1;if(Math.abs(this.currentX)>=this.toleranceX){var t=this.currentX>0?"right":"left";("left"==t&&this.slide!==this.slide.parentNode.lastChild||"right"==t&&this.slide!==this.slide.parentNode.firstChild)&&(e=t)}return e}},{key:"shouldClose",value:function(){var e=!1;return Math.abs(this.currentY)>=this.toleranceY&&(e=!0),e}},{key:"setTranslate",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.style.transition=i?"all .2s ease":"",e.style.transform="translate3d(".concat(t,"px, ").concat(n,"px, 0)")}}]);function D(e,t,n,i){var l=e.querySelector(".gslide-media"),a=new Image,s="gSlideTitle_"+n,r="gSlideDesc_"+n;a.addEventListener("load",(function(){k(i)&&i()}),!1),a.src=t.href,""!=t.sizes&&""!=t.srcset&&(a.sizes=t.sizes,a.srcset=t.srcset),a.alt="",M(t.alt)||""===t.alt||(a.alt=t.alt),""!==t.title&&a.setAttribute("aria-labelledby",s),""!==t.description&&a.setAttribute("aria-describedby",r),t.hasOwnProperty("_hasCustomWidth")&&t._hasCustomWidth&&(a.style.width=t.width),t.hasOwnProperty("_hasCustomHeight")&&t._hasCustomHeight&&(a.style.height=t.height),l.insertBefore(a,l.firstChild)}function F(e,t,n,i){var l=this,a=e.querySelector(".ginner-container"),s="gvideo"+n,r=e.querySelector(".gslide-media"),c=this.getAllPlayers();d(a,"gvideo-container"),r.insertBefore(v('
'),r.firstChild);var o=e.querySelector(".gvideo-wrapper");N(this.settings.plyr.css,"Plyr");var u=t.href,h=null==t?void 0:t.videoProvider,m=!1;r.style.maxWidth=t.width,N(this.settings.plyr.js,"Plyr",(function(){if(!h&&u.match(/vimeo\.com\/([0-9]*)/)&&(h="vimeo"),!h&&(u.match(/(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/)||u.match(/youtu\.be\/([a-zA-Z0-9\-_]+)/)||u.match(/(youtube\.com|youtube-nocookie\.com)\/embed\/([a-zA-Z0-9\-_]+)/)||u.match(/(youtube\.com|youtube-nocookie\.com)\/shorts\/([a-zA-Z0-9\-_]+)/))&&(h="youtube"),"local"===h||!h){h="local";var a='")}var r=m||v('
'));d(o,"".concat(h,"-video gvideo")),o.appendChild(r),o.setAttribute("data-id",s),o.setAttribute("data-index",n);var f=L(l.settings.plyr,"config")?l.settings.plyr.config:{},g=new Plyr("#"+s,f);g.on("ready",(function(e){c[s]=e.detail.plyr,k(i)&&i()})),b((function(){return e.querySelector("iframe")&&"true"==e.querySelector("iframe").dataset.ready}),(function(){l.resize(e)})),g.on("enterfullscreen",K),g.on("exitfullscreen",K)}))}function K(e){var t=m(e.target,".gslide-media");"enterfullscreen"===e.type&&d(t,"fullscreen"),"exitfullscreen"===e.type&&u(t,"fullscreen")}function H(e,t,n,i){var l,a=this,s=e.querySelector(".gslide-media"),r=!(!L(t,"href")||!t.href)&&t.href.split("#").pop().trim(),c=!(!L(t,"content")||!t.content)&&t.content;if(c&&(S(c)&&(l=v('
'.concat(c,"
"))),E(c))){"none"==c.style.display&&(c.style.display="block");var u=document.createElement("div");u.className="ginlined-content",u.appendChild(c),l=u}if(r){var h=document.getElementById(r);if(!h)return!1;var m=h.cloneNode(!0);m.style.height=t.height,m.style.maxWidth=t.width,d(m,"ginlined-content"),l=m}if(!l)return console.error("Unable to append inline slide content",t),!1;s.style.height=t.height,s.style.width=t.width,s.appendChild(l),this.events["inlineclose"+r]=o("click",{onElement:s.querySelectorAll(".gtrigger-close"),withCallback:function(e){e.preventDefault(),a.close()}}),k(i)&&i()}function B(e,t,n,i){var l=e.querySelector(".gslide-media"),a=function(e){var t=e.url,n=e.allow,i=e.callback,l=e.appendTo,a=document.createElement("iframe");return a.className="vimeo-video gvideo",a.src=t,a.style.width="100%",a.style.height="100%",n&&a.setAttribute("allow",n),a.onload=function(){a.onload=null,d(a,"node-ready"),k(i)&&i()},l&&l.appendChild(a),a}({url:t.href,callback:i});l.parentNode.style.maxWidth=t.width,l.parentNode.style.height=t.height,l.appendChild(a)}var Y=l((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,e),this.defaults={href:"",sizes:"",srcset:"",title:"",type:"",videoProvider:"",description:"",alt:"",descPosition:"bottom",effect:"",width:"",height:"",content:!1,zoomable:!0,draggable:!0},_(t)&&(this.defaults=s(this.defaults,t))}),[{key:"sourceType",value:function(e){var t=e;return null!==(e=e.toLowerCase()).match(/\.(jpeg|jpg|jpe|gif|png|apn|webp|avif|svg)/)?"image":e.match(/(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/)||e.match(/youtu\.be\/([a-zA-Z0-9\-_]+)/)||e.match(/(youtube\.com|youtube-nocookie\.com)\/embed\/([a-zA-Z0-9\-_]+)/)||e.match(/(youtube\.com|youtube-nocookie\.com)\/shorts\/([a-zA-Z0-9\-_]+)/)||e.match(/vimeo\.com\/([0-9]*)/)||null!==e.match(/\.(mp4|ogg|webm|mov)/)?"video":null!==e.match(/\.(mp3|wav|wma|aac|ogg)/)?"audio":e.indexOf("#")>-1&&""!==t.split("#").pop().trim()?"inline":e.indexOf("goajax=true")>-1?"ajax":"external"}},{key:"parseConfig",value:function(e,t){var n=this,i=s({descPosition:t.descPosition},this.defaults);if(_(e)&&!E(e)){L(e,"type")||(L(e,"content")&&e.content?e.type="inline":L(e,"href")&&(e.type=this.sourceType(e.href)));var l=s(i,e);return this.setSize(l,t),l}var a="",c=e.getAttribute("data-glightbox"),o=e.nodeName.toLowerCase();if("a"===o&&(a=e.href),"img"===o&&(a=e.src,i.alt=e.alt),i.href=a,r(i,(function(l,a){L(t,a)&&"width"!==a&&(i[a]=t[a]);var s=e.dataset[a];M(s)||(i[a]=n.sanitizeValue(s))})),i.content&&(i.type="inline"),!i.type&&a&&(i.type=this.sourceType(a)),M(c)){if(!i.title&&"a"==o){var d=e.title;M(d)||""===d||(i.title=d)}if(!i.title&&"img"==o){var u=e.alt;M(u)||""===u||(i.title=u)}}else{var h=[];r(i,(function(e,t){h.push(";\\s?"+t)})),h=h.join("\\s?:|"),""!==c.trim()&&r(i,(function(e,t){var l=c,a=new RegExp("s?"+t+"s?:s?(.*?)("+h+"s?:|$)"),s=l.match(a);if(s&&s.length&&s[1]){var r=s[1].trim().replace(/;\s*$/,"");i[t]=n.sanitizeValue(r)}}))}if(i.description&&"."===i.description.substring(0,1)){var m;try{m=document.querySelector(i.description).innerHTML}catch(e){if(!(e instanceof DOMException))throw e}m&&(i.description=m)}if(!i.description){var f=e.querySelector(".glightbox-desc");f&&(i.description=f.innerHTML)}return this.setSize(i,t,e),this.slideConfig=i,i}},{key:"setSize",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i="video"==e.type?this.checkSize(t.videosWidth):this.checkSize(t.width),l=this.checkSize(t.height);return e.width=L(e,"width")&&""!==e.width?this.checkSize(e.width):i,e.height=L(e,"height")&&""!==e.height?this.checkSize(e.height):l,n&&"image"==e.type&&(e._hasCustomWidth=!!n.dataset.width,e._hasCustomHeight=!!n.dataset.height),e}},{key:"checkSize",value:function(e){return P(e)?"".concat(e,"px"):e}},{key:"sanitizeValue",value:function(e){return"true"!==e&&"false"!==e?e:"true"===e}}]),U=l((function e(t,i,l){n(this,e),this.element=t,this.instance=i,this.index=l}),[{key:"setContent",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(h(t,"loaded"))return!1;var i=this.instance.settings,l=this.slideConfig,a=w();k(i.beforeSlideLoad)&&i.beforeSlideLoad({index:this.index,slide:t,player:!1});var s=l.type,r=l.descPosition,c=t.querySelector(".gslide-media"),o=t.querySelector(".gslide-title"),u=t.querySelector(".gslide-desc"),m=t.querySelector(".gdesc-inner"),f=n,g="gSlideTitle_"+this.index,p="gSlideDesc_"+this.index;if(k(i.afterSlideLoad)&&(f=function(){k(n)&&n(),i.afterSlideLoad({index:e.index,slide:t,player:e.instance.getSlidePlayerInstance(e.index)})}),""==l.title&&""==l.description?m&&m.parentNode.parentNode.removeChild(m.parentNode):(o&&""!==l.title?(o.id=g,o.innerHTML=l.title):o.parentNode.removeChild(o),u&&""!==l.description?(u.id=p,a&&i.moreLength>0?(l.smallDescription=this.slideShortDesc(l.description,i.moreLength,i.moreText),u.innerHTML=l.smallDescription,this.descriptionEvents(u,l)):u.innerHTML=l.description):u.parentNode.removeChild(u),d(c.parentNode,"desc-".concat(r)),d(m.parentNode,"description-".concat(r))),d(c,"gslide-".concat(s)),d(t,"loaded"),"video"!==s){if("external"!==s)return"inline"===s?(H.apply(this.instance,[t,l,this.index,f]),void(l.draggable&&new I({dragEl:t.querySelector(".gslide-inline"),toleranceX:i.dragToleranceX,toleranceY:i.dragToleranceY,slide:t,instance:this.instance}))):void("image"!==s?k(f)&&f():D(t,l,this.index,(function(){var n=t.querySelector("img");l.draggable&&new I({dragEl:n,toleranceX:i.dragToleranceX,toleranceY:i.dragToleranceY,slide:t,instance:e.instance}),l.zoomable&&n.naturalWidth>n.offsetWidth&&(d(n,"zoomable"),new O(n,t,(function(){e.instance.resize()}))),k(f)&&f()})));B.apply(this,[t,l,this.index,f])}else F.apply(this.instance,[t,l,this.index,f])}},{key:"slideShortDesc",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=document.createElement("div");i.innerHTML=e;var l=n;if((e=i.innerText.trim()).length<=t)return e;var a=e.substr(0,t-1);return l?(i=null,a+'... '+n+""):a}},{key:"descriptionEvents",value:function(e,t){var n=this,i=e.querySelector(".desc-more");if(!i)return!1;o("click",{onElement:i,withCallback:function(e,i){e.preventDefault();var l=document.body,a=m(i,".gslide-desc");if(!a)return!1;a.innerHTML=t.description,d(l,"gdesc-open");var s=o("click",{onElement:[l,m(a,".gslide-description")],withCallback:function(e,i){"a"!==e.target.nodeName.toLowerCase()&&(u(l,"gdesc-open"),d(l,"gdesc-closed"),a.innerHTML=t.smallDescription,n.descriptionEvents(a,t),setTimeout((function(){u(l,"gdesc-closed")}),400),s.destroy())}})}})}},{key:"create",value:function(){return v(this.instance.settings.slideHTML)}},{key:"getConfig",value:function(){E(this.element)||this.element.hasOwnProperty("draggable")||(this.element.draggable=this.instance.settings.draggable);var e=new Y(this.instance.settings.slideExtraAttributes);return this.slideConfig=e.parseConfig(this.element,this.instance.settings),this.slideConfig}}]);function W(e){return Math.sqrt(e.x*e.x+e.y*e.y)}function q(e,t){var n=function(e,t){var n=W(e)*W(t);if(0===n)return 0;var i=function(e,t){return e.x*t.x+e.y*t.y}(e,t)/n;return i>1&&(i=1),Math.acos(i)}(e,t);return function(e,t){return e.x*t.y-t.x*e.y}(e,t)>0&&(n*=-1),180*n/Math.PI}var V=l((function e(t){n(this,e),this.handlers=[],this.el=t}),[{key:"add",value:function(e){this.handlers.push(e)}},{key:"del",value:function(e){e||(this.handlers=[]);for(var t=this.handlers.length;t>=0;t--)this.handlers[t]===e&&this.handlers.splice(t,1)}},{key:"dispatch",value:function(){for(var e=0,t=this.handlers.length;e=0)console.log("ignore drag for this touched element",e.target.nodeName.toLowerCase());else{this.now=Date.now(),this.x1=e.touches[0].pageX,this.y1=e.touches[0].pageY,this.delta=this.now-(this.last||this.now),this.touchStart.dispatch(e,this.element),null!==this.preTapPosition.x&&(this.isDoubleTap=this.delta>0&&this.delta<=250&&Math.abs(this.preTapPosition.x-this.x1)<30&&Math.abs(this.preTapPosition.y-this.y1)<30,this.isDoubleTap&&clearTimeout(this.singleTapTimeout)),this.preTapPosition.x=this.x1,this.preTapPosition.y=this.y1,this.last=this.now;var t=this.preV;if(e.touches.length>1){this._cancelLongTap(),this._cancelSingleTap();var n={x:e.touches[1].pageX-this.x1,y:e.touches[1].pageY-this.y1};t.x=n.x,t.y=n.y,this.pinchStartLen=W(t),this.multipointStart.dispatch(e,this.element)}this._preventTap=!1,this.longTapTimeout=setTimeout(function(){this.longTap.dispatch(e,this.element),this._preventTap=!0}.bind(this),750)}}},{key:"move",value:function(e){if(e.touches){var t=this.preV,n=e.touches.length,i=e.touches[0].pageX,l=e.touches[0].pageY;if(this.isDoubleTap=!1,n>1){var a=e.touches[1].pageX,s=e.touches[1].pageY,r={x:e.touches[1].pageX-i,y:e.touches[1].pageY-l};null!==t.x&&(this.pinchStartLen>0&&(e.zoom=W(r)/this.pinchStartLen,this.pinch.dispatch(e,this.element)),e.angle=q(r,t),this.rotate.dispatch(e,this.element)),t.x=r.x,t.y=r.y,null!==this.x2&&null!==this.sx2?(e.deltaX=(i-this.x2+a-this.sx2)/2,e.deltaY=(l-this.y2+s-this.sy2)/2):(e.deltaX=0,e.deltaY=0),this.twoFingerPressMove.dispatch(e,this.element),this.sx2=a,this.sy2=s}else{if(null!==this.x2){e.deltaX=i-this.x2,e.deltaY=l-this.y2;var c=Math.abs(this.x1-this.x2),o=Math.abs(this.y1-this.y2);(c>10||o>10)&&(this._preventTap=!0)}else e.deltaX=0,e.deltaY=0;this.pressMove.dispatch(e,this.element)}this.touchMove.dispatch(e,this.element),this._cancelLongTap(),this.x2=i,this.y2=l,n>1&&e.preventDefault()}}},{key:"end",value:function(e){if(e.changedTouches){this._cancelLongTap();var t=this;e.touches.length<2&&(this.multipointEnd.dispatch(e,this.element),this.sx2=this.sy2=null),this.x2&&Math.abs(this.x1-this.x2)>30||this.y2&&Math.abs(this.y1-this.y2)>30?(e.direction=this._swipeDirection(this.x1,this.x2,this.y1,this.y2),this.swipeTimeout=setTimeout((function(){t.swipe.dispatch(e,t.element)}),0)):(this.tapTimeout=setTimeout((function(){t._preventTap||t.tap.dispatch(e,t.element),t.isDoubleTap&&(t.doubleTap.dispatch(e,t.element),t.isDoubleTap=!1)}),0),t.isDoubleTap||(t.singleTapTimeout=setTimeout((function(){t.singleTap.dispatch(e,t.element)}),250))),this.touchEnd.dispatch(e,this.element),this.preV.x=0,this.preV.y=0,this.zoom=1,this.pinchStartLen=null,this.x1=this.x2=this.y1=this.y2=null}}},{key:"cancelAll",value:function(){this._preventTap=!0,clearTimeout(this.singleTapTimeout),clearTimeout(this.tapTimeout),clearTimeout(this.longTapTimeout),clearTimeout(this.swipeTimeout)}},{key:"cancel",value:function(e){this.cancelAll(),this.touchCancel.dispatch(e,this.element)}},{key:"_cancelLongTap",value:function(){clearTimeout(this.longTapTimeout)}},{key:"_cancelSingleTap",value:function(){clearTimeout(this.singleTapTimeout)}},{key:"_swipeDirection",value:function(e,t,n,i){return Math.abs(e-t)>=Math.abs(n-i)?e-t>0?"Left":"Right":n-i>0?"Up":"Down"}},{key:"on",value:function(e,t){this[e]&&this[e].add(t)}},{key:"off",value:function(e,t){this[e]&&this[e].del(t)}},{key:"destroy",value:function(){return this.singleTapTimeout&&clearTimeout(this.singleTapTimeout),this.tapTimeout&&clearTimeout(this.tapTimeout),this.longTapTimeout&&clearTimeout(this.longTapTimeout),this.swipeTimeout&&clearTimeout(this.swipeTimeout),this.element.removeEventListener("touchstart",this.start),this.element.removeEventListener("touchmove",this.move),this.element.removeEventListener("touchend",this.end),this.element.removeEventListener("touchcancel",this.cancel),this.rotate.del(),this.touchStart.del(),this.multipointStart.del(),this.multipointEnd.del(),this.pinch.del(),this.swipe.del(),this.tap.del(),this.doubleTap.del(),this.longTap.del(),this.singleTap.del(),this.pressMove.del(),this.twoFingerPressMove.del(),this.touchMove.del(),this.touchEnd.del(),this.touchCancel.del(),this.preV=this.pinchStartLen=this.zoom=this.isDoubleTap=this.delta=this.last=this.now=this.tapTimeout=this.singleTapTimeout=this.longTapTimeout=this.swipeTimeout=this.x1=this.x2=this.y1=this.y2=this.preTapPosition=this.rotate=this.touchStart=this.multipointStart=this.multipointEnd=this.pinch=this.swipe=this.tap=this.doubleTap=this.longTap=this.singleTap=this.pressMove=this.touchMove=this.touchEnd=this.touchCancel=this.twoFingerPressMove=null,window.removeEventListener("scroll",this._cancelAllHandler),null}}]);function Q(e){var t=function(){var e,t=document.createElement("fakeelement"),n={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(e in n)if(void 0!==t.style[e])return n[e]}(),n=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,i=h(e,"gslide-media")?e:e.querySelector(".gslide-media"),l=m(i,".ginner-container"),a=e.querySelector(".gslide-description");n>769&&(i=l),d(i,"greset"),g(i,"translate3d(0, 0, 0)"),o(t,{onElement:i,once:!0,withCallback:function(e,t){u(i,"greset")}}),i.style.opacity="",a&&(a.style.opacity="")}function G(e){if(e.events.hasOwnProperty("touch"))return!1;var t,n,i,l=y(),a=l.width,s=l.height,r=!1,c=null,o=null,f=null,p=!1,x=1,v=1,j=!1,b=!1,N=null,w=null,k=null,S=null,E=0,C=0,T=!1,_=!1,M={},L={},A=0,P=0,z=document.getElementById("glightbox-slider"),R=document.querySelector(".goverlay"),O=new X(z,{touchStart:function(t){if(r=!0,(h(t.targetTouches[0].target,"ginner-container")||m(t.targetTouches[0].target,".gslide-desc")||"a"==t.targetTouches[0].target.nodeName.toLowerCase())&&(r=!1),m(t.targetTouches[0].target,".gslide-inline")&&!h(t.targetTouches[0].target.parentNode,"gslide-inline")&&(r=!1),r){if(L=t.targetTouches[0],M.pageX=t.targetTouches[0].pageX,M.pageY=t.targetTouches[0].pageY,A=t.targetTouches[0].clientX,P=t.targetTouches[0].clientY,c=e.activeSlide,o=c.querySelector(".gslide-media"),i=c.querySelector(".gslide-inline"),f=null,h(o,"gslide-image")&&(f=o.querySelector("img")),(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)>769&&(o=c.querySelector(".ginner-container")),u(R,"greset"),t.pageX>20&&t.pageXs){var c=M.pageX-L.pageX;if(Math.abs(c)<=13)return!1}p=!0;var d,u=l.targetTouches[0].clientX,h=l.targetTouches[0].clientY,m=A-u,x=P-h;if(Math.abs(m)>Math.abs(x)?(T=!1,_=!0):(_=!1,T=!0),t=L.pageX-M.pageX,E=100*t/a,n=L.pageY-M.pageY,C=100*n/s,T&&f&&(d=1-Math.abs(n)/s,R.style.opacity=d,e.settings.touchFollowAxis&&(E=0)),_&&(d=1-Math.abs(t)/a,o.style.opacity=d,e.settings.touchFollowAxis&&(C=0)),!f)return g(o,"translate3d(".concat(E,"%, 0, 0)"));g(o,"translate3d(".concat(E,"%, ").concat(C,"%, 0)"))}},touchEnd:function(){if(r){if(p=!1,b||j)return k=N,void(S=w);var t=Math.abs(parseInt(C)),n=Math.abs(parseInt(E));if(!(t>29&&f))return t<29&&n<25?(d(R,"greset"),R.style.opacity=1,Q(o)):void 0;e.close()}},multipointEnd:function(){setTimeout((function(){j=!1}),50)},multipointStart:function(){j=!0,x=v||1},pinch:function(e){if(!f||p)return!1;j=!0,f.scaleX=f.scaleY=x*e.zoom;var t=x*e.zoom;if(b=!0,t<=1)return b=!1,t=1,S=null,k=null,N=null,w=null,void f.setAttribute("style","");t>4.5&&(t=4.5),f.style.transform="scale3d(".concat(t,", ").concat(t,", 1)"),v=t},pressMove:function(e){if(b&&!j){var t=L.pageX-M.pageX,n=L.pageY-M.pageY;k&&(t+=k),S&&(n+=S),N=t,w=n;var i="translate3d(".concat(t,"px, ").concat(n,"px, 0)");v&&(i+=" scale3d(".concat(v,", ").concat(v,", 1)")),g(f,i)}},swipe:function(t){if(!b)if(j)j=!1;else{if("Left"==t.direction){if(e.index==e.elements.length-1)return Q(o);e.nextSlide()}if("Right"==t.direction){if(0==e.index)return Q(o);e.prevSlide()}}}});e.events.touch=O}var J=w(),Z=null!==w()||void 0!==document.createTouch||"ontouchstart"in window||"onmsgesturechange"in window||navigator.msMaxTouchPoints,ee=document.getElementsByTagName("html")[0],te={selector:".glightbox",elements:null,skin:"clean",theme:"clean",closeButton:!0,startAt:null,autoplayVideos:!0,autofocusVideos:!0,descPosition:"bottom",width:"900px",height:"506px",videosWidth:"960px",beforeSlideChange:null,afterSlideChange:null,beforeSlideLoad:null,afterSlideLoad:null,slideInserted:null,slideRemoved:null,slideExtraAttributes:null,onOpen:null,onClose:null,loop:!1,zoomable:!0,draggable:!0,dragAutoSnap:!1,dragToleranceX:40,dragToleranceY:65,preload:!0,oneSlidePerOpen:!1,touchNavigation:!0,touchFollowAxis:!0,keyboardNavigation:!0,closeOnOutsideClick:!0,plugins:!1,plyr:{css:"https://cdn.plyr.io/3.6.12/plyr.css",js:"https://cdn.plyr.io/3.6.12/plyr.js",config:{ratio:"16:9",fullscreen:{enabled:!0,iosNative:!0},youtube:{noCookie:!0,rel:0,showinfo:0,iv_load_policy:3},vimeo:{byline:!1,portrait:!1,title:!1,transparent:!1}}},openEffect:"zoom",closeEffect:"zoom",slideEffect:"slide",moreText:"See more",moreLength:60,cssEfects:{fade:{in:"fadeIn",out:"fadeOut"},zoom:{in:"zoomIn",out:"zoomOut"},slide:{in:"slideInRight",out:"slideOutLeft"},slideBack:{in:"slideInLeft",out:"slideOutRight"},none:{in:"none",out:"none"}},svg:{close:'',next:' ',prev:''},slideHTML:'
\n
\n
\n
\n
\n
\n
\n

\n
\n
\n
\n
\n
\n
',lightboxHTML:''},ne=l((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,e),this.customOptions=t,this.settings=s(te,t),this.effectsClasses=this.getAnimationClasses(),this.videoPlayers={},this.apiEvents=[],this.fullElementsList=!1}),[{key:"init",value:function(){var e=this,t=this.getSelector();t&&(this.baseEvents=o("click",{onElement:t,withCallback:function(t,n){t.preventDefault(),e.open(n)}})),this.elements=this.getElements()}},{key:"open",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(0===this.elements.length)return!1;this.activeSlide=null,this.prevActiveSlideIndex=null,this.prevActiveSlide=null;var n=P(t)?t:this.settings.startAt;if(E(e)){var i=e.getAttribute("data-gallery");i&&(this.fullElementsList=this.elements,this.elements=this.getGalleryElements(this.elements,i)),M(n)&&(n=this.getElementIndex(e))<0&&(n=0)}P(n)||(n=0),this.build(),f(this.overlay,"none"===this.settings.openEffect?"none":this.settings.cssEfects.fade.in);var l=document.body,a=window.innerWidth-document.documentElement.clientWidth;if(a>0){var s=document.createElement("style");s.type="text/css",s.className="gcss-styles",s.innerText=".gscrollbar-fixer {margin-right: ".concat(a,"px}"),document.head.appendChild(s),d(l,"gscrollbar-fixer")}d(l,"glightbox-open"),d(ee,"glightbox-open"),J&&(d(document.body,"glightbox-mobile"),this.settings.slideEffect="slide"),this.showSlide(n,!0),1===this.elements.length?(d(this.prevButton,"glightbox-button-hidden"),d(this.nextButton,"glightbox-button-hidden")):(u(this.prevButton,"glightbox-button-hidden"),u(this.nextButton,"glightbox-button-hidden")),this.lightboxOpen=!0,this.trigger("open"),k(this.settings.onOpen)&&this.settings.onOpen(),Z&&this.settings.touchNavigation&&G(this),this.settings.keyboardNavigation&&R(this)}},{key:"openAt",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.open(null,e)}},{key:"showSlide",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];p(this.loader),this.index=parseInt(t);var i=this.slidesContainer.querySelector(".current");i&&u(i,"current"),this.slideAnimateOut();var l=this.slidesContainer.querySelectorAll(".gslide")[t];if(h(l,"loaded"))this.slideAnimateIn(l,n),x(this.loader);else{p(this.loader);var a=this.elements[t],s={index:this.index,slide:l,slideNode:l,slideConfig:a.slideConfig,slideIndex:this.index,trigger:a.node,player:null};this.trigger("slide_before_load",s),a.instance.setContent(l,(function(){x(e.loader),e.resize(),e.slideAnimateIn(l,n),e.trigger("slide_after_load",s)}))}this.slideDescription=l.querySelector(".gslide-description"),this.slideDescriptionContained=this.slideDescription&&h(this.slideDescription.parentNode,"gslide-media"),this.settings.preload&&(this.preloadSlide(t+1),this.preloadSlide(t-1)),this.updateNavigationClasses(),this.activeSlide=l}},{key:"preloadSlide",value:function(e){var t=this;if(e<0||e>this.elements.length-1)return!1;if(M(this.elements[e]))return!1;var n=this.slidesContainer.querySelectorAll(".gslide")[e];if(h(n,"loaded"))return!1;var i=this.elements[e],l=i.type,a={index:e,slide:n,slideNode:n,slideConfig:i.slideConfig,slideIndex:e,trigger:i.node,player:null};this.trigger("slide_before_load",a),"video"===l||"external"===l?setTimeout((function(){i.instance.setContent(n,(function(){t.trigger("slide_after_load",a)}))}),200):i.instance.setContent(n,(function(){t.trigger("slide_after_load",a)}))}},{key:"prevSlide",value:function(){this.goToSlide(this.index-1)}},{key:"nextSlide",value:function(){this.goToSlide(this.index+1)}},{key:"goToSlide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.prevActiveSlide=this.activeSlide,this.prevActiveSlideIndex=this.index,!this.loop()&&(e<0||e>this.elements.length-1))return!1;e<0?e=this.elements.length-1:e>=this.elements.length&&(e=0),this.showSlide(e)}},{key:"insertSlide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;t<0&&(t=this.elements.length);var n=new U(e,this,t),i=n.getConfig(),l=s({},i),a=n.create(),r=this.elements.length-1;l.index=t,l.node=!1,l.instance=n,l.slideConfig=i,this.elements.splice(t,0,l);var c=null,o=null;if(this.slidesContainer){if(t>r)this.slidesContainer.appendChild(a);else{var d=this.slidesContainer.querySelectorAll(".gslide")[t];this.slidesContainer.insertBefore(a,d)}(this.settings.preload&&0==this.index&&0==t||this.index-1==t||this.index+1==t)&&this.preloadSlide(t),0===this.index&&0===t&&(this.index=1),this.updateNavigationClasses(),c=this.slidesContainer.querySelectorAll(".gslide")[t],o=this.getSlidePlayerInstance(t),l.slideNode=c}this.trigger("slide_inserted",{index:t,slide:c,slideNode:c,slideConfig:i,slideIndex:t,trigger:null,player:o}),k(this.settings.slideInserted)&&this.settings.slideInserted({index:t,slide:c,player:o})}},{key:"removeSlide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;if(e<0||e>this.elements.length-1)return!1;var t=this.slidesContainer&&this.slidesContainer.querySelectorAll(".gslide")[e];t&&(this.getActiveSlideIndex()==e&&(e==this.elements.length-1?this.prevSlide():this.nextSlide()),t.parentNode.removeChild(t)),this.elements.splice(e,1),this.trigger("slide_removed",e),k(this.settings.slideRemoved)&&this.settings.slideRemoved(e)}},{key:"slideAnimateIn",value:function(e,t){var n=this,i=e.querySelector(".gslide-media"),l=e.querySelector(".gslide-description"),a={index:this.prevActiveSlideIndex,slide:this.prevActiveSlide,slideNode:this.prevActiveSlide,slideIndex:this.prevActiveSlide,slideConfig:M(this.prevActiveSlideIndex)?null:this.elements[this.prevActiveSlideIndex].slideConfig,trigger:M(this.prevActiveSlideIndex)?null:this.elements[this.prevActiveSlideIndex].node,player:this.getSlidePlayerInstance(this.prevActiveSlideIndex)},s={index:this.index,slide:this.activeSlide,slideNode:this.activeSlide,slideConfig:this.elements[this.index].slideConfig,slideIndex:this.index,trigger:this.elements[this.index].node,player:this.getSlidePlayerInstance(this.index)};if(i.offsetWidth>0&&l&&(x(l),l.style.display=""),u(e,this.effectsClasses),t)f(e,this.settings.cssEfects[this.settings.openEffect].in,(function(){n.settings.autoplayVideos&&n.slidePlayerPlay(e),n.trigger("slide_changed",{prev:a,current:s}),k(n.settings.afterSlideChange)&&n.settings.afterSlideChange.apply(n,[a,s])}));else{var r=this.settings.slideEffect,c="none"!==r?this.settings.cssEfects[r].in:r;this.prevActiveSlideIndex>this.index&&"slide"==this.settings.slideEffect&&(c=this.settings.cssEfects.slideBack.in),f(e,c,(function(){n.settings.autoplayVideos&&n.slidePlayerPlay(e),n.trigger("slide_changed",{prev:a,current:s}),k(n.settings.afterSlideChange)&&n.settings.afterSlideChange.apply(n,[a,s])}))}setTimeout((function(){n.resize(e)}),100),d(e,"current")}},{key:"slideAnimateOut",value:function(){if(!this.prevActiveSlide)return!1;var e=this.prevActiveSlide;u(e,this.effectsClasses),d(e,"prev");var t=this.settings.slideEffect,n="none"!==t?this.settings.cssEfects[t].out:t;this.slidePlayerPause(e),this.trigger("slide_before_change",{prev:{index:this.prevActiveSlideIndex,slide:this.prevActiveSlide,slideNode:this.prevActiveSlide,slideIndex:this.prevActiveSlideIndex,slideConfig:M(this.prevActiveSlideIndex)?null:this.elements[this.prevActiveSlideIndex].slideConfig,trigger:M(this.prevActiveSlideIndex)?null:this.elements[this.prevActiveSlideIndex].node,player:this.getSlidePlayerInstance(this.prevActiveSlideIndex)},current:{index:this.index,slide:this.activeSlide,slideNode:this.activeSlide,slideIndex:this.index,slideConfig:this.elements[this.index].slideConfig,trigger:this.elements[this.index].node,player:this.getSlidePlayerInstance(this.index)}}),k(this.settings.beforeSlideChange)&&this.settings.beforeSlideChange.apply(this,[{index:this.prevActiveSlideIndex,slide:this.prevActiveSlide,player:this.getSlidePlayerInstance(this.prevActiveSlideIndex)},{index:this.index,slide:this.activeSlide,player:this.getSlidePlayerInstance(this.index)}]),this.prevActiveSlideIndex>this.index&&"slide"==this.settings.slideEffect&&(n=this.settings.cssEfects.slideBack.out),f(e,n,(function(){var t=e.querySelector(".ginner-container"),n=e.querySelector(".gslide-media"),i=e.querySelector(".gslide-description");t.style.transform="",n.style.transform="",u(n,"greset"),n.style.opacity="",i&&(i.style.opacity=""),u(e,"prev")}))}},{key:"getAllPlayers",value:function(){return this.videoPlayers}},{key:"getSlidePlayerInstance",value:function(e){var t="gvideo"+e,n=this.getAllPlayers();return!(!L(n,t)||!n[t])&&n[t]}},{key:"stopSlideVideo",value:function(e){if(E(e)){var t=e.querySelector(".gvideo-wrapper");t&&(e=t.getAttribute("data-index"))}console.log("stopSlideVideo is deprecated, use slidePlayerPause");var n=this.getSlidePlayerInstance(e);n&&n.playing&&n.pause()}},{key:"slidePlayerPause",value:function(e){if(E(e)){var t=e.querySelector(".gvideo-wrapper");t&&(e=t.getAttribute("data-index"))}var n=this.getSlidePlayerInstance(e);n&&n.playing&&n.pause()}},{key:"playSlideVideo",value:function(e){if(E(e)){var t=e.querySelector(".gvideo-wrapper");t&&(e=t.getAttribute("data-index"))}console.log("playSlideVideo is deprecated, use slidePlayerPlay");var n=this.getSlidePlayerInstance(e);n&&!n.playing&&n.play()}},{key:"slidePlayerPlay",value:function(e){var t;if(!J||null!==(t=this.settings.plyr.config)&&void 0!==t&&t.muted){if(E(e)){var n=e.querySelector(".gvideo-wrapper");n&&(e=n.getAttribute("data-index"))}var i=this.getSlidePlayerInstance(e);i&&!i.playing&&(i.play(),this.settings.autofocusVideos&&i.elements.container.focus())}}},{key:"setElements",value:function(e){var t=this;this.settings.elements=!1;var n=[];e&&e.length&&r(e,(function(e,i){var l=new U(e,t,i),a=l.getConfig(),r=s({},a);r.slideConfig=a,r.instance=l,r.index=i,n.push(r)})),this.elements=n,this.lightboxOpen&&(this.slidesContainer.innerHTML="",this.elements.length&&(r(this.elements,(function(){var e=v(t.settings.slideHTML);t.slidesContainer.appendChild(e)})),this.showSlide(0,!0)))}},{key:"getElementIndex",value:function(e){var t=!1;return r(this.elements,(function(n,i){if(L(n,"node")&&n.node==e)return t=i,!0})),t}},{key:"getElements",value:function(){var e=this,t=[];this.elements=this.elements?this.elements:[],!M(this.settings.elements)&&C(this.settings.elements)&&this.settings.elements.length&&r(this.settings.elements,(function(n,i){var l=new U(n,e,i),a=l.getConfig(),r=s({},a);r.node=!1,r.index=i,r.instance=l,r.slideConfig=a,t.push(r)}));var n=!1;return this.getSelector()&&(n=document.querySelectorAll(this.getSelector())),n?(r(n,(function(n,i){var l=new U(n,e,i),a=l.getConfig(),r=s({},a);r.node=n,r.index=i,r.instance=l,r.slideConfig=a,r.gallery=n.getAttribute("data-gallery"),t.push(r)})),t):t}},{key:"getGalleryElements",value:function(e,t){return e.filter((function(e){return e.gallery==t}))}},{key:"getSelector",value:function(){return!this.settings.elements&&(this.settings.selector&&"data-"==this.settings.selector.substring(0,5)?"*[".concat(this.settings.selector,"]"):this.settings.selector)}},{key:"getActiveSlide",value:function(){return this.slidesContainer.querySelectorAll(".gslide")[this.index]}},{key:"getActiveSlideIndex",value:function(){return this.index}},{key:"getAnimationClasses",value:function(){var e=[];for(var t in this.settings.cssEfects)if(this.settings.cssEfects.hasOwnProperty(t)){var n=this.settings.cssEfects[t];e.push("g".concat(n.in)),e.push("g".concat(n.out))}return e.join(" ")}},{key:"build",value:function(){var e=this;if(this.built)return!1;var t=document.body.childNodes,n=[];r(t,(function(e){e.parentNode==document.body&&"#"!==e.nodeName.charAt(0)&&e.hasAttribute&&!e.hasAttribute("aria-hidden")&&(n.push(e),e.setAttribute("aria-hidden","true"))}));var i=L(this.settings.svg,"next")?this.settings.svg.next:"",l=L(this.settings.svg,"prev")?this.settings.svg.prev:"",a=L(this.settings.svg,"close")?this.settings.svg.close:"",s=this.settings.lightboxHTML;s=v(s=(s=(s=s.replace(/{nextSVG}/g,i)).replace(/{prevSVG}/g,l)).replace(/{closeSVG}/g,a)),document.body.appendChild(s);var c=document.getElementById("glightbox-body");this.modal=c;var u=c.querySelector(".gclose");this.prevButton=c.querySelector(".gprev"),this.nextButton=c.querySelector(".gnext"),this.overlay=c.querySelector(".goverlay"),this.loader=c.querySelector(".gloader"),this.slidesContainer=document.getElementById("glightbox-slider"),this.bodyHiddenChildElms=n,this.events={},d(this.modal,"glightbox-"+this.settings.skin),this.settings.closeButton&&u&&(this.events.close=o("click",{onElement:u,withCallback:function(t,n){t.preventDefault(),e.close()}})),u&&!this.settings.closeButton&&u.parentNode.removeChild(u),this.nextButton&&(this.events.next=o("click",{onElement:this.nextButton,withCallback:function(t,n){t.preventDefault(),e.nextSlide()}})),this.prevButton&&(this.events.prev=o("click",{onElement:this.prevButton,withCallback:function(t,n){t.preventDefault(),e.prevSlide()}})),this.settings.closeOnOutsideClick&&(this.events.outClose=o("click",{onElement:c,withCallback:function(t,n){e.preventOutsideClick||h(document.body,"glightbox-mobile")||m(t.target,".ginner-container")||m(t.target,".gbtn")||h(t.target,"gnext")||h(t.target,"gprev")||e.close()}})),r(this.elements,(function(t,n){e.slidesContainer.appendChild(t.instance.create()),t.slideNode=e.slidesContainer.querySelectorAll(".gslide")[n]})),Z&&d(document.body,"glightbox-touch"),this.events.resize=o("resize",{onElement:window,withCallback:function(){e.resize()}}),this.built=!0}},{key:"resize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if((e=e||this.activeSlide)&&!h(e,"zoomed")){var t=y(),n=e.querySelector(".gvideo-wrapper"),i=e.querySelector(".gslide-image"),l=this.slideDescription,a=t.width,s=t.height;if(a<=768?d(document.body,"glightbox-mobile"):u(document.body,"glightbox-mobile"),n||i){var r=!1;if(l&&(h(l,"description-bottom")||h(l,"description-top"))&&!h(l,"gabsolute")&&(r=!0),i)if(a<=768)i.querySelector("img");else if(r){var c,o=l.offsetHeight,m=i.querySelector("img"),f=null!==(c=this.elements[this.index].node.getAttribute("data-height"))&&void 0!==c?c:"100vh";m.setAttribute("style","max-height: calc(".concat(f," - ").concat(o,"px)")),l.setAttribute("style","max-width: ".concat(m.offsetWidth,"px;"))}if(n){var g=L(this.settings.plyr.config,"ratio")?this.settings.plyr.config.ratio:"";if(!g){var p=n.clientWidth,x=n.clientHeight,v=p/x;g="".concat(p/v,":").concat(x/v)}var j=g.split(":"),b=this.settings.videosWidth,N=this.settings.videosWidth,w=(N=P(b)||-1!==b.indexOf("px")?parseInt(b):-1!==b.indexOf("vw")?a*parseInt(b)/100:-1!==b.indexOf("vh")?s*parseInt(b)/100:-1!==b.indexOf("%")?a*parseInt(b)/100:parseInt(n.clientWidth))/(parseInt(j[0])/parseInt(j[1]));if(w=Math.floor(w),r&&(s-=l.offsetHeight),N>a||w>s||sN){var k=n.offsetWidth,S=n.offsetHeight,E=s/S,C={width:k*E,height:S*E};n.parentNode.setAttribute("style","max-width: ".concat(C.width,"px")),r&&l.setAttribute("style","max-width: ".concat(C.width,"px;"))}else n.parentNode.style.maxWidth="".concat(b),r&&l.setAttribute("style","max-width: ".concat(b,";"))}}}}},{key:"reload",value:function(){this.init()}},{key:"updateNavigationClasses",value:function(){var e=this.loop();u(this.nextButton,"disabled"),u(this.prevButton,"disabled"),0==this.index&&this.elements.length-1==0?(d(this.prevButton,"disabled"),d(this.nextButton,"disabled")):0!==this.index||e?this.index!==this.elements.length-1||e||d(this.nextButton,"disabled"):d(this.prevButton,"disabled")}},{key:"loop",value:function(){var e=L(this.settings,"loopAtEnd")?this.settings.loopAtEnd:null;return e=L(this.settings,"loop")?this.settings.loop:e}},{key:"close",value:function(){var e=this;if(!this.lightboxOpen){if(this.events){for(var t in this.events)this.events.hasOwnProperty(t)&&this.events[t].destroy();this.events=null}return!1}if(this.closing)return!1;this.closing=!0,this.slidePlayerPause(this.activeSlide),this.fullElementsList&&(this.elements=this.fullElementsList),this.bodyHiddenChildElms.length&&r(this.bodyHiddenChildElms,(function(e){e.removeAttribute("aria-hidden")})),d(this.modal,"glightbox-closing"),f(this.overlay,"none"==this.settings.openEffect?"none":this.settings.cssEfects.fade.out),f(this.activeSlide,this.settings.cssEfects[this.settings.closeEffect].out,(function(){if(e.activeSlide=null,e.prevActiveSlideIndex=null,e.prevActiveSlide=null,e.built=!1,e.events){for(var t in e.events)e.events.hasOwnProperty(t)&&e.events[t].destroy();e.events=null}var n=document.body;u(ee,"glightbox-open"),u(n,"glightbox-open touching gdesc-open glightbox-touch glightbox-mobile gscrollbar-fixer"),e.modal.parentNode.removeChild(e.modal),e.trigger("close"),k(e.settings.onClose)&&e.settings.onClose();var i=document.querySelector(".gcss-styles");i&&i.parentNode.removeChild(i),e.lightboxOpen=!1,e.closing=null}))}},{key:"destroy",value:function(){this.close(),this.clearAllEvents(),this.baseEvents&&this.baseEvents.destroy()}},{key:"on",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e||!k(t))throw new TypeError("Event name and callback must be defined");this.apiEvents.push({evt:e,once:n,callback:t})}},{key:"once",value:function(e,t){this.on(e,t,!0)}},{key:"trigger",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=[];r(this.apiEvents,(function(t,l){var a=t.evt,s=t.once,r=t.callback;a==e&&(r(n),s&&i.push(l))})),i.length&&r(i,(function(e){return t.apiEvents.splice(e,1)}))}},{key:"clearAllEvents",value:function(){this.apiEvents.splice(0,this.apiEvents.length)}},{key:"version",value:function(){return"3.3.0"}}]);return function(){var e=new ne(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});return e.init(),e}}()},730:(e,t,n)=>{"use strict";var i=n(43),l=n(853);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n