PageSourceSearch

https://sportskhabri.com/wp-content/themes/sp/assets/dist/js/app.js?ver=1756203677

js sportskhabri.com collected 2026-09-24 20:00:28 UTC 235,196 bytes, 2 lines download raw bytes

1/*! For license information please see app.js.LICENSE.txt */
2(()=>{var t={21:()=>{document.querySelectorAll(".sk-author-section").forEach((function(t){var e=t.querySelector(".sk-author__posts-btn"),n=t.querySelector(".sk-post__latest");e&&n&&e.addEventListener("click",(function(){e.classList.toggle("sk-author__posts-btn_open"),n.classList.toggle("sk-post__latest_open")}))}))},195:()=>{function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,n(o.key),o)}}function n(e){var n=function(e,n){if("object"!=t(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var o=i.call(e,"string");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==t(n)?n:String(n)}var i=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.Classes={list:"sk-author-posts__list",item:{base:"sk-author-posts__item",hidden:"sk-author-posts__item--hidden"},more:{base:"sk-author-posts__more",active:"sk-author-posts__more--active",hidden:"sk-author-posts__more--hidden"}},this.Elements={parent:e,list:e.querySelector(".".concat(this.Classes.list)),items:Array.from(e.querySelectorAll(".".concat(this.Classes.item.base))),more:e.querySelector(".".concat(this.Classes.more.base))},this.State={lastVisibleIndex:0,allShown:!1},this.Settings={initialShow:3,perShow:9},this.init()}var n,i;return n=t,(i=[{key:"init",value:function(){this.initPostsVisibility(),this.initBtnVisibility(),this.initListeners(),this.updateStateAllShown()}},{key:"initPostsVisibility",value:function(){var t=this;
2this.Elements.items.forEach((function(e,n){n<t.Settings.initialShow?t.State.lastVisibleIndex=n:e.classList.add(t.Classes.item.hidden)}))}},{key:"initBtnVisibility",value:function(){var t;this.Elements.items.length<=this.Settings.initialShow&&(null===(t=this.Elements.more)||void 0===t||t.classList.add(this.Classes.more.hidden))}},{key:"initListeners",value:function(){var t,e=this;null===(t=this.Elements.more)||void 0===t||t.addEventListener("click",(function(){return e.handleMore()}))}},{key:"handleMore",value:function(){if(this.State.allShown)this.initPostsVisibility(),this.updateStateAllShown(),this.updateButtonLabel();else{for(var t=0;t<this.Settings.perShow&&this.State.lastVisibleIndex<this.Elements.items.length-1;t++)this.State.lastVisibleIndex++,this.Elements.items[this.State.lastVisibleIndex].classList.remove(this.Classes.item.hidden);this.updateStateAllShown(),this.updateButtonLabel()}}},{key:"updateButtonLabel",value:function(){this.Elements.more&&(this.Elements.more.textContent=this.State.allShown?"Hide All":"Show More",this.Elements.more.classList.toggle(this.Classes.more.active,this.State.allShown))}},{key:"updateStateAllShown",value:function(){this.State.lastVisibleIndex>=this.Elements.items.length-1?this.State.allShown=!0:this.State.allShown=!1}}])&&e(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),t}();Array.from(document.querySelectorAll(".sk-author-posts")).forEach((function(t){return new i(t)}))},556:()=>{document.addEventListener("DOMContentLoaded",(function(){!function(){var t=document.querySelector(".sk-comments__form");if(t){var e=t.querySelector('.sk-comments__form-input[name="name"]'),n=t.querySelector('.sk-comments__form-input[name="email"]'),i=t.querySelector('.sk-comments__form-textarea[name="comment"]'),o=t.querySelector(".sk-comments__form-button"),r=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;if(!o)return;var s=function(){var t=e.value.length>=3,s=r.test(n.value),a=i.value.length>=3,l=t&&s&&a;o.disabled=!l};e&&e.addEventListener("input",(function(){var t=e.closest(".sk-comments__form-item");e.value.length<3?t&&t.classList.add("sk-comments__form-item_invalid"):t&&t.classList.remove("sk-comments__form-item_invalid"),s()})),i&&i.addEventListener("input",(function(){var t=i.closest(".sk-comments__form-item");i.value.length<3?t&&t.classList.add("sk-comments__form-item_invalid"):t&&t.classList.remove("sk-comments__form-item_invalid"),s()})),n&&n.addEventListener("input",(function(){var t=n.closest(".sk-comments__form-item");r.test(n.value)?t&&t.classList.remove("sk-comments__form-item_invalid"):t&&t.classList.add("sk-comments__form-item_invalid"),s()})),t.addEventListener("submit",(function(){o.disabled=!0}))}}()}))},736:()=>{var t=document.querySelectorAll(".sk-button_link");t&&t.forEach((function(t){t.addEventListener("click",(function(t){window.location.href=t.target.dataset.link}))}))},677:()=>{function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,n(o.key),o)}}function n(e){var n=function(e,n){if("object"!=t(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var o=i.call(e,"string");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==t(n)?n:String(n)}new(function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e&&(this.Classes={visible:"sk-scroll-to-top--visible"},this.Elements={parent:e},this.Settings={upperScrollStart:100},this.State={visible:!1},this.init())}var n,i;return n=t,(i=[{key:"init",value:function(){var t=this;window.addEventListener("scroll",(function(){return t.handleScrollVisibleToTopBtn()})),this.Elements.parent.addEventListener("click",(function(){return t.handleClickToTopBtn()}))}},{key:"handleScrollVisibleToTopBtn",value:function(){var t=window.scrollY>this.Settings.upperScrollStart;t!==this.State.visible&&(this.Elements.parent.classList.toggle(this.Classes.visible,t),this.State.visible=t)}},{key:"handleClickToTopBtn",value:function(){window.scrollTo({top:0,behavior:"smooth"})}}
vendor: 4,927 bytes, line 2
2])&&e(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),t}())(document.querySelector(".sk-scroll-to-top"))},307:()=>{function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){"use strict";e=function(){return i};var n,i={},o=Object.prototype,r=o.hasOwnProperty,s=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function h(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},"")}catch(n){h=function(t,e,n){return t[e]=n}}function d(t,e,n,i){var o=e&&e.prototype instanceof y?e:y,r=Object.create(o.prototype),a=new M(i||[]);return s(r,"_invoke",{value:O(t,n,a)}),r}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}i.wrap=d;var p="suspendedStart",m="suspendedYield",g="executing",v="completed",b={};function y(){}function w(){}function S(){}var E={};h(E,l,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(R([])));k&&k!==o&&r.call(k,l)&&(E=k);var _=S.prototype=y.prototype=Object.create(E);function L(t){["next","throw","return"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function T(e,n){function i(o,s,a,l){var c=f(e[o],e,s);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==t(h)&&r.call(h,"__await")?n.resolve(h.__await).then((function(t){i("next",t,a,l)}),(function(t){i("throw",t,a,l)})):n.resolve(h).then((function(t){u.value=t,a(u)}),(function(t){return i("throw",t,a,l)}))}l(c.arg)}var o;s(this,"_invoke",{value:function(t,e){function r(){return new n((function(n,o){i(t,e,n,o)}))}return o=o?o.then(r,r):r()}})}function O(t,e,i){var o=p;return function(r,s){if(o===g)throw new Error("Generator is already running");if(o===v){if("throw"===r)throw s;return{value:n,done:!0}}for(i.method=r,i.arg=s;;){var a=i.delegate;if(a){var l=P(a,i);if(l){if(l===b)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(o===p)throw o=v,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);o=g;var c=f(t,e,i);if("normal"===c.type){if(o=i.done?v:m,c.arg===b)continue;return{value:c.arg,done:i.done}}"throw"===c.type&&(o=v,i.method="throw",i.arg=c.arg)}}}function P(t,e){var i=e.method,o=t.iterator[i];if(o===n)return e.delegate=null,"throw"===i&&t.iterator.return&&(e.method="return",e.arg=n,P(t,e),"throw"===e.method)||"return"!==i&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+i+"' method")),b;var r=f(o,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,b;var s=r.arg;return s?s.done?(e[t.resultName]=s.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,b):s:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,b)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function R(e){if(e||""===e){var i=e[l];if(i)return i.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,s=function t(){for(;++o<e.length;)if(r.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=n,t.done=!0,t};return s.next=s}}throw new TypeError(t(e)+" is not iterable")}return w.prototype=S,s(_,"constructor",{value:S,configurable:!0}),s(S,"constructor",{value:w,configurable:!0}),w.displayName=h(S,u,"GeneratorFunction"),i.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},i.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,S):(t.__proto__=S,h(t,u,"GeneratorFunction")),t.prototype=Object.create(_),t},i.awrap=function(t){return{__await:t}},L(T.prototype),h(T.prototype,c,(function(){return this})),i.AsyncIterator=T,i.async=function(t,e,n,o,r){void 0===r&&(r=Promise);var s=new T(d(t,e,n,o),r);return i.isGeneratorFunction(e)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},L(_),h(_,u,"Generator"),h(_,l,(function(){return this})),h(_,"toString",(function(){return"[object Generator]"})),i.keys=function(t){var e=Object(t),n=[];for(var i in e)n.push(i);return n.reverse(),function t(){for(;n.length;){var i=n.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},i.values=R,M.prototype={constructor:M,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEac
2h(A),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function i(i,o){return a.type="throw",a.arg=t,e.next=i,o&&(e.method="next",e.arg=n),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var s=this.tryEntries[o],a=s.completion;if("root"===s.tryLoc)return i("end");if(s.tryLoc<=this.prev){var l=r.call(s,"catchLoc"),c=r.call(s,"finallyLoc");if(l&&c){if(this.prev<s.catchLoc)return i(s.catchLoc,!0);if(this.prev<s.finallyLoc)return i(s.finallyLoc)}else if(l){if(this.prev<s.catchLoc)return i(s.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return i(s.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=t,s.arg=e,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(s)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),A(n),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var o=i.arg;A(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,i){return this.delegate={iterator:R(t),resultName:e,nextLoc:i},"next"===this.method&&(this.arg=n),b}},i}function n(t,e,n,i,o,r,s){try{var a=t[r](s),l=a.value}catch(t){return void n(t)}a.done?e(l):Promise.resolve(l).then(i,o)}function i(t){return function(){var e=this,i=arguments;return new Promise((function(o,r){var s=t.apply(e,i);function a(t){n(s,o,r,a,l,"next",t)}function l(t){n(s,o,r,a,l,"throw",t)}a(void 0)}))}}document.querySelectorAll(".sk-promo-input").forEach((function(t){var n=t.querySelector(".sk-promo-input__button"),o=t.querySelector(".sk-promo-input__value");n.addEventListener("click",i(e().mark((function t(){return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,navigator.clipboard.writeText(o.innerText);case 2:n.classList.add("sk-promo-input__button_copied");case 3:case"end":return t.stop()}}),t)}))))}))},763:()=>{var t=document.querySelectorAll(".sk-datepicker");t.length&&t.forEach((function(t){var e=t.querySelector(".sk-datepicker__calendar"),n=e.querySelector("div span"),i=e.querySelector("tbody"),o=e.querySelector(".sk-datepicker__calendar-buttons"),r=document.querySelector(".sk-datepicker__value"),s=new Date,a=new Date(s);a.setDate(s.getDate()-15);var l=new Date(s);l.setDate(s.getDate()+15);var c=null,u=null,h=null,d=s.getFullYear(),f=s.getMonth(),p=s.getDate();function m(t,r){var s=new Date(t,r,1),b=(s.getDay()+6)%7,y=new Date(t,r+1,0).getDate();i.innerHTML="",n.textContent="".concat(s.toLocaleString("en",{month:"long"})," ").concat(t);for(var w=document.createElement("tr"),S=0;S<b;S++)w.appendChild(document.createElement("td"));for(var E=function(e){var n=document.createElement("td");n.textContent=e;var o=new Date(t,r,e);o<a||o>l?n.classList.add("disabled"):n.addEventListener("click",(function(n){n.stopPropagation(),function(t,e,n){var o=i.querySelector(".selected");o&&o.classList.remove("selected"),event.target.classList.add("selected"),c=t,u=e,h=n,m(t,e)}(t,r,e)})),w.appendChild(n),(b+e-1)%7==6&&(i.appendChild(w),w=document.createElement("tr")),t===c&&r===u&&e===h&&n.classList.add("selected"),t===d&&r===f&&e===p&&n.classList.add("today")},x=1;x<=y;x++)E(x);w.children.length>0&&i.appendChild(w),null!==c&&null!==u&&null!==h?(o.classList.add("sk-datepicker__calendar-buttons_visible"),o.querySelector(".reset-date").addEventListener("click",g),o.querySelector(".apply-date").addEventListener("click",v)):o.classList.remove("sk-datepicker__calendar-buttons_visible"),function(t,n){new Date(t,n-1,1),new Date(t,n+1,1);var i=new Date(t,n,0).getDate(),o=(new Date(t,n+2,0).getDate(),new Date(t,n-1,i)>=a),r=new Date(t,n+1,1)<=l;e.querySelector(".prev-month").disabled=!o,e.querySelector(".next-month").disabled=!r}(t,r)}function g(){c=null,u=null,h=null,m(d,f),t.classList.remove("sk-datepicker_value")}function v(n){n.stopPropagation();var i=u+1<10?"0".concat(u+1):u+1,o=h<10?"0".concat(h):h;r.textContent="".concat(o,".").concat(i),t.classList.add("sk-datepicker_value"),e.classList.remove("sk-datepicker__calendar_visible")}m(d,f),e.querySelector(".prev-month").addEventListener("click",(function(){s.setMonth(s.getMonth()-1),m(s.getFullYear(),s.getMonth())})),e.querySelector(".next-month").addEventListener("click",(function(){s.setMonth(s.getMonth()+1),m(s.getFullYear(),s.getMonth())})),t.addEventListener("click",(function(t){e.classList.add("sk-datepicker__calendar_visible")})),document.addEventListener("click",(function(n){t.contains(n.target)||e.classList.remove("sk-datepicker__calendar_visible")}))}))},438:()=>{console.log("Webpack Boilerplate v5.18.0 - SASS/PostCSS, ES6/7, browser sync.")},423:()=>{var t=function(){var t=["January","February","March","April","May","June","July","August","September","October","November","December"],e=["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
2ay","Saturday"];function n(t,e){return String(t).padStart(e,"0")}return{format:function(i,o){var r=i.getFullYear(),s=n(i.getMonth()+1,2),a=n(i.getDate(),2),l=t[i.getMonth()].substring(0,3),c=t[i.getMonth()],u=e[i.getDay()],h=i.getHours(),d=n(i.getMinutes(),2),f=h>=12?"PM":"AM";h=(h%=12)||12;var p=-i.getTimezoneOffset()/60,m="GMT".concat(p>=0?"+":"").concat(p);return o.replace("a",f).replace("YYYY",r).replace("DD",a).replace("MMMM",c).replace("MMM",l).replace("MM",s).replace("hh",n(h,2)).replace("mm",d).replace("zz",m).replace("dddd",u)}}}();document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll("[data-format]").forEach((function(e){var n=e.getAttribute("datetime"),i=e.getAttribute("data-format");if(n){var o=new Date(n),r=t.format(o,i);e.textContent=r,e.classList.remove("skeleton")}}))}))},167:()=>{var t=document.querySelector(".sk-nav-categories");if(t){var e=t.querySelectorAll(".sk-nav-categories__item"),n=t.querySelectorAll(".sk-nav-subcategories__item"),i=t.querySelector(".sk-nav-categories__item_active")||null;e.forEach((function(t){t.addEventListener("click",(function(){return function(t){var n=t.querySelector(".sk-nav-subcategories__list");o(e),t.classList.add("sk-nav-categories__item_active"),n&&n.classList.add("sk-nav-subcategories__list_open"),i=t}(t)})),t.addEventListener("mouseenter",(function(){return function(t){var e,n=t.querySelector(".sk-nav-subcategories__list");i&&i!==t&&(null===(e=i.querySelector(".sk-nav-subcategories__list"))||void 0===e||e.classList.remove("sk-nav-subcategories__list_open"),i.classList.remove("sk-nav-categories__item_active")),t.classList.add("sk-nav-categories__item_hover"),n&&n.classList.add("sk-nav-subcategories__list_open")}(t)})),t.addEventListener("mouseleave",(function(){return function(t){var e=t.querySelector(".sk-nav-subcategories__list");if(t.classList.remove("sk-nav-categories__item_hover"),e&&e.classList.remove("sk-nav-subcategories__list_open"),i){i.classList.add("sk-nav-categories__item_active");var n=i.querySelector(".sk-nav-subcategories__list");n&&n.classList.add("sk-nav-subcategories__list_open")}}(t)}))})),n.forEach((function(t){t.addEventListener("click",(function(n){n.stopPropagation();var r=t.closest(".sk-nav-subcategories__list"),s=r.closest(".sk-nav-categories__item");!function(t,n,r){o(e,!0),n&&(n.classList.add("sk-nav-subcategories__list_open"),t.classList.add("sk-nav-subcategories__item_active"),null==r||r.classList.add("sk-nav-categories__item_active")),i=r}(t,r,s)}))}))}var o=function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i="sk-nav-subcategories__item_active",o="sk-nav-subcategories__list_open";e.forEach((function(e){var r=t.querySelector(".".concat(i)),s=e.querySelector(".".concat(o));null==r||r.classList.remove(i),n||(null==s||s.classList.remove(o),e.classList.remove("sk-nav-categories__item_active"))}))}},650:()=>{var t=document.querySelector(".sk-header");if(t){var e=t.querySelector(".sk-header__burger"),n=t.querySelector(".sk-header__menu"),i=t.querySelector(".sk-header__menu-wrapper"),o=n.querySelectorAll(".sk-nav-main__list_depth-0"),r=function(){t.classList.contains("sk-header_side")&&o.length>0&&o.forEach((function(t){return s(t)})),t&&!t.classList.contains("sk-header_sticky")&&window.scrollTo({top:0}),e.classList.toggle("sk-header__burger_open"),n.classList.toggle("sk-header__menu_open"),t.classList.toggle("sk-header_side"),document.body.classList.toggle("no-scroll")},s=function(t){t.querySelectorAll(".sk-nav-main__list_open").forEach((function(t){t.classList.remove("sk-nav-main__list_open");var e=t.closest(".sk-nav-main__item_parent"),n=null==e?void 0:e.querySelector(".sk-nav-main__arrow");null==n||n.classList.remove("sk-nav-main__arrow_open")}))},a=function(){n.querySelectorAll(".sk-nav-main__item").forEach((function(t){var e=t.getBoundingClientRect().top-n.getBoundingClientRect().top;if(t.style.setProperty("--offset-top","".concat(e,"px")),e<0){var i=t.closest(".sk-nav-main__list_depth-2");if(i){s(i),i.classList.remove("sk-nav-main__list_open");var o=i.closest(".sk-nav-main__item_parent"),r=null==o?void 0:o.querySelector(".sk-nav-main__arrow");null==r||r.classList.remove("sk-nav-main__arrow_open")}}}))},l=function(){if(e&&n){var t=e.getBoundingClientRect(),i=t.width+t.right;n.style.setProperty("--side-menu-height","".concat(i,"px"))}};e.addEventListener("click",r),document.addEventListener("click",(function(t){n.contains(t.target)||e.contains(t.target)||n.classList.contains("sk-header__menu_open")&&r()})),o.forEach((function(t){var e=t.querySelectorAll(".sk-nav-main__item_parent"),i=t.querySelectorAll(".sk-nav-main__link");e.forEach((function(t){var e=t.querySelector(".sk-nav-main__arrow"),i=t.querySelector("ul");e&&i&&e.addEventListener("click",function(t,e){return function(i){i.stopPropagation();var o=e.classList.contains("sk-nav-main__list_open");(function(t){var e=Array.from(t.classList).find((function(t){return t.includes("sk-nav-main__list_depth-")}));if(e){var n=e.split("_").pop();document.querySelectorAll(".sk-nav-main__list_".concat(n)).forEac
2h((function(e){if(e!==t){s(e),e.classList.remove("sk-nav-main__list_open");var n=e.closest(".sk-nav-main__item_parent"),i=null==n?void 0:n.querySelector(".sk-nav-main__arrow");null==i||i.classList.remove("sk-nav-main__arrow_open")}}))}})(e),o?(s(e),e.classList.remove("sk-nav-main__list_open"),t.classList.remove("sk-nav-main__arrow_open")):(e.classList.add("sk-nav-main__list_open"),t.classList.add("sk-nav-main__arrow_open"),function(t){t.querySelectorAll(".sk-nav-main__item").forEach((function(t){var e=t.getBoundingClientRect().top-n.getBoundingClientRect().top;t.style.setProperty("--offset-top","".concat(e,"px"))}))}(e)),a()}}(e,i))})),i.length&&i.forEach((function(t){t.addEventListener("click",r)}))})),i.addEventListener("scroll",(function(){window.innerWidth>560&&a()})),window.addEventListener("resize",l),l()}},735:()=>{var t=document.querySelectorAll(".sk-nav-subcategories__container");t.length&&t.forEach((function(t){var e;(e=t).scrollWidth>e.clientWidth?t.classList.add("sk-nav-subcategories__container_scroll"):t.classList.remove("sk-nav-subcategories__container_scroll");var n,i,o=!1,r=!1;t.addEventListener("mousedown",(function(e){o=!0,r=!1,n=e.pageX-t.offsetLeft,i=t.scrollLeft,document.body.style.userSelect="none"})),t.addEventListener("mouseleave",(function(){o=!1,document.body.style.userSelect=""})),t.addEventListener("mouseup",(function(){o=!1,setTimeout((function(){r=!1}),0),document.body.style.userSelect=""})),t.addEventListener("mousemove",(function(e){if(o){var s=2*(e.pageX-t.offsetLeft-n);Math.abs(s)>5&&(r=!0),t.scrollLeft=i-s}})),t.querySelectorAll("a").forEach((function(t){t.addEventListener("mousedown",(function(t){t.preventDefault()})),t.addEventListener("click",(function(t){r&&(t.preventDefault(),t.stopPropagation())})),t.addEventListener("dragstart",(function(t){t.preventDefault()}))}))}))},896:()=>{var t=document.querySelectorAll(".sk-lightbox"),e="sk-lightbox-wrapper";t&&(t.forEach((function(t){t.addEventListener("click",(function(t){var n=t.target.src,i={wrapper:document.createElement("div"),image:document.createElement("img")};i.wrapper.classList.add(e),i.image.classList.add("sk-lightbox-wrapper__image"),i.image.src=n,i.wrapper.appendChild(i.image),document.body.appendChild(i.wrapper),document.body.style.overflow="hidden"}))})),document.body.addEventListener("click",(function(t){t.target.classList.contains(e)&&(t.target.remove(),document.body.style.overflow="auto")})))},168:()=>{var t=document.querySelectorAll(".sk-match-lineup__toggle-input");t.length&&t.forEach((function(t){t.addEventListener("change",(function(){var e=document.querySelectorAll("[data-team]"),n=null;if(e.length&&e.forEach((function(e){e.getAttribute("data-team")===t.value?(e.style.display="flex",n||(n=e)):e.style.display="none"})),n){var i=n.getBoundingClientRect();i.top>=0&&i.top<window.innerHeight||n.scrollIntoView({behavior:"smooth",block:"start"})}}))}))},682:()=>{var t=document.querySelectorAll(".sk-link-button");t&&t.forEach((function(t){t.addEventListener("click",(function(t){window.location.href=t.target.dataset.link}))}))},236:()=>{var t=document.querySelectorAll(".sk-match__history");t.length&&t.forEach((function(t){var e=t.querySelector(".sk-match__history-prev"),n=t.querySelector(".sk-match__history-next"),i=t.querySelector(".sk-match__history-list");function o(){var t=i.scrollWidth-i.clientWidth;e.disabled=i.scrollLeft<=0,n.disabled=i.scrollLeft>=t-1}function r(t){i.scrollBy({left:300*t,behavior:"smooth"}),setTimeout(o,200)}function s(){window.innerWidth<=800?(t.classList.add("sk-scrollbar"),i.style.overflowX="unset"):(t.classList.remove("sk-scrollbar"),i.style.overflowX="hidden"),o()}e.addEventListener("click",(function(){r(-1)})),n.addEventListener("click",(function(){r(1)})),i.addEventListener("scroll",o),window.addEventListener("resize",s),s(),o()}))},936:()=>{function t(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,i=0;i<n;i++)t[i]&&t[i].classList.add("sk-match__h2h-item_visible");e&&e.addEventListener("click",(function(){for(var i=n;i<t.length;i++)t[i].classList.toggle("sk-match__h2h-item_visible");e.classList.toggle("open"),e.textContent="Show more"===e.textContent?"Show less":"Show more"}))}
2document.addEventListener("DOMContentLoaded",(function(){var e=document.querySelectorAll(".sk-match-last__matches");e.length&&e.forEach((function(e){var n=e.querySelectorAll(".sk-match-last__matches-column"),i=e.querySelector(".sk-match-last__matches-more");n.length&&n.forEach((function(e){var n=e.querySelector(".sk-match-last__matches-column__more"),i=e.querySelectorAll(".sk-match__h2h-item");i.length&&t(i,n)})),i.addEventListener("click",(function(){n.length&&n.forEach((function(t){for(var e=t.querySelectorAll(".sk-match__h2h-item"),n=3;n<e.length;n++)e[n].classList.toggle("sk-match__h2h-item_visible")})),i.classList.toggle("open"),i.textContent="Show more"===i.textContent?"Show less":"Show more"}))})),window.addEventListener("resize",(function(){document.querySelectorAll(".sk-match-last").forEach((function(t){var e=t.querySelectorAll(".sk-match-last__matches-column");e.length&&e.forEach((function(t){t.querySelectorAll(".sk-match__h2h-item").forEach((function(t,e){e>=3?t.classList.remove("sk-match__h2h-item_visible"):t.classList.add("sk-match__h2h-item_visible")}));var e=t.querySelector(".sk-match-last__matches-column__more");e&&(e.classList.remove("open"),e.textContent="Show more")}));var n=t.querySelector(".sk-match-last__matches-more");n&&(n.classList.remove("open"),n.textContent="Show more")}))}))})),document.addEventListener("DOMContentLoaded",(function(){var e=document.querySelectorAll(".sk-match-h2h__matches");e.length&&e.forEach((function(e){var n=e.querySelectorAll(".sk-match__h2h-item"),i=e.querySelector(".sk-match-h2h__matches-more");n.length&&t(n,i)}))}))},603:()=>{document.querySelectorAll(".sk-points-table").forEach((function(t){t.querySelectorAll(".sk-team__button").forEach((function(t){t.addEventListener("click",(function(t){!function(t){var e=t.closest(".sk-points-table__team");if(e){var n=e.nextElementSibling;n&&n.classList.contains("sk-points-table__opponents")&&(n.classList.toggle("sk-points-table__opponents_open"),t.classList.toggle("sk-team__button_open"))}}(t.currentTarget)}))}))}))},77:()=>{var t=document.querySelector(".sk-header__search"),e=document.querySelector(".sk-search-modal"),n=document.querySelector(".sk-search__input"),i=document.querySelector(".sk-search__btn"),o=document.querySelector(".sk-header");function r(){e&&(t.classList.toggle("sk-header__search_active"),e.classList.toggle("sk-search-modal_show"),n&&n.focus(),e.classList.contains("sk-search-modal_show")?(document.body.style.overflow="hidden",o&&!o.classList.contains("sk-header_sticky")&&window.scrollTo({top:0})):document.body.style.overflow="unset")}function s(){var t=n.value.trim().toLowerCase(),e=document.querySelector(".sk-search-results__content");if(t){i.classList.add("sk-search__btn_active"),i.innerText="Delete";var o=new FormData;o.append("action","ajax_search"),o.append("s",t),fetch("/wp-admin/admin-ajax.php",{method:"POST",credentials:"same-origin",body:o}).then((function(t){return t.text()})).then((function(t){e.innerHTML=t||'<p class="sk-search-results__none">Sorry, we don’t have what you’re looking for. Please, enter another request or choose one of the topics below.</p>'}))}}document.addEventListener("DOMContentLoaded",(function(){if(o){var t=o.offsetHeight;document.documentElement.style.setProperty("--header-height","".concat(t,"px"))}})),t&&t.addEventListener("click",r),n&&n.addEventListener("keyup",(function(t){var e=n.value.trim().toLowerCase();"Enter"===t.key?s():"Backspace"!==t.key&&"Delete"!==t.key||e||(i.classList.remove("sk-search__btn_active"),i.innerText="Search")})),i&&i.addEventListener("click",(function(){i.classList.contains("sk-search__btn_active")?(i.classList.remove("sk-search__btn_active"),i.innerText="Search",n&&(n.value="",n.focus())):s()})),e&&e.addEventListener("click",(function(t){e.classList.contains("sk-search-modal_show")&&(e.querySelector(".sk-search-modal__wrapper").contains(t.target)||r())})),window.addEventListener("resize",(function(){if(o){var t=o.offsetHeight;document.documentElement.style.setProperty("--header-height","".concat(t,"px"))}}))},260:()=>{var t=document.querySelectorAll(".sk-slider");t.length&&t.forEach((function(t){var e=0,n=0,i=0,o=3,r=t.querySelector(".sk-slider__dots"),s=t.querySelectorAll(".sk-slide"),a=t.querySelector(".sk-slider__wrapper"),l=function(){var e,n=t.offsetWidth,i=16*((o=Math.floor(n/290)||1)-1),r=16*(s.length-1);
2e=o<3?(n-i)/o:(n-r)/s.length,s.forEach((function(t){t.style.width="".concat(e,"px")})),c()},c=function(){var t=Math.ceil(s.length/o);if(r.innerHTML="",!(t<2))for(var n=0;n<t;n++){var i=document.createElement("span");i.classList.add("sk-slider__dot"),n===e&&i.classList.add("sk-slider__dot_active"),i.setAttribute("data-slide",n),i.addEventListener("click",u),r.appendChild(i)}},u=function(t){var n=t.target,i=+n.dataset.slide,o=s[e],r=s[i],a=o.getBoundingClientRect(),l=r.getBoundingClientRect().left-a.left;h(l),d(n),e=i},h=function(t){var e=f()-t;a.style.transform="translateX(".concat(e,"px)")},d=function(e){t.querySelector(".sk-slider__dot_active").classList.remove("sk-slider__dot_active"),e.classList.add("sk-slider__dot_active")},f=function(){var t=window.getComputedStyle(a).getPropertyValue("transform").match(/^matrix\((.+)\)$/);if(t){var e=t[1].split(", ");return parseFloat(e[4])}return 0};a.addEventListener("touchstart",(function(t){n=t.changedTouches[0].pageX})),a.addEventListener("touchend",(function(t){i=t.changedTouches[0].pageX,function(t,n){if(!(o>=3)){var i=n-t;if(Math.abs(i)>50){var a="left"==(i>0?"right":"left")?e+1:e-1;if(a>=0&&a<=s.length-o){var l=s[e],c=s[a],u=l.getBoundingClientRect(),f=c.getBoundingClientRect().left-u.left;h(f),e=a;var p=r.querySelector('[data-slide="'.concat(e,'"]'));d(p)}}}}(n,i)})),window.addEventListener("resize",l),l(),function(){var e=Array.from(t.querySelectorAll(".sk-category-news"));if(e.length){var n=e.reduce((function(t,e){return t.clientHeight>e.clientHeight?t:e}));e.forEach((function(t){t.style.height=n.clientHeight+"px"}))}}()}))},921:()=>{var t=document.querySelectorAll(".sk-tabs-block");t.length&&t.forEach((function(t){var e=t.querySelectorAll(".sk-main__tabs-item"),n=t.querySelectorAll(".sk-text-image-block");e.forEach((function(i){i.addEventListener("click",(function(){var i=this.getAttribute("data-tab");e.forEach((function(t){return t.classList.remove("sk-main__tabs-item_active")})),n.forEach((function(t){return t.style.display="none"})),this.classList.add("sk-main__tabs-item_active"),t.querySelector(".sk-text-image-block[data-tab='".concat(i,"']")).style.display="block"}))})),document.addEventListener("DOMContentLoaded",(function(){var n=t.querySelector(".sk-main__tabs-item_active");n?n.click():e[0].click()}))}))},843:()=>{document.querySelectorAll(".sk-toc").forEach((function(t){t.addEventListener("click",(function(e){!function(t,e){var n=t.querySelector(".sk-toc__button"),i=t.querySelector(".sk-toc__list");e.target===n&&(n.classList.toggle("sk-toc__button_active"),i.classList.toggle("sk-toc__list_active"))}(t,e)}))}))},667:()=>{var t=document.querySelectorAll(".sk-section_collapsed");function e(t,e,n){"closed"===t.dataset.state?t.style.maxHeight=e:t.style.maxHeight=n}t.length&&t.forEach((function(t){var n=t.querySelector(".sk-title");if(n){var i="".concat(n.offsetHeight,"px"),o="none";e(t,i,o),n.addEventListener("click",(function(){var n="open"===t.getAttribute("data-state")?"closed":"open";t.setAttribute("data-state",n),e(t,i,o)}))}}))}},e={};function n(i){var o=e[i];if(void 0!==o)return o.exports;var r=e[i]={exports:{}};return t[i](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{"use strict";var t={};n.r(t),n.d(t,{hasBrowserEnv:()=>Cn,hasStandardBrowserEnv:()=>An,hasStandardBrowserWebWorkerEnv:()=>Rn,origin:()=>jn});const e=(t,e=1e4)=>(t=parseFloat(t+"")||0,Math.round((t+Number.EPSILON)*e)/e),i=function(t){if(!(t&&t instanceof Element&&t.offsetParent))return!1;const e=t.scrollHeight>t.clientHeight,n=window.getComputedStyle(t).overflowY,i=-1!==n.indexOf("hidden"),o=-1!==n.indexOf("visible");return e&&!i&&!o},o=function(t,e=void 0){return!(!t||t===document.body||e&&t===e)&&(i(t)?t:o(t.parentElement,e))},r=function(t){var e=(new DOMParser).parseFromString(t,"text/html").body;if(e.childElementCount>1){for(var n=document.createElement("div");e.firstChild;)n.appendChild(e.firstChild);return n}return e.firstChild},s=t=>`${t||""}`.split(" ").filter((t=>!!t)),a=(t,e,n)=>{t&&s(e).forEach((e=>{t.classList.toggle(e,n||!1)}))};class l{constructor(t){Object.defineProperty(this,"pageX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"pageY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"clientX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"clientY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"time",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"nativePointer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.nativePointer=t,this.pageX=t.pageX,this.pageY=t.pageY,this.clientX=t.clientX,this.clientY=t.clientY,this.id=self.Touch&&t instanceof Touch?t.identifier:-1,this.time=Date.now()}}const c={passive:!1};class u{constructor(t,{start:e=(()=>!0),move:n=(()=>{}),end:i=(()=>{})}){Object.defineProperty(this,"element",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"startCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"moveCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"endCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"currentPointers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"startPointers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),this.element=t,this.startCallback=e,this.moveCallback=n,this.endCallback=i;for(const t of["onPointerStart","onTouchStart","onMove","onTouchEnd","onPointerEnd","onWindowBlur"])this[t]=this[t].bind(this);this.element.addEventListener("mousedown",this.onPointerStart,c),this.element.addEventListener("touchstart",this.onTouchStart,c),this.element.addEventListener("touchmove",this.onMove,c),this.element.addEventListener("touchend",this.onTouchEnd),this.element.addEventListener("touchcancel",this.onTouchEnd)}onPointerStart(t){if(!t.buttons||0!==t.button)return;const e=new l(t);this.currentPointers.some((t=>
2t.id===e.id))||this.triggerPointerStart(e,t)&&(window.addEventListener("mousemove",this.onMove),window.addEventListener("mouseup",this.onPointerEnd),window.addEventListener("blur",this.onWindowBlur))}onTouchStart(t){for(const e of Array.from(t.changedTouches||[]))this.triggerPointerStart(new l(e),t);window.addEventListener("blur",this.onWindowBlur)}onMove(t){const e=this.currentPointers.slice(),n="changedTouches"in t?Array.from(t.changedTouches||[]).map((t=>new l(t))):[new l(t)],i=[];for(const t of n){const e=this.currentPointers.findIndex((e=>e.id===t.id));e<0||(i.push(t),this.currentPointers[e]=t)}i.length&&this.moveCallback(t,this.currentPointers.slice(),e)}onPointerEnd(t){t.buttons>0&&0!==t.button||(this.triggerPointerEnd(t,new l(t)),window.removeEventListener("mousemove",this.onMove),window.removeEventListener("mouseup",this.onPointerEnd),window.removeEventListener("blur",this.onWindowBlur))}onTouchEnd(t){for(const e of Array.from(t.changedTouches||[]))this.triggerPointerEnd(t,new l(e))}triggerPointerStart(t,e){return!!this.startCallback(e,t,this.currentPointers.slice())&&(this.currentPointers.push(t),this.startPointers.push(t),!0)}triggerPointerEnd(t,e){const n=this.currentPointers.findIndex((t=>t.id===e.id));n<0||(this.currentPointers.splice(n,1),this.startPointers.splice(n,1),this.endCallback(t,e,this.currentPointers.slice()))}onWindowBlur(){this.clear()}clear(){for(;this.currentPointers.length;){const t=this.currentPointers[this.currentPointers.length-1];this.currentPointers.splice(this.currentPointers.length-1,1),this.startPointers.splice(this.currentPointers.length-1,1),this.endCallback(new Event("touchend",{bubbles:!0,cancelable:!0,clientX:t.clientX,clientY:t.clientY}),t,this.currentPointers.slice())}}stop(){this.element.removeEventListener("mousedown",this.onPointerStart,c),this.element.removeEventListener("touchstart",this.onTouchStart,c),this.element.removeEventListener("touchmove",this.onMove,c),this.element.removeEventListener("touchend",this.onTouchEnd),this.element.removeEventListener("touchcancel",this.onTouchEnd),window.removeEventListener("mousemove",this.onMove),window.removeEventListener("mouseup",this.onPointerEnd),window.removeEventListener("blur",this.onWindowBlur)}}function h(t,e){return e?Math.sqrt(Math.pow(e.clientX-t.clientX,2)+Math.pow(e.clientY-t.clientY,2)):0}function d(t,e){return e?{clientX:(t.clientX+e.clientX)/2,clientY:(t.clientY+e.clientY)/2}:t}const f=t=>"object"==typeof t&&null!==t&&t.constructor===Object&&"[object Object]"===Object.prototype.toString.call(t),p=(t,...e)=>{const n=e.length;for(let i=0;i<n;i++){const n=e[i]||{};Object.entries(n).forEach((([e,n])=>{const i=Array.isArray(n)?[]:{};t[e]||Object.assign(t,{[e]:i}),f(n)?Object.assign(t[e],p(i,n)):Array.isArray(n)?Object.assign(t,{[e]:[...n]}):Object.assign(t,{[e]:n})}))}return t},m=function(t,e){return t.split(".").reduce(((t,e)=>"object"==typeof t?t[e]:void 0),e)};class g{constructor(t={}){Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),this.setOptions(t);for(const t of Object.getOwnPropertyNames(Object.getPrototypeOf(this)))t.startsWith("on")&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}setOptions(t){this.options=t?p({},this.constructor.defaults,t):{};for(const[t,e]of Object.entries(this.option("on")||{}))this.on(t,e)}option(t,...e){let n=m(t,this.options);return n&&"function"==typeof n&&(n=n.call(this,this,...e)),n}optionFor(t,e,n,...i){let o=m(e,t);var r;"string"!=typeof(r=o)||isNaN(r)||isNaN(parseFloat(r))||(o=parseFloat(o)),"true"===o&&(o=!0),"false"===o&&(o=!1),o&&"function"==typeof o&&(o=o.call(this,this,t,...i));let s=m(e,this.options);return s&&"function"==typeof s?o=s.call(this,this,t,...i,o):void 0===o&&(o=s),void 0===o?n:o}cn(t){const e=this.options.classes;return e&&e[t]||""}localize(t,e=[]){t=String(t).replace(/\{\{(\w+).?(\w+)?\}\}/g,((t,e,n)=>{let i="";return n?i=this.option(`${e[0]+e.toLowerCase().substring(1)}.l10n.${n}`):e&&(i=this.option(`l10n.${e}`)),i||(i=t),i}));for(let n=0;n<e.length;n++)t=t.split(e[n][0]).join(e[n][1]);return t.replace(/\{\{(.*?)\}\}/g,((t,e)=>e))}on(t,e){let n=[];"string"==typeof t?n=t.split(" "):Array.isArray(t)&&(n=t),this.events||(this.events=new Map),n.forEac
2h((t=>{let n=this.events.get(t);n||(this.events.set(t,[]),n=[]),n.includes(e)||n.push(e),this.events.set(t,n)}))}off(t,e){let n=[];"string"==typeof t?n=t.split(" "):Array.isArray(t)&&(n=t),n.forEach((t=>{const n=this.events.get(t);if(Array.isArray(n)){const t=n.indexOf(e);t>-1&&n.splice(t,1)}}))}emit(t,...e){[...this.events.get(t)||[]].forEach((t=>t(this,...e))),"*"!==t&&this.emit("*",t,...e)}}Object.defineProperty(g,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.0.36"}),Object.defineProperty(g,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{}});class v extends g{constructor(t={}){super(t),Object.defineProperty(this,"plugins",{enumerable:!0,configurable:!0,writable:!0,value:{}})}attachPlugins(t={}){const e=new Map;for(const[n,i]of Object.entries(t)){const t=this.option(n),o=this.plugins[n];o||!1===t?o&&!1===t&&(o.detach(),delete this.plugins[n]):e.set(n,new i(this,t||{}))}for(const[t,n]of e)this.plugins[t]=n,n.attach()}detachPlugins(t){t=t||Object.keys(this.plugins);for(const e of t){const t=this.plugins[e];t&&t.detach(),delete this.plugins[e]}return this.emit("detachPlugins"),this}}var b;!function(t){t[t.Init=0]="Init",t[t.Error=1]="Error",t[t.Ready=2]="Ready",t[t.Panning=3]="Panning",t[t.Mousemove=4]="Mousemove",t[t.Destroy=5]="Destroy"}(b||(b={}));const y=["a","b","c","d","e","f"],w={PANUP:"Move up",PANDOWN:"Move down",PANLEFT:"Move left",PANRIGHT:"Move right",ZOOMIN:"Zoom in",ZOOMOUT:"Zoom out",TOGGLEZOOM:"Toggle zoom level",TOGGLE1TO1:"Toggle zoom level",ITERATEZOOM:"Toggle zoom level",ROTATECCW:"Rotate counterclockwise",ROTATECW:"Rotate clockwise",FLIPX:"Flip horizontally",FLIPY:"Flip vertically",FITX:"Fit horizontally",FITY:"Fit vertically",RESET:"Reset",TOGGLEFS:"Toggle fullscreen"},S={content:null,width:"auto",height:"auto",panMode:"drag",touch:!0,dragMinThreshold:3,lockAxis:!1,mouseMoveFactor:1,mouseMoveFriction:.12,zoom:!0,pinchToZoom:!0,panOnlyZoomed:"auto",minScale:1,maxScale:2,friction:.25,dragFriction:.35,decelFriction:.05,click:"toggleZoom",dblClick:!1,wheel:"zoom",wheelLimit:7,spinner:!0,bounds:"auto",infinite:!1,rubberband:!0,bounce:!0,maxVelocity:75,transformParent:!1,classes:{content:"f-panzoom__content",isLoading:"is-loading",canZoomIn:"can-zoom_in",canZoomOut:"can-zoom_out",isDraggable:"is-draggable",isDragging:"is-dragging",inFullscreen:"in-fullscreen",htmlHasFullscreen:"with-panzoom-in-fullscreen"},l10n:w},E='<circle cx="25" cy="25" r="20"></circle>',x='<div class="f-spinner"><svg viewBox="0 0 50 50">'+E+E+"</svg></div>",k=t=>t&&null!==t&&t instanceof Element&&"nodeType"in t,_=(t,e)=>{t&&s(e).forEach((e=>{t.classList.remove(e)}))},L=(t,e)=>{t&&s(e).forEach((e=>{t.classList.add(e)}))},T={a:1,b:0,c:0,d:1,e:0,f:0},O=1e4,P="mousemove",C="drag",A="content",M="auto";let R=null,j=null;class D extends v{get fits(){return this.contentRect.width-this.contentRect.fitWidth<1&&this.contentRect.height-this.contentRect.fitHeight<1}get isTouchDevice(){return null===j&&(j=window.matchMedia("(hover: none)").matches),j}get isMobile(){return null===R&&(R=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)),R}get panMode(){return this.options.panMode!==P||this.isTouchDevice?C:P}get panOnlyZoomed(){const t=this.options.panOnlyZoomed;return t===M?this.isTouchDevice:t}get isInfinite(){return this.option("infinite")}get angle(){return 180*Math.atan2(this.current.b,this.current.a)/Math.PI||0}get targetAngle(){return 180*Math.atan2(this.target.b,this.target.a)/Math.PI||0}get scale(){const{a:t,b:e}=this.current;return Math.sqrt(t*t+e*e)||1}get targetScale(){const{a:t,b:e}=this.target;return Math.sqrt(t*t+e*e)||1}get minScale(){return this.option("minScale")||1}get fullScale(){const{contentRect:t}=this;return t.fullWidth/t.fitWidth||1}get maxScale(){return this.fullScale*(this.option("maxScale")||1)||1}get coverScale(){const{containerRect:t,contentRect:e}=this,n=Math.max(t.height/e.fitHeight,t.width/e.fitWidth)||1;return Math.min(this.fullScale,n)}get isScaling(){return Math.abs(this.targetScale-this.scale)>1e-5&&!this.isResting}get isContentLoading(){const t=this.content;return!!(t&&t instanceof HTMLImageElement)&&!t.complete}get isResting(){if(this.isBouncingX||this.isBouncingY)return!1;for(const t of y){const e="e"==t||"f"===t?1e-4:1e-5;
2if(Math.abs(this.target[t]-this.current[t])>e)return!1}return!(!this.ignoreBounds&&!this.checkBounds().inBounds)}constructor(t,e={},n={}){var i;if(super(e),Object.defineProperty(this,"pointerTracker",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"resizeObserver",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"updateTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"clickTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"rAF",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"isTicking",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"ignoreBounds",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isBouncingX",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isBouncingY",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"clicks",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"trackingPoints",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"pwt",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"cwd",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"pmme",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"friction",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:b.Init}),Object.defineProperty(this,"isDragging",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"content",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"spinner",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"containerRect",{enumerable:!0,configurable:!0,writable:!0,value:{width:0,height:0,innerWidth:0,innerHeight:0}}),Object.defineProperty(this,"contentRect",{enumerable:!0,configurable:!0,writable:!0,value:{top:0,right:0,bottom:0,left:0,fullWidth:0,fullHeight:0,fitWidth:0,fitHeight:0,width:0,height:0}}),Object.defineProperty(this,"dragStart",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0,top:0,left:0,time:0}}),Object.defineProperty(this,"dragOffset",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0,time:0}}),Object.defineProperty(this,"current",{enumerable:!0,configurable:!0,writable:!0,value:Object.assign({},T)}),Object.defineProperty(this,"target",{enumerable:!0,configurable:!0,writable:!0,value:Object.assign({},T)}),Object.defineProperty(this,"velocity",{enumerable:!0,configurable:!0,writable:!0,value:{a:0,b:0,c:0,d:0,e:0,f:0}}),Object.defineProperty(this,"lockedAxis",{enumerable:!0,configurable:!0,writable:!0,value:!1}),!t)throw new Error("Container Element Not Found");this.container=t,this.initContent(),this.attachPlugins(Object.assign(Object.assign({},D.Plugins),n)),this.emit("attachPlugins"),this.emit("init");const o=this.content;if(o.addEventListener("load",this.onLoad),o.addEventListener("error",this.onError),this.isContentLoading){if(this.option("spinner")){t.classList.add(this.cn("isLoading"));const e=r(x);!t.contains(o)||o.parentElement instanceof HTMLPictureElement?this.spinner=t.appendChild(e):this.spinner=(null===(i=o.parentElement)||void 0===i?void 0:i.insertBefore(e,o))||null}this.emit("beforeLoad")}else queueMicrotask((()=>{this.enable()}))}initContent(){const{container:t}=this,e=this.cn(A);let n=this.option(A)||t.querySelector(`.${e}`);if(n||(n=t.querySelector("img,picture")||t.firstElementChild,n&&L(n,e)),n instanceof HTMLPictureElement&&(n=n.querySelector("img")),!n)throw new Error("No content found");this.content=n}onLoad(){const{spinner:t,container:e,state:n}=this;t&&(t.remove(),this.spinner=null),this.option("spinner")&&e.classList.remove(this.cn("isLoading")),this.emit
2("afterLoad"),n===b.Init?this.enable():this.updateMetrics()}onError(){this.state!==b.Destroy&&(this.spinner&&(this.spinner.remove(),this.spinner=null),this.stop(),this.detachEvents(),this.state=b.Error,this.emit("error"))}getNextScale(t){const{fullScale:e,targetScale:n,coverScale:i,maxScale:o,minScale:r}=this;let s=r;switch(t){case"toggleMax":s=n-r<.5*(o-r)?o:r;break;case"toggleCover":s=n-r<.5*(i-r)?i:r;break;case"toggleZoom":s=n-r<.5*(e-r)?e:r;break;case"iterateZoom":let t=[1,e,o].sort(((t,e)=>t-e)),a=t.findIndex((t=>t>n+1e-5));s=t[a]||1}return s}attachObserver(){var t;const e=()=>{const{container:t,containerRect:e}=this;return Math.abs(e.width-t.getBoundingClientRect().width)>.1||Math.abs(e.height-t.getBoundingClientRect().height)>.1};this.resizeObserver||void 0===window.ResizeObserver||(this.resizeObserver=new ResizeObserver((()=>{this.updateTimer||(e()?(this.onResize(),this.isMobile&&(this.updateTimer=setTimeout((()=>{e()&&this.onResize(),this.updateTimer=null}),500))):this.updateTimer&&(clearTimeout(this.updateTimer),this.updateTimer=null))}))),null===(t=this.resizeObserver)||void 0===t||t.observe(this.container)}detachObserver(){var t;null===(t=this.resizeObserver)||void 0===t||t.disconnect()}attachEvents(){const{container:t}=this;t.addEventListener("click",this.onClick,{passive:!1,capture:!1}),t.addEventListener("wheel",this.onWheel,{passive:!1}),this.pointerTracker=new u(t,{start:this.onPointerDown,move:this.onPointerMove,end:this.onPointerUp}),document.addEventListener(P,this.onMouseMove)}detachEvents(){var t;const{container:e}=this;e.removeEventListener("click",this.onClick,{passive:!1,capture:!1}),e.removeEventListener("wheel",this.onWheel,{passive:!1}),null===(t=this.pointerTracker)||void 0===t||t.stop(),this.pointerTracker=null,document.removeEventListener(P,this.onMouseMove),document.removeEventListener("keydown",this.onKeydown,!0),this.clickTimer&&(clearTimeout(this.clickTimer),this.clickTimer=null),this.updateTimer&&(clearTimeout(this.updateTimer),this.updateTimer=null)}animate(){this.setTargetForce();const t=this.friction,e=this.option("maxVelocity");for(const n of y)t?(this.velocity[n]*=1-t,e&&!this.isScaling&&(this.velocity[n]=Math.max(Math.min(this.velocity[n],e),-1*e)),this.current[n]+=this.velocity[n]):this.current[n]=this.target[n];this.setTransform(),this.setEdgeForce(),!this.isResting||this.isDragging?this.rAF=requestAnimationFrame((()=>this.animate())):this.stop("current")}setTargetForce(){for(const t of y)"e"===t&&this.isBouncingX||"f"===t&&this.isBouncingY||(this.velocity[t]=(1/(1-this.friction)-1)*(this.target[t]-this.current[t]))}checkBounds(t=0,e=0){const{current:n}=this,i=n.e+t,o=n.f+e,r=this.getBounds(),{x:s,y:a}=r,l=s.min,c=s.max,u=a.min,h=a.max;let d=0,f=0;return l!==1/0&&i<l?d=l-i:c!==1/0&&i>c&&(d=c-i),u!==1/0&&o<u?f=u-o:h!==1/0&&o>h&&(f=h-o),Math.abs(d)<1e-4&&(d=0),Math.abs(f)<1e-4&&(f=0),Object.assign(Object.assign({},r),{xDiff:d,yDiff:f,inBounds:!d&&!f})}clampTargetBounds(){const{target:t}=this,{x:e,y:n}=this.getBounds();e.min!==1/0&&(t.e=Math.max(t.e,e.min)),e.max!==1/0&&(t.e=Math.min(t.e,e.max)),n.min!==1/0&&(t.f=Math.max(t.f,n.min)),n.max!==1/0&&(t.f=Math.min(t.f,n.max))}calculateContentDim(t=this.current){const{content:e,contentRect:n}=this,{fitWidth:i,fitHeight:o,fullWidth:r,fullHeight:s}=n;let a=r,l=s;if(this.option("zoom")||0!==this.angle){const n=!(e instanceof HTMLImageElement||"none"!==window.getComputedStyle(e).maxWidth&&"none"!==window.getComputedStyle(e).maxHeight),c=n?r:i,u=n?s:o,h=this.getMatrix(t),d=new DOMPoint(0,0).matrixTransform(h),f=new DOMPoint(0+c,0).matrixTransform(h),p=new DOMPoint(0+c,0+u).matrixTransform(h),m=new DOMPoint(0,0+u).matrixTransform(h),g=Math.abs(p.x-d.x),v=Math.abs(p.y-d.y),b=Math.abs(m.x-f.x),y=Math.abs(m.y-f.y);a=Math.max(g,b),l=Math.max(v,y)}return{contentWidth:a,contentHeight:l}}setEdgeForce(){if(this.ignoreBounds||this.isDragging||this.panMode===P||this.targetScale<this.scale)return this.isBouncingX=!1,void(this.isBouncingY=!1);const{target:t}=this,{x:e,y:n,xDiff:i,yDiff:o}=this.checkBounds(),r=this.option("maxVelocity");let s=this.velocity.e,a=this.velocity.f;0!==i?(this.isBouncingX=!0,i*s<=0?s+=.14*i:(s=.14*i,e.min!==1/0&&(this.target.e=Math.max(t.e,e.min)),e.max!==1/0&&(this.target.e=Math.min(t.e,e.max))),r&&(s=Math.max(Math.min(s,r),-1*r))):this.isBouncingX=!1,0!==o?(this.isBouncingY=!0,o*a<=0?a+=.14*o:(a=.14*o,n.min!==1/0&&(this.target.f=Math.max(t.f,n.min)),n.max!==1/0&&(this.target.f=Math.min(t.f,n.max))),r&&(a=Math.max(Math.min(a,r),-1*r))):this.isBouncingY=!1,this.isBouncingX&&(this.velocity.e=s),this.isBouncingY&&(this.velocity.f=a)}enable(){const{content:t}=this,e=new DOMMatrixReadOnly(window.getComputedStyle(t).transform);for(const t of y)this.current[t]=this.target[t]=e[t];this.updateMetrics(),this.attachObserver(),this.attachEvents(),this.state=b.Ready,this.emit
2("ready")}onClick(t){var e;"click"===t.type&&0===t.detail&&(this.dragOffset.x=0,this.dragOffset.y=0),this.isDragging&&(null===(e=this.pointerTracker)||void 0===e||e.clear(),this.trackingPoints=[],this.startDecelAnim());const n=t.target;if(!n||t.defaultPrevented)return;if(n.hasAttribute("disabled"))return t.preventDefault(),void t.stopPropagation();if((()=>{const t=window.getSelection();return t&&"Range"===t.type})()&&!n.closest("button"))return;const i=n.closest("[data-panzoom-action]"),o=n.closest("[data-panzoom-change]"),r=i||o,s=r&&k(r)?r.dataset:null;if(s){const e=s.panzoomChange,n=s.panzoomAction;if((e||n)&&t.preventDefault(),e){let n={};try{n=JSON.parse(e)}catch(t){console&&console.warn("The given data was not valid JSON")}return void this.applyChange(n)}if(n)return void(this[n]&&this[n]())}if(Math.abs(this.dragOffset.x)>3||Math.abs(this.dragOffset.y)>3)return t.preventDefault(),void t.stopPropagation();if(n.closest("[data-fancybox]"))return;const a=this.content.getBoundingClientRect(),l=this.dragStart;if(l.time&&!this.canZoomOut()&&(Math.abs(a.x-l.x)>2||Math.abs(a.y-l.y)>2))return;this.dragStart.time=0;const c=e=>{this.option("zoom",t)&&e&&"string"==typeof e&&/(iterateZoom)|(toggle(Zoom|Full|Cover|Max)|(zoomTo(Fit|Cover|Max)))/.test(e)&&"function"==typeof this[e]&&(t.preventDefault(),this[e]({event:t}))},u=this.option("click",t),h=this.option("dblClick",t);h?(this.clicks++,1==this.clicks&&(this.clickTimer=setTimeout((()=>{1===this.clicks?(this.emit("click",t),!t.defaultPrevented&&u&&c(u)):(this.emit("dblClick",t),t.defaultPrevented||c(h)),this.clicks=0,this.clickTimer=null}),350))):(this.emit("click",t),!t.defaultPrevented&&u&&c(u))}addTrackingPoint(t){const e=this.trackingPoints.filter((t=>t.time>Date.now()-100));e.push(t),this.trackingPoints=e}onPointerDown(t,e,n){var i;if(!1===this.option("touch",t))return!1;this.pwt=0,this.dragOffset={x:0,y:0,time:0},this.trackingPoints=[];const o=this.content.getBoundingClientRect();if(this.dragStart={x:o.x,y:o.y,top:o.top,left:o.left,time:Date.now()},this.clickTimer)return!1;if(this.panMode===P&&this.targetScale>1)return t.preventDefault(),t.stopPropagation(),!1;const r=t.composedPath()[0];if(!n.length){if(["TEXTAREA","OPTION","INPUT","SELECT","VIDEO","IFRAME"].includes(r.nodeName)||r.closest("[contenteditable],[data-selectable],[data-draggable],[data-clickable],[data-panzoom-change],[data-panzoom-action]"))return!1;null===(i=window.getSelection())||void 0===i||i.removeAllRanges()}if("mousedown"===t.type)["A","BUTTON"].includes(r.nodeName)||t.preventDefault();else if(Math.abs(this.velocity.a)>.3)return!1;return this.target.e=this.current.e,this.target.f=this.current.f,this.stop(),this.isDragging||(this.isDragging=!0,this.addTrackingPoint(e),this.emit("touchStart",t)),!0}onPointerMove(t,n,i){if(!1===this.option("touch",t))return;if(!this.isDragging)return;if(n.length<2&&this.panOnlyZoomed&&e(this.targetScale)<=e(this.minScale))return;if(this.emit("touchMove",t),t.defaultPrevented)return;this.addTrackingPoint(n[0]);const{content:r}=this,s=d(i[0],i[1]),a=d(n[0],n[1]);let l=0,c=0;if(n.length>1){const t=r.getBoundingClientRect();l=s.clientX-t.left-.5*t.width,c=s.clientY-t.top-.5*t.height}const u=h(i[0],i[1]),f=h(n[0],n[1]);let p=u?f/u:1,m=a.clientX-s.clientX,g=a.clientY-s.clientY;this.dragOffset.x+=m,this.dragOffset.y+=g,this.dragOffset.time=Date.now()-this.dragStart.time;let v=e(this.targetScale)===e(this.minScale)&&this.option("lockAxis");if(v&&!this.lockedAxis)if("xy"===v||"y"===v||"touchmove"===t.type){if(Math.abs(this.dragOffset.x)<6&&Math.abs(this.dragOffset.y)<6)return void t.preventDefault();const e=Math.abs(180*Math.atan2(this.dragOffset.y,this.dragOffset.x)/Math.PI);this.lockedAxis=e>45&&e<135?"y":"x",this.dragOffset.x=0,this.dragOffset.y=0,m=0,g=0}else this.lockedAxis=v;if(o(t.target,this.content)&&(v="x",this.dragOffset.y=0),v&&"xy"!==v&&this.lockedAxis!==v&&e(this.targetScale)===e(this.minScale))return;t.cancelable&&t.preventDefault(),this.container.classList.add(this.cn("isDragging"));const b=this.checkBounds(m,g);this.option("rubberband")?("x"!==this.isInfinite&&(b.xDiff>0&&m<0||b.xDiff<0&&m>0)&&(m*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitWidth*b.xDiff))),"y"!==this.isInfinite&&(b.yDiff>0&&g<0||b.yDiff<0&&g>0)&&(g*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitHeight*b.yDiff)))):(b.xDiff&&(m=0),b.yDiff&&(g=0));const y=this.targetScale,w=this.minScale,S=this.maxScale;y<.5*w&&(p=Math.max(p,w)),y>1.5*S&&(p=Math.min(p,S)),"y"===this.lockedAxis&&e(y)===e(w)&&(m=0),"x"===this.lockedAxis&&e(y)===e(w)&&(g=0),this.applyChange({originX:l,originY:c,panX:m,panY:g,scale:p,friction:this.option("dragFriction"),ignoreBounds:!0})}onPointerUp(t,e,n){if(n.length)return this.dragOffset.x=0,this.dragOffset.y=0,void(this.trackingPoints=[]);this.container.classList.remove(this.cn("isDragging")),this.isDragging&&(this.addTrackingPoint(e),this.panOnlyZoomed&&this.contentRect.width-this.contentRect.fitWidth<1&&this.contentRect.height-this.contentRect.fitHeight<1&&(this.trackingPoints=[]),o(t.target,this.content)&&"y"===this.lockedAxis&&(this.trackingPoints=[]),this.emit
2("touchEnd",t),this.isDragging=!1,this.lockedAxis=!1,this.state!==b.Destroy&&(t.defaultPrevented||this.startDecelAnim()))}startDecelAnim(){var t;const n=this.isScaling;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.isBouncingX=!1,this.isBouncingY=!1;for(const t of y)this.velocity[t]=0;this.target.e=this.current.e,this.target.f=this.current.f,_(this.container,"is-scaling"),_(this.container,"is-animating"),this.isTicking=!1;const{trackingPoints:i}=this,o=i[0],r=i[i.length-1];let s=0,a=0,l=0;r&&o&&(s=r.clientX-o.clientX,a=r.clientY-o.clientY,l=r.time-o.time);const c=(null===(t=window.visualViewport)||void 0===t?void 0:t.scale)||1;1!==c&&(s*=c,a*=c);let u=0,h=0,d=0,f=0,p=this.option("decelFriction");const m=this.targetScale;if(l>0){d=Math.abs(s)>3?s/(l/30):0,f=Math.abs(a)>3?a/(l/30):0;const t=this.option("maxVelocity");t&&(d=Math.max(Math.min(d,t),-1*t),f=Math.max(Math.min(f,t),-1*t))}d&&(u=d/(1/(1-p)-1)),f&&(h=f/(1/(1-p)-1)),("y"===this.option("lockAxis")||"xy"===this.option("lockAxis")&&"y"===this.lockedAxis&&e(m)===this.minScale)&&(u=d=0),("x"===this.option("lockAxis")||"xy"===this.option("lockAxis")&&"x"===this.lockedAxis&&e(m)===this.minScale)&&(h=f=0);const g=this.dragOffset.x,v=this.dragOffset.y,b=this.option("dragMinThreshold")||0;Math.abs(g)<b&&Math.abs(v)<b&&(u=h=0,d=f=0),(this.option("zoom")&&(m<this.minScale-1e-5||m>this.maxScale+1e-5)||n&&!u&&!h)&&(p=.35),this.applyChange({panX:u,panY:h,friction:p}),this.emit("decel",d,f,g,v)}onWheel(t){var e=[-t.deltaX||0,-t.deltaY||0,-t.detail||0].reduce((function(t,e){return Math.abs(e)>Math.abs(t)?e:t}));const n=Math.max(-1,Math.min(1,e));if(this.emit("wheel",t,n),this.panMode===P)return;if(t.defaultPrevented)return;const i=this.option("wheel");"pan"===i?(t.preventDefault(),this.panOnlyZoomed&&!this.canZoomOut()||this.applyChange({panX:2*-t.deltaX,panY:2*-t.deltaY,bounce:!1})):"zoom"===i&&!1!==this.option("zoom")&&this.zoomWithWheel(t)}onMouseMove(t){this.panWithMouse(t)}onKeydown(t){"Escape"===t.key&&this.toggleFS()}onResize(){this.updateMetrics(),this.checkBounds().inBounds||this.requestTick()}setTransform(){this.emit("beforeTransform");const{current:t,target:n,content:i,contentRect:o}=this,r=Object.assign({},T);for(const i of y){const o="e"==i||"f"===i?O:1e5;r[i]=e(t[i],o),Math.abs(n[i]-t[i])<("e"==i||"f"===i?.51:.001)&&(t[i]=n[i])}let{a:s,b:a,c:l,d:c,e:u,f:h}=r,d=`matrix(${s}, ${a}, ${l}, ${c}, ${u}, ${h})`,f=i.parentElement instanceof HTMLPictureElement?i.parentElement:i;if(this.option("transformParent")&&(f=f.parentElement||f),f.style.transform===d)return;f.style.transform=d;const{contentWidth:p,contentHeight:m}=this.calculateContentDim();o.width=p,o.height=m,this.emit("afterTransform")}updateMetrics(t=!1){var n;if(!this||this.state===b.Destroy)return;if(this.isContentLoading)return;const i=Math.max(1,(null===(n=window.visualViewport)||void 0===n?void 0:n.scale)||1),{container:o,content:r}=this,s=r instanceof HTMLImageElement,a=o.getBoundingClientRect(),l=getComputedStyle(this.container);let c=a.width*i,u=a.height*i;const h=parseFloat(l.paddingTop)+parseFloat(l.paddingBottom),d=c-(parseFloat(l.paddingLeft)+parseFloat(l.paddingRight)),f=u-h;this.containerRect={width:c,height:u,innerWidth:d,innerHeight:f};const p=parseFloat(r.dataset.width||"")||(t=>{let e=0;return e=t instanceof HTMLImageElement?t.naturalWidth:t instanceof SVGElement?t.width.baseVal.value:Math.max(t.offsetWidth,t.scrollWidth),e||0})(r),m=parseFloat(r.dataset.height||"")||(t=>{let e=0;return e=t instanceof HTMLImageElement?t.naturalHeight:t instanceof SVGElement?t.height.baseVal.value:Math.max(t.offsetHeight,t.scrollHeight),e||0})(r);let g=this.option("width",p)||M,v=this.option("height",m)||M;const y=g===M,w=v===M;"number"!=typeof g&&(g=p),"number"!=typeof v&&(v=m),y&&(g=p*(v/m)),w&&(v=m/(p/g));let S=r.parentElement instanceof HTMLPictureElement?r.parentElement:r;this.option("transformParent")&&(S=S.parentElement||S);const E=S.getAttribute("style")||"";S.style.setProperty("transform","none","important"),s&&(S.style.width="",S.style.height=""),S.offsetHeight;const x=r.getBoundingClientRect();let k=x.width*i,_=x.height*i,L=k,T=_;k=Math.min(k,g),_=Math.min(_,v),s?({width:k,height:_}=((t,e,n,i)=>{const o=n/t,r=i/e,s=Math.min(o,r);return{width:t*=s,height:e*=s}})(g,v,k,_)):(k=Math.min(k,g),_=Math.min(_,v));let O=.5*(T-_),P=.5*(L-k);this.contentRect=Object.assign(Object.assign({},this.contentRect),{top:x.top-a.top+O,bottom:a.bottom-x.bottom+O,left:x.left-a.left+P,right:a.right-x.right+P,fitWidth:k,fitHeight:_,width:k,height:_,fullWidth:g,fullHeight:v}),S.style.cssText=E,s&&(S.style.width=`${k}px`,S.style.height=`${_}
2px`),this.setTransform(),!0!==t&&this.emit("refresh"),this.ignoreBounds||(e(this.targetScale)<e(this.minScale)?this.zoomTo(this.minScale,{friction:0}):this.targetScale>this.maxScale?this.zoomTo(this.maxScale,{friction:0}):this.state===b.Init||this.checkBounds().inBounds||this.requestTick()),this.updateControls()}calculateBounds(){const{contentWidth:t,contentHeight:n}=this.calculateContentDim(this.target),{targetScale:i,lockedAxis:o}=this,{fitWidth:r,fitHeight:s}=this.contentRect;let a=0,l=0,c=0,u=0;const h=this.option("infinite");if(!0===h||o&&h===o)a=-1/0,c=1/0,l=-1/0,u=1/0;else{let{containerRect:o,contentRect:h}=this,d=e(r*i,O),f=e(s*i,O),{innerWidth:p,innerHeight:m}=o;if(o.width===d&&(p=o.width),o.width===f&&(m=o.height),t>p){c=.5*(t-p),a=-1*c;let e=.5*(h.right-h.left);a+=e,c+=e}if(r>p&&t<p&&(a-=.5*(r-p),c-=.5*(r-p)),n>m){u=.5*(n-m),l=-1*u;let t=.5*(h.bottom-h.top);l+=t,u+=t}s>m&&n<m&&(a-=.5*(s-m),c-=.5*(s-m))}return{x:{min:a,max:c},y:{min:l,max:u}}}getBounds(){const t=this.option("bounds");return t!==M?t:this.calculateBounds()}updateControls(){const t=this,n=t.container,{panMode:i,contentRect:o,targetScale:r,minScale:s}=t;let l=s,c=t.option("click")||!1;c&&(l=t.getNextScale(c));let u=t.canZoomIn(),h=t.canZoomOut(),d=i===C&&!!this.option("touch"),f=h&&d;if(d&&(e(r)<e(s)&&!this.panOnlyZoomed&&(f=!0),(e(o.width,1)>e(o.fitWidth,1)||e(o.height,1)>e(o.fitHeight,1))&&(f=!0)),e(o.width*r,1)<e(o.fitWidth,1)&&(f=!1),i===P&&(f=!1),a(n,this.cn("isDraggable"),f),!this.option("zoom"))return;let p=u&&e(l)>e(r),m=!p&&!f&&h&&e(l)<e(r);a(n,this.cn("canZoomIn"),p),a(n,this.cn("canZoomOut"),m);for(const t of n.querySelectorAll("[data-panzoom-action]")){let e=!1,n=!1;switch(t.dataset.panzoomAction){case"zoomIn":u?e=!0:n=!0;break;case"zoomOut":h?e=!0:n=!0;break;case"toggleZoom":case"iterateZoom":u||h?e=!0:n=!0;const i=t.querySelector("g");i&&(i.style.display=u?"":"none")}e?(t.removeAttribute("disabled"),t.removeAttribute("tabindex")):n&&(t.setAttribute("disabled",""),t.setAttribute("tabindex","-1"))}}panTo({x:t=this.target.e,y:e=this.target.f,scale:n=this.targetScale,friction:i=this.option("friction"),angle:o=0,originX:r=0,originY:s=0,flipX:a=!1,flipY:l=!1,ignoreBounds:c=!1}){this.state!==b.Destroy&&this.applyChange({panX:t-this.target.e,panY:e-this.target.f,scale:n/this.targetScale,angle:o,originX:r,originY:s,friction:i,flipX:a,flipY:l,ignoreBounds:c})}applyChange({panX:t=0,panY:n=0,scale:i=1,angle:o=0,originX:r=-this.current.e,originY:s=-this.current.f,friction:a=this.option("friction"),flipX:l=!1,flipY:c=!1,ignoreBounds:u=!1,bounce:h=this.option("bounce")}){const d=this.state;if(d===b.Destroy)return;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.friction=a||0,this.ignoreBounds=u;const{current:f}=this,p=f.e,m=f.f,g=this.getMatrix(this.target);let v=(new DOMMatrix).translate(p,m).translate(r,s).translate(t,n);if(this.option("zoom")){if(!u){const t=this.targetScale,e=this.minScale,n=this.maxScale;t*i<e&&(i=e/t),t*i>n&&(i=n/t)}v=v.scale(i)}v=v.translate(-r,-s).translate(-p,-m).multiply(g),o&&(v=v.rotate(o)),l&&(v=v.scale(-1,1)),c&&(v=v.scale(1,-1));for(const t of y)"e"!==t&&"f"!==t&&(v[t]>this.minScale+1e-5||v[t]<this.minScale-1e-5)?this.target[t]=v[t]:this.target[t]=e(v[t],O);(this.targetScale<this.scale||Math.abs(i-1)>.1||this.panMode===P||!1===h)&&!u&&this.clampTargetBounds(),d===b.Init?this.animate():this.isResting||(this.state=b.Panning,this.requestTick())}stop(t=!1){if(this.state===b.Init||this.state===b.Destroy)return;const e=this.isTicking;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.isBouncingX=!1,this.isBouncingY=!1;for(const e of y)this.velocity[e]=0,"current"===t?this.current[e]=this.target[e]:"target"===t&&(this.target[e]=this.current[e]);this.setTransform(),_(this.container,"is-scaling"),_(this.container,"is-animating"),this.isTicking=!1,this.state=b.Ready,e&&(this.emit
2("endAnimation"),this.updateControls())}requestTick(){this.isTicking||(this.emit("startAnimation"),this.updateControls(),L(this.container,"is-animating"),this.isScaling&&L(this.container,"is-scaling")),this.isTicking=!0,this.rAF||(this.rAF=requestAnimationFrame((()=>this.animate())))}panWithMouse(t,n=this.option("mouseMoveFriction")){if(this.pmme=t,this.panMode!==P||!t)return;if(e(this.targetScale)<=e(this.minScale))return;this.emit("mouseMove",t);const{container:i,containerRect:o,contentRect:r}=this,s=o.width,a=o.height,l=i.getBoundingClientRect(),c=(t.clientX||0)-l.left,u=(t.clientY||0)-l.top;let{contentWidth:h,contentHeight:d}=this.calculateContentDim(this.target);const f=this.option("mouseMoveFactor");f>1&&(h!==s&&(h*=f),d!==a&&(d*=f));let p=.5*(h-s)-c/s*100/100*(h-s);p+=.5*(r.right-r.left);let m=.5*(d-a)-u/a*100/100*(d-a);m+=.5*(r.bottom-r.top),this.applyChange({panX:p-this.target.e,panY:m-this.target.f,friction:n})}zoomWithWheel(t){if(this.state===b.Destroy||this.state===b.Init)return;const n=Date.now();if(n-this.pwt<45)return void t.preventDefault();this.pwt=n;var i=[-t.deltaX||0,-t.deltaY||0,-t.detail||0].reduce((function(t,e){return Math.abs(e)>Math.abs(t)?e:t}));const o=Math.max(-1,Math.min(1,i)),{targetScale:r,maxScale:s,minScale:a}=this;let l=r*(100+45*o)/100;e(l)<e(a)&&e(r)<=e(a)?(this.cwd+=Math.abs(o),l=a):e(l)>e(s)&&e(r)>=e(s)?(this.cwd+=Math.abs(o),l=s):(this.cwd=0,l=Math.max(Math.min(l,s),a)),this.cwd>this.option("wheelLimit")||(t.preventDefault(),e(l)!==e(r)&&this.zoomTo(l,{event:t}))}canZoomIn(){return this.option("zoom")&&(e(this.contentRect.width,1)<e(this.contentRect.fitWidth,1)||e(this.targetScale)<e(this.maxScale))}canZoomOut(){return this.option("zoom")&&e(this.targetScale)>e(this.minScale)}zoomIn(t=1.25,e){this.zoomTo(this.targetScale*t,e)}zoomOut(t=.8,e){this.zoomTo(this.targetScale*t,e)}zoomToFit(t){this.zoomTo("fit",t)}zoomToCover(t){this.zoomTo("cover",t)}zoomToFull(t){this.zoomTo("full",t)}zoomToMax(t){this.zoomTo("max",t)}toggleZoom(t){this.zoomTo(this.getNextScale("toggleZoom"),t)}toggleMax(t){this.zoomTo(this.getNextScale("toggleMax"),t)}toggleCover(t){this.zoomTo(this.getNextScale("toggleCover"),t)}iterateZoom(t){this.zoomTo("next",t)}zoomTo(t=1,{friction:e=M,originX:n=M,originY:i=M,event:o}={}){if(this.isContentLoading||this.state===b.Destroy)return;const{targetScale:r,fullScale:s,maxScale:a,coverScale:l}=this;if(this.stop(),this.panMode===P&&(o=this.pmme||o),o||n===M||i===M){const t=this.content.getBoundingClientRect(),e=this.container.getBoundingClientRect(),r=o?o.clientX:e.left+.5*e.width,s=o?o.clientY:e.top+.5*e.height;n=r-t.left-.5*t.width,i=s-t.top-.5*t.height}let c=1;"number"==typeof t?c=t:"full"===t?c=s:"cover"===t?c=l:"max"===t?c=a:"fit"===t?c=1:"next"===t&&(c=this.getNextScale("iterateZoom")),c=c/r||1,e=e===M?c>1?.15:.25:e,this.applyChange({scale:c,originX:n,originY:i,friction:e}),o&&this.panMode===P&&this.panWithMouse(o,e)}rotateCCW(){this.applyChange({angle:-90})}rotateCW(){this.applyChange({angle:90})}flipX(){this.applyChange({flipX:!0})}flipY(){this.applyChange({flipY:!0})}fitX(){this.stop("target");const{containerRect:t,contentRect:e,target:n}=this;this.applyChange({panX:.5*t.width-(e.left+.5*e.fitWidth)-n.e,panY:.5*t.height-(e.top+.5*e.fitHeight)-n.f,scale:t.width/e.fitWidth/this.targetScale,originX:0,originY:0,ignoreBounds:!0})}fitY(){this.stop("target");const{containerRect:t,contentRect:e,target:n}=this;this.applyChange({panX:.5*t.width-(e.left+.5*e.fitWidth)-n.e,panY:.5*t.innerHeight-(e.top+.5*e.fitHeight)-n.f,scale:t.height/e.fitHeight/this.targetScale,originX:0,originY:0,ignoreBounds:!0})}toggleFS(){const{container:t}=this,e=this.cn("inFullscreen"),n=this.cn("htmlHasFullscreen");t.classList.toggle(e);const i=t.classList.contains(e);i?(document.documentElement.classList.add(n),document.addEventListener("keydown",this.onKeydown,!0)):(document.documentElement.classList.remove(n),document.removeEventListener("keydown",this.onKeydown,!0)),this.updateMetrics(),this.emit(i?"enterFS":"exitFS")}getMatrix(t=this.current){const{a:e,b:n,c:i,d:o,e:r,f:s}=t;return new DOMMatrix([e,n,i,o,r,s])}reset(t){if(this.state!==b.Init&&this.state!==b.Destroy){this.stop("current");for(const t of y)this.target[t]=T[t];this.target.a=this.minScale,this.target.d=this.minScale,this.clampTargetBounds(),this.isResting||(this.friction=void 0===t?this.option("friction"):t,this.state=b.Panning,this.requestTick())}}destroy(){this.stop(),this.state=b.Destroy,this.detachEvents(),this.detachObserver();const{container:t,content:e}=this,n=this.option("classes")||{};for(const e of Object.values(n))t.classList.remove(e+"");e&&(e.removeEventListener("load",this.onLoad),e.removeEventListener("error",this.onError)),this.detachPlugins()}}Object.defineProperty(D,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:S}),Object.defineProperty(D,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:{}});const F=function(t,e){let n=!0;return(...i)=>{n&&(n=!1,t(...i),setTimeout((()=>{n=!0}),e))}},z=(t,e)=>{let n=[];
2return t.childNodes.forEach((t=>{t.nodeType!==Node.ELEMENT_NODE||e&&!t.matches(e)||n.push(t)})),n};var I;!function(t){t[t.Init=0]="Init",t[t.Ready=1]="Ready",t[t.Destroy=2]="Destroy"}(I||(I={}));const N=t=>{if("string"==typeof t||t instanceof HTMLElement)t={html:t};else{const e=t.thumb;void 0!==e&&("string"==typeof e&&(t.thumbSrc=e),e instanceof HTMLImageElement&&(t.thumbEl=e,t.thumbElSrc=e.src,t.thumbSrc=e.src),delete t.thumb)}return Object.assign({html:"",el:null,isDom:!1,class:"",customClass:"",index:-1,dim:0,gap:0,pos:0,transition:!1},t)},q=(t={})=>Object.assign({index:-1,slides:[],dim:0,pos:-1},t);class B extends g{constructor(t,e){super(e),Object.defineProperty(this,"instance",{enumerable:!0,configurable:!0,writable:!0,value:t})}attach(){}detach(){}}class H extends B{constructor(){super(...arguments),Object.defineProperty(this,"isDynamic",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"list",{enumerable:!0,configurable:!0,writable:!0,value:null})}onRefresh(){this.refresh()}build(){let t=this.list;if(!t){t=document.createElement("ul"),L(t,this.cn("list")),t.setAttribute("role","tablist");const e=this.instance.container;e.appendChild(t),L(e,this.cn("hasDots")),this.list=t}return t}refresh(){var t;const e=this.instance.pages.length,n=Math.min(2,this.option("minCount")),i=Math.max(2e3,this.option("maxCount")),o=this.option("dynamicFrom");if(e<n||e>i)return void this.cleanup();const r="number"==typeof o&&e>5&&e>=o,s=!this.list||this.isDynamic!==r||this.list.children.length!==e;s&&this.cleanup();const l=this.build();if(a(l,this.cn("isDynamic"),!!r),s)for(let t=0;t<e;t++)l.append(this.createItem(t));let c,u=0;for(const e of[...l.children]){const n=u===this.instance.page;n&&(c=e),a(e,this.cn("isCurrent"),n),null===(t=e.children[0])||void 0===t||t.setAttribute("aria-selected",n?"true":"false");for(const t of["isBeforePrev","isPrev","isNext","isAfterNext"])_(e,this.cn(t));u++}if(c=c||l.firstChild,r&&c){const t=c.previousElementSibling,e=t&&t.previousElementSibling;L(t,this.cn("isPrev")),L(e,this.cn("isBeforePrev"));const n=c.nextElementSibling,i=n&&n.nextElementSibling;L(n,this.cn("isNext")),L(i,this.cn("isAfterNext"))}this.isDynamic=r}createItem(t=0){var e;const n=document.createElement("li");n.setAttribute("role","presentation");const i=r(this.instance.localize(this.option("dotTpl"),[["%d",t+1]]).replace(/\%i/g,t+""));return n.appendChild(i),null===(e=n.children[0])||void 0===e||e.setAttribute("role","tab"),n}cleanup(){this.list&&(this.list.remove(),this.list=null),this.isDynamic=!1,_(this.instance.container,this.cn("hasDots"))}attach(){this.instance.on(["refresh","change"],this.onRefresh)}detach(){this.instance.off(["refresh","change"],this.onRefresh),this.cleanup()}}Object.defineProperty(H,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{classes:{list:"f-carousel__dots",isDynamic:"is-dynamic",hasDots:"has-dots",dot:"f-carousel__dot",isBeforePrev:"is-before-prev",isPrev:"is-prev",isCurrent:"is-current",isNext:"is-next",isAfterNext:"is-after-next"},dotTpl:'<button type="button" data-carousel-page="%i" aria-label="{{GOTO}}"><span class="f-carousel__dot" aria-hidden="true"></span></button>',dynamicFrom:11,maxCount:1/0,minCount:2}});const U="disabled",$="next",W="prev";class X extends B{constructor(){super(...arguments),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"prev",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"next",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"isDom",{enumerable:!0,configurable:!0,writable:!0,value:!1})}onRefresh(){const t=this.instance,e=t.pages.length,n=t.page;if(e<2)return void this.cleanup();this.build();let i=this.prev,o=this.next;i&&o&&(i.removeAttribute(U),o.removeAttribute(U),t.isInfinite||(n<=0&&i.setAttribute(U,""),n>=e-1&&o.setAttribute(U,"")))}addBtn(t){var e;const n=this.instance,i=document.createElement("button");i.setAttribute("tabindex","0"),i.setAttribute("title",n.localize(`{{${t.toUpperCase()}}}`)),L(i,this.cn("button")+" "+this.cn(t===$?"isNext":"isPrev"));const o=n.isRTL?t===$?W:$:t;var r;return i.innerHTML=n.localize(this.option(`${o}Tpl`)),i.dataset[`carousel${r=t,r?r.match("^[a-z]")?r.charAt(0).toUpperCase()+r.substring(1):r:""}`]="true",null===(e=this.container)||void 0===e||e.appendChild(i),i}build(){const t=this.instance.container,e=this.cn("container");let{container:n,prev:i,next:o}=this;n||(n=t.querySelector("."+e),this.isDom=!!n),n||(n=document.createElement("div"),L(n,e),t.appendChild(n)),this.container=n,o||(o=n.querySelector("[data-carousel-next]")),o||(o=this.addBtn($)),this.next=o,i||(i=n.querySelector("[data-carousel-prev]")),i||(i=this.addBtn(W)),this.prev=i}cleanup(){this.isDom||(this.prev&&this.prev.remove(),this.next&&this.next.remove(),this.container&&this.container.remove()),this.prev=null,this.next=null,this.container=null,this.isDom=!1}attach(){this.instance.on(["refresh","change"],this.onRefresh)}detach(){this.instance.off(["refresh","change"],this.onRefresh),this.cleanup()}}Object.defineProperty(X,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{classes:{container:"f-carousel__nav",button:"f-button",isNext:"is-next",isPrev:"is-prev"},nextTpl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M9 3l9 9-9 9"/></svg>
2',prevTpl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M15 3l-9 9 9 9"/></svg>'}});class V extends B{constructor(){super(...arguments),Object.defineProperty(this,"selectedIndex",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"target",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"nav",{enumerable:!0,configurable:!0,writable:!0,value:null})}addAsTargetFor(t){this.target=this.instance,this.nav=t,this.attachEvents()}addAsNavFor(t){this.nav=this.instance,this.target=t,this.attachEvents()}attachEvents(){const{nav:t,target:e}=this;t&&e&&(t.options.initialSlide=e.options.initialPage,t.state===I.Ready?this.onNavReady(t):t.on("ready",this.onNavReady),e.state===I.Ready?this.onTargetReady(e):e.on("ready",this.onTargetReady))}onNavReady(t){t.on("createSlide",this.onNavCreateSlide),t.on("Panzoom.click",this.onNavClick),t.on("Panzoom.touchEnd",this.onNavTouch),this.onTargetChange()}onTargetReady(t){t.on("change",this.onTargetChange),t.on("Panzoom.refresh",this.onTargetChange),this.onTargetChange()}onNavClick(t,e,n){this.onNavTouch(t,t.panzoom,n)}onNavTouch(t,e,n){var i,o;if(Math.abs(e.dragOffset.x)>3||Math.abs(e.dragOffset.y)>3)return;const r=n.target,{nav:s,target:a}=this;if(!s||!a||!r)return;const l=r.closest("[data-index]");if(n.stopPropagation(),n.preventDefault(),!l)return;const c=parseInt(l.dataset.index||"",10)||0,u=a.getPageForSlide(c),h=s.getPageForSlide(c);s.slideTo(h),a.slideTo(u,{friction:(null===(o=null===(i=this.nav)||void 0===i?void 0:i.plugins)||void 0===o?void 0:o.Sync.option("friction"))||0}),this.markSelectedSlide(c)}onNavCreateSlide(t,e){e.index===this.selectedIndex&&this.markSelectedSlide(e.index)}onTargetChange(){var t,e;const{target:n,nav:i}=this;if(!n||!i)return;if(i.state!==I.Ready||n.state!==I.Ready)return;const o=null===(e=null===(t=n.pages[n.page])||void 0===t?void 0:t.slides[0])||void 0===e?void 0:e.index,r=i.getPageForSlide(o);this.markSelectedSlide(o),i.slideTo(r,null===i.prevPage&&null===n.prevPage?{friction:0}:void 0)}markSelectedSlide(t){const e=this.nav;e&&e.state===I.Ready&&(this.selectedIndex=t,[...e.slides].map((e=>{e.el&&e.el.classList[e.index===t?"add":"remove"]("is-nav-selected")})))}attach(){const t=this;let e=t.options.target,n=t.options.nav;e?t.addAsNavFor(e):n&&t.addAsTargetFor(n)}detach(){const t=this,e=t.nav,n=t.target;e&&(e.off("ready",t.onNavReady),e.off("createSlide",t.onNavCreateSlide),e.off("Panzoom.click",t.onNavClick),e.off("Panzoom.touchEnd",t.onNavTouch)),t.nav=null,n&&(n.off("ready",t.onTargetReady),n.off("refresh",t.onTargetChange),n.off("change",t.onTargetChange)),t.target=null}}Object.defineProperty(V,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{friction:.35}});const Y={Navigation:X,Dots:H,Sync:V},G="animationend",Z="isSelected",K="slide";class J extends v{get axis(){return this.isHorizontal?"e":"f"}get isEnabled(){return this.state===I.Ready}get isInfinite(){let t=!1;const{contentDim:e,viewportDim:n,pages:i,slides:o}=this,r=o[0];return i.length>=2&&r&&e+r.dim>=n&&(t=this.option("infinite")),t}get isRTL(){return"rtl"===this.option("direction")}get isHorizontal(){return"x"===this.option("axis")}constructor(t,e={},n={}){if(super(),Object.defineProperty(this,"bp",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(this,"lp",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"userOptions",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"userPlugins",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:I.Init}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"prevPage",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"viewport",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"track",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"slides",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"pages",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"panzoom",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"inTransition",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),Object.defineProperty(this,"contentDim",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"viewportDim",{enumerable:!0,configurable:!0,writable:!0,value:0}),"string"==typeof t&&(t=document.querySelector(t)),!t||!k(t))throw new Error("No Element found");this.container=t,this.slideNext=F(this.slideNext.bind(this),150),this.slidePrev=F(this.slidePrev.bind(this),150),this.userOptions=e,this.userPlugins=n,queueMicrotask((()=>{this.processOptions()}))}processOptions(){var t,e;const n=p({},J.defaults,this.userOptions);let i="";const o=n.breakpoints;if(o&&f(o))for(const[t,e]of Object.entries(o))window.matchMedia(t).matches&&f(e)&&(i+=t,p(n,e));i===this.bp&&this.state!==I.Init||(this.bp=i,this.state===I.Ready&&(n.initialSlide=(null===(e=null===(t=this.pages[this.page])||void 0===t?void 0:t.slides[0])||void 0===e?void 0:e.index)||0),this.state!==I.Init&&this.destroy(),super.setOptions(n),!1===this.option("enabled")?this.attachEvents():setTimeout((()=>{this.init()}),0))}
2init(){this.state=I.Init,this.emit("init"),this.attachPlugins(Object.assign(Object.assign({},J.Plugins),this.userPlugins)),this.emit("attachPlugins"),this.initLayout(),this.initSlides(),this.updateMetrics(),this.setInitialPosition(),this.initPanzoom(),this.attachEvents(),this.state=I.Ready,this.emit("ready")}initLayout(){const{container:t}=this,e=this.option("classes");L(t,this.cn("container")),a(t,e.isLTR,!this.isRTL),a(t,e.isRTL,this.isRTL),a(t,e.isVertical,!this.isHorizontal),a(t,e.isHorizontal,this.isHorizontal);let n=this.option("viewport")||t.querySelector(`.${e.viewport}`);n||(n=document.createElement("div"),L(n,e.viewport),n.append(...z(t,`.${e.slide}`)),t.prepend(n)),n.addEventListener("scroll",this.onScroll);let i=this.option("track")||t.querySelector(`.${e.track}`);i||(i=document.createElement("div"),L(i,e.track),i.append(...Array.from(n.childNodes))),i.setAttribute("aria-live","polite"),n.contains(i)||n.prepend(i),this.viewport=n,this.track=i,this.emit("initLayout")}initSlides(){const{track:t}=this;if(!t)return;const e=[...this.slides],n=[];[...z(t,`.${this.cn(K)}`)].forEach((t=>{if(k(t)){const e=N({el:t,isDom:!0,index:this.slides.length});n.push(e)}}));for(let t of[...this.option("slides",[])||[],...e])n.push(N(t));this.slides=n;for(let t=0;t<this.slides.length;t++)this.slides[t].index=t;
2for(const t of n)this.emit("beforeInitSlide",t,t.index),this.emit("initSlide",t,t.index);this.emit("initSlides")}setInitialPage(){const t=this.option("initialSlide");this.page="number"==typeof t?this.getPageForSlide(t):parseInt(this.option("initialPage",0)+"",10)||0}setInitialPosition(){const{track:t,pages:e,isHorizontal:n}=this;if(!t||!e.length)return;let i=this.page;e[i]||(this.page=i=0);const o=(e[i].pos||0)*(this.isRTL&&n?1:-1),r=n?`${o}px`:"0",s=n?"0":`${o}px`;t.style.transform=`translate3d(${r}, ${s}, 0) scale(1)`,this.option("adaptiveHeight")&&this.setViewportHeight()}initPanzoom(){this.panzoom&&(this.panzoom.destroy(),this.panzoom=null);const t=this.option("Panzoom")||{};this.panzoom=new D(this.viewport,p({},{content:this.track,zoom:!1,panOnlyZoomed:!1,lockAxis:this.isHorizontal?"x":"y",infinite:this.isInfinite,click:!1,dblClick:!1,touch:t=>!(this.pages.length<2&&!t.options.infinite),bounds:()=>this.getBounds(),maxVelocity:t=>Math.abs(t.target[this.axis]-t.current[this.axis])<2*this.viewportDim?100:0},t)),this.panzoom.on("*",((t,e,...n)=>{this.emit(`Panzoom.${e}`,t,...n)})),this.panzoom.on("decel",this.onDecel),this.panzoom.on("refresh",this.onRefresh),this.panzoom.on("beforeTransform",this.onBeforeTransform),this.panzoom.on("endAnimation",this.onEndAnimation)}attachEvents(){const t=this.container;t&&(t.addEventListener("click",this.onClick,{passive:!1,capture:!1}),t.addEventListener("slideTo",this.onSlideTo)),window.addEventListener("resize",this.onResize)}createPages(){let t=[];const{contentDim:e,viewportDim:n}=this;let i=this.option("slidesPerPage");i=("auto"===i||e<=n)&&!1!==this.option("fill")?1/0:parseFloat(i+"");let o=0,r=0,s=0;for(const e of this.slides)(!t.length||r+e.dim-n>.05||s>=i)&&(t.push(q()),o=t.length-1,r=0,s=0),t[o].slides.push(e),r+=e.dim+e.gap,s++;return t}processPages(){const t=this.pages,{contentDim:n,viewportDim:i,isInfinite:o}=this,r=this.option("center"),s=this.option("fill"),a=s&&r&&n>i&&!o;if(t.forEach(((t,e)=>{var o;t.index=e,t.pos=(null===(o=t.slides[0])||void 0===o?void 0:o.pos)||0,t.dim=0;for(const[e,n]of t.slides.entries())t.dim+=n.dim,e<t.slides.length-1&&(t.dim+=n.gap);a&&t.pos+.5*t.dim<.5*i?t.pos=0:a&&t.pos+.5*t.dim>=n-.5*i?t.pos=n-i:r&&(t.pos+=-.5*(i-t.dim))})),t.forEach((t=>{s&&!o&&n>i&&(t.pos=Math.max(t.pos,0),t.pos=Math.min(t.pos,n-i)),t.pos=e(t.pos,1e3),t.dim=e(t.dim,1e3),Math.abs(t.pos)<=.1&&(t.pos=0)})),o)return t;const l=[];let c;return t.forEach((t=>{const e=Object.assign({},t);c&&e.pos===c.pos?(c.dim+=e.dim,c.slides=[...c.slides,...e.slides]):(e.index=l.length,c=e,l.push(e))})),l}getPageFromIndex(t=0){const e=this.pages.length;let n;return t=parseInt((t||0).toString())||0,n=this.isInfinite?(t%e+e)%e:Math.max(Math.min(t,e-1),0),n}getSlideMetrics(t){var n,i;const o=this.isHorizontal?"width":"height";let r=0,s=0,a=t.el;const l=!(!a||a.parentNode);if(a?r=parseFloat(a.dataset[o]||"")||0:(a=document.createElement("div"),a.style.visibility="hidden",(this.track||document.body).prepend(a)),L(a,this.cn(K)+" "+t.class+" "+t.customClass),r)a.style[o]=`${r}px`,a.style["width"===o?"height":"width"]="";else{l&&(this.track||document.body).prepend(a),r=a.getBoundingClientRect()[o]*Math.max(1,(null===(n=window.visualViewport)||void 0===n?void 0:n.scale)||1);let t=a[this.isHorizontal?"offsetWidth":"offsetHeight"];t-1>r&&(r=t)}const c=getComputedStyle(a);return"content-box"===c.boxSizing&&(this.isHorizontal?(r+=parseFloat(c.paddingLeft)||0,r+=parseFloat(c.paddingRight)||0):(r+=parseFloat(c.paddingTop)||0,r+=parseFloat(c.paddingBottom)||0)),s=parseFloat(c[this.isHorizontal?"marginRight":"marginBottom"])||0,l?null===(i=a.parentElement)||void 0===i||i.removeChild(a):t.el||a.remove(),{dim:e(r,1e3),gap:e(s,1e3)}}getBounds(){const{isInfinite:t,isRTL:e,isHorizontal:n,pages:i}=this;let o={min:0,max:0};if(t)o={min:-1/0,max:1/0};else if(i.length){const t=i[0].pos,r=i[i.length-1].pos;o=e&&n?{min:t,max:r}:{min:-1*r,max:-1*t}}return{x:n?o:{min:0,max:0},y:n?{min:0,max:0}:o}}repositionSlides(){let t,{isHorizontal:n,isRTL:i,isInfinite:o,viewport:r,viewportDim:s,contentDim:a,page:l,pages:c,slides:u,panzoom:h}=this,d=0,f=0,p=0,m=0;h?m=-1*h.current[this.axis]:c[l]&&(m=c[l].pos||0),t=n?i?"right":"left":"top",i&&n&&(m*=-1);for(const n of u){const i=n.el;i?("top"===t?(i.style.right="",i.style.left=""):i.style.top="",n.index!==d?i.style[t]=0===f?"":`${e(f,1e3)}px`:i.style[t]="",p+=n.dim+n.gap,d++):f+=n.dim+n.gap}if(o&&p&&r){let i=getComputedStyle(r),o="padding",l=n?"Right":"Bottom",c=parseFloat(i[o+(n?"Left":"Top")]);m-=c,s+=c,s+=parseFloat(i[o+l]);for(const n of u)n.el&&(e(n.pos)<e(s)&&e(n.pos+n.dim+n.gap)<e(m)&&e(m)>e(a-s)&&(n.el.style[t]=`${e(f+p,1e3)}px`),e(n.pos+n.gap)>=e(a-s)&&e(n.pos)>e(m+s)&&e(m)<e(s)&&(n.el.style[t]=`-${e(p,1e3)}px`))}let g,v,b=[...this.inTransition];if(b.length>1&&(g=c[b[0]],v=c[b[1]]),g&&v){let n=0;for(const i of u)i.el?this.inTransition.has(i.index)&&g.slides.indexOf(i)<0&&(i.el.style[t]=`${e(n+(g.pos-v.pos),1e3)}px`):n+=i.dim+i.gap}}createSlideEl(t){const{track:e,slides:n}=this;if(!e||!t)return;if(t.el&&t.el.parentNode)return;const i=t.el||document.createElement("div");L(i,this.cn(K)),L(i,t.class),L(i,t.customClass);const o=t.html;o&&(o instanceof HTMLElement?i.appendChild(o):i.innerHTML=t.html+"");const r=[];
2n.forEach(((t,e)=>{t.el&&r.push(e)}));const s=t.index;let a=null;r.length&&(a=n[r.reduce(((t,e)=>Math.abs(e-s)<Math.abs(t-s)?e:t))]);const l=a&&a.el&&a.el.parentNode?a.index<t.index?a.el.nextSibling:a.el:null;e.insertBefore(i,e.contains(l)?l:null),t.el=i,this.emit("createSlide",t)}removeSlideEl(t,e=!1){const n=null==t?void 0:t.el;if(!n||!n.parentNode)return;const i=this.cn(Z);if(n.classList.contains(i)&&(_(n,i),this.emit("unselectSlide",t)),t.isDom&&!e)return n.removeAttribute("aria-hidden"),n.removeAttribute("data-index"),void(n.style.left="");this.emit("removeSlide",t);const o=new CustomEvent(G);n.dispatchEvent(o),t.el&&(t.el.remove(),t.el=null)}transitionTo(t=0,e=this.option("transition")){var n,i,o,r;if(!e)return!1;const s=this.page,{pages:a,panzoom:l}=this;t=parseInt((t||0).toString())||0;const c=this.getPageFromIndex(t);if(!l||!a[c]||a.length<2||Math.abs(((null===(i=null===(n=a[s])||void 0===n?void 0:n.slides[0])||void 0===i?void 0:i.dim)||0)-this.viewportDim)>1)return!1;let u=t>s?1:-1;this.isInfinite&&(0===s&&t===a.length-1&&(u=-1),s===a.length-1&&0===t&&(u=1));const h=a[c].pos*(this.isRTL?1:-1);if(s===c&&Math.abs(h-l.target[this.axis])<1)return!1;this.clearTransitions();const d=l.isResting;L(this.container,this.cn("inTransition"));const f=(null===(o=a[s])||void 0===o?void 0:o.slides[0])||null,p=(null===(r=a[c])||void 0===r?void 0:r.slides[0])||null;this.inTransition.add(p.index),this.createSlideEl(p);let m=f.el,g=p.el;d||e===K||(e="fadeFast",m=null);const v=this.isRTL?"next":"prev",b=this.isRTL?"prev":"next";return m&&(this.inTransition.add(f.index),f.transition=e,m.addEventListener(G,this.onAnimationEnd),m.classList.add(`f-${e}Out`,`to-${u>0?b:v}`)),g&&(p.transition=e,g.addEventListener(G,this.onAnimationEnd),g.classList.add(`f-${e}In`,`from-${u>0?v:b}`)),l.current[this.axis]=h,l.target[this.axis]=h,l.requestTick(),this.onChange(c),!0}manageSlideVisiblity(){const t=new Set,e=new Set,n=this.getVisibleSlides(parseFloat(this.option("preload",0)+"")||0);for(const i of this.slides)n.has(i)?t.add(i):e.add(i);for(const e of this.inTransition)t.add(this.slides[e]);for(const e of t)this.createSlideEl(e),this.lazyLoadSlide(e);for(const n of e)t.has(n)||this.removeSlideEl(n);this.markSelectedSlides(),this.repositionSlides()}markSelectedSlides(){if(!this.pages[this.page]||!this.pages[this.page].slides)return;const t="aria-hidden";let e=this.cn(Z);if(e)for(const n of this.slides){const i=n.el;i&&(i.dataset.index=`${n.index}`,i.classList.contains("f-thumbs__slide")?this.getVisibleSlides(0).has(n)?i.removeAttribute(t):i.setAttribute(t,"true"):this.pages[this.page].slides.includes(n)?(i.classList.contains(e)||(L(i,e),this.emit("selectSlide",n)),i.removeAttribute(t)):(i.classList.contains(e)&&(_(i,e),this.emit("unselectSlide",n)),i.setAttribute(t,"true")))}}flipInfiniteTrack(){const{axis:t,isHorizontal:e,isInfinite:n,isRTL:i,viewportDim:o,contentDim:r}=this,s=this.panzoom;if(!s||!n)return;let a=s.current[t],l=s.target[t]-a,c=0,u=.5*o;i&&e?(a<-u&&(c=-1,a+=r),a>r-u&&(c=1,a-=r)):(a>u&&(c=1,a-=r),a<-r+u&&(c=-1,a+=r)),c&&(s.current[t]=a,s.target[t]=a+l)}lazyLoadImg(t,e){const n=this,i="f-fadeIn",o="is-preloading";let s=!1,a=null;const l=()=>{s||(s=!0,a&&(a.remove(),a=null),_(e,o),e.complete&&(L(e,i),setTimeout((()=>{_(e,i)}),350)),this.option("adaptiveHeight")&&t.el&&this.pages[this.page].slides.indexOf(t)>-1&&(n.updateMetrics(),n.setViewportHeight()),this.emit("load",t))};L(e,o),e.src=e.dataset.lazySrcset||e.dataset.lazySrc||"",delete e.dataset.lazySrc,delete e.dataset.lazySrcset,e.addEventListener("error",(()=>{l()})),e.addEventListener("load",(()=>{l()})),setTimeout((()=>{const n=e.parentNode;n&&t.el&&(e.complete?l():s||(a=r(x),n.insertBefore(a,e)))}),300)}lazyLoadSlide(t){const e=t&&t.el;if(!e)return;const n=new Set;let i=Array.from(e.querySelectorAll("[data-lazy-src],[data-lazy-srcset]"));e.dataset.lazySrc&&i.push(e),i.map((t=>{t instanceof HTMLImageElement?n.add(t):t instanceof HTMLElement&&t.dataset.lazySrc&&(t.style.backgroundImage=`url('${t.dataset.lazySrc}')`,delete t.dataset.lazySrc)}));for(const e of n)this.lazyLoadImg(t,e)}onAnimationEnd(t){var e;const n=t.target,i=n?parseInt(n.dataset.index||"",10)||0:-1,o=this.slides[i],r=t.animationName;if(!n||!o||!r)return;const s=!!this.inTransition.has(i)&&o.transition;s&&r.substring(0,s.length+2)===`f-${s}`&&this.inTransition.delete(i),this.inTransition.size||this.clearTransitions(),i===this.page&&(null===(e=this.panzoom)||void 0===e?void 0:e.isResting)&&this.emit
2("settle")}onDecel(t,e=0,n=0,i=0,o=0){if(this.option("dragFree"))return void this.setPageFromPosition();const{isRTL:r,isHorizontal:s,axis:a,pages:l}=this,c=l.length,u=Math.abs(Math.atan2(n,e)/(Math.PI/180));let h=0;if(h=u>45&&u<135?s?0:n:s?e:0,!c)return;let d=this.page,f=r&&s?1:-1;const p=t.current[a]*f;let{pageIndex:m}=this.getPageFromPosition(p);Math.abs(h)>5?(l[d].dim<document.documentElement["client"+(this.isHorizontal?"Width":"Height")]-1&&(d=m),d=r&&s?h<0?d-1:d+1:h<0?d+1:d-1):d=0===i&&0===o?d:m,this.slideTo(d,{transition:!1,friction:t.option("decelFriction")})}onClick(t){const e=t.target,n=e&&k(e)?e.dataset:null;let i,o;n&&(void 0!==n.carouselPage?(o="slideTo",i=n.carouselPage):void 0!==n.carouselNext?o="slideNext":void 0!==n.carouselPrev&&(o="slidePrev")),o?(t.preventDefault(),t.stopPropagation(),e&&!e.hasAttribute("disabled")&&this[o](i)):this.emit("click",t)}onSlideTo(t){const e=t.detail||0;this.slideTo(this.getPageForSlide(e),{friction:0})}onChange(t,e=0){const n=this.page;this.prevPage=n,this.page=t,this.option("adaptiveHeight")&&this.setViewportHeight(),t!==n&&(this.markSelectedSlides(),this.emit("change",t,n,e))}onRefresh(){let t=this.contentDim,e=this.viewportDim;this.updateMetrics(),this.contentDim===t&&this.viewportDim===e||this.slideTo(this.page,{friction:0,transition:!1})}onScroll(){var t;null===(t=this.viewport)||void 0===t||t.scroll(0,0)}onResize(){this.option("breakpoints")&&this.processOptions()}onBeforeTransform(t){this.lp!==t.current[this.axis]&&(this.flipInfiniteTrack(),this.manageSlideVisiblity()),this.lp=t.current.e}onEndAnimation(){this.inTransition.size||this.emit("settle")}reInit(t=null,e=null){this.destroy(),this.state=I.Init,this.prevPage=null,this.userOptions=t||this.userOptions,this.userPlugins=e||this.userPlugins,this.processOptions()}slideTo(t=0,{friction:e=this.option("friction"),transition:n=this.option("transition")}={}){if(this.state===I.Destroy)return;t=parseInt((t||0).toString())||0;const i=this.getPageFromIndex(t),{axis:o,isHorizontal:r,isRTL:s,pages:a,panzoom:l}=this,c=a.length,u=s&&r?1:-1;if(!l||!c)return;if(this.page!==i){const e=new Event("beforeChange",{bubbles:!0,cancelable:!0});if(this.emit("beforeChange",e,t),e.defaultPrevented)return}if(this.transitionTo(t,n))return;let h=a[i].pos;if(this.isInfinite){const e=this.contentDim,n=l.target[o]*u;2===c?h+=e*Math.floor(parseFloat(t+"")/2):h=[h,h-e,h+e].reduce((function(t,e){return Math.abs(e-n)<Math.abs(t-n)?e:t}))}h*=u,Math.abs(l.target[o]-h)<1||(l.panTo({x:r?h:0,y:r?0:h,friction:e}),this.onChange(i))}slideToClosest(t){if(this.panzoom){const{pageIndex:e}=this.getPageFromPosition();this.slideTo(e,t)}}slideNext(){this.slideTo(this.page+1)}slidePrev(){this.slideTo(this.page-1)}clearTransitions(){this.inTransition.clear(),_(this.container,this.cn("inTransition"));const t=["to-prev","to-next","from-prev","from-next"];for(const e of this.slides){const n=e.el;if(n){n.removeEventListener(G,this.onAnimationEnd),n.classList.remove(...t);const i=e.transition;i&&n.classList.remove(`f-${i}Out`,`f-${i}In`)}}this.manageSlideVisiblity()}addSlide(t,e){var n,i,o,r;const s=this.panzoom,a=(null===(n=this.pages[this.page])||void 0===n?void 0:n.pos)||0,l=(null===(i=this.pages[this.page])||void 0===i?void 0:i.dim)||0,c=this.contentDim<this.viewportDim;let u=Array.isArray(e)?e:[e];const h=[];for(const t of u)h.push(N(t));this.slides.splice(t,0,...h);for(let t=0;t<this.slides.length;t++)this.slides[t].index=t;for(const t of h)this.emit("beforeInitSlide",t,t.index);if(this.page>=t&&(this.page+=h.length),this.updateMetrics(),s){const e=(null===(o=this.pages[this.page])||void 0===o?void 0:o.pos)||0,n=(null===(r=this.pages[this.page])||void 0===r?void 0:r.dim)||0,i=this.pages.length||1,u=this.isRTL?l-n:n-l,h=this.isRTL?a-e:e-a;c&&1===i?(t<=this.page&&(s.current[this.axis]-=u,s.target[this.axis]-=u),s.panTo({[this.isHorizontal?"x":"y"]:-1*e})):h&&t<=this.page&&(s.target[this.axis]-=h,s.current[this.axis]-=h,s.requestTick())}for(const t of h)this.emit("initSlide",t,t.index)}prependSlide(t){this.addSlide(0,t)}appendSlide(t){this.addSlide(this.slides.length,t)}removeSlide(t){const e=this.slides.length;t=(t%e+e)%e;const n=this.slides[t];
2if(n){this.removeSlideEl(n,!0),this.slides.splice(t,1);for(let t=0;t<this.slides.length;t++)this.slides[t].index=t;this.updateMetrics(),this.slideTo(this.page,{friction:0,transition:!1}),this.emit("destroySlide",n)}}updateMetrics(){const{panzoom:t,viewport:n,track:i,slides:o,isHorizontal:r,isInfinite:s}=this;if(!i)return;const a=r?"width":"height",l=r?"offsetWidth":"offsetHeight";if(n){let t=Math.max(n[l],e(n.getBoundingClientRect()[a],1e3)),i=getComputedStyle(n),o="padding",s=r?"Right":"Bottom";t-=parseFloat(i[o+(r?"Left":"Top")])+parseFloat(i[o+s]),this.viewportDim=t}let c,u=0;for(const[t,n]of o.entries()){let i=0,r=0;!n.el&&c?(i=c.dim,r=c.gap):(({dim:i,gap:r}=this.getSlideMetrics(n)),c=n),i=e(i,1e3),r=e(r,1e3),n.dim=i,n.gap=r,n.pos=u,u+=i,(s||t<o.length-1)&&(u+=r)}u=e(u,1e3),this.contentDim=u,t&&(t.contentRect[a]=u,t.contentRect[r?"fullWidth":"fullHeight"]=u),this.pages=this.createPages(),this.pages=this.processPages(),this.state===I.Init&&this.setInitialPage(),this.page=Math.max(0,Math.min(this.page,this.pages.length-1)),this.manageSlideVisiblity(),this.emit("refresh")}getProgress(t,n=!1,i=!1){void 0===t&&(t=this.page);const o=this,r=o.panzoom,s=o.contentDim,a=o.pages[t]||0;if(!a||!r)return t>this.page?-1:1;let l=-1*r.current.e,c=e((l-a.pos)/(1*a.dim),1e3),u=c,h=c;this.isInfinite&&!0!==i&&(u=e((l-a.pos+s)/(1*a.dim),1e3),h=e((l-a.pos-s)/(1*a.dim),1e3));let d=[c,u,h].reduce((function(t,e){return Math.abs(e)<Math.abs(t)?e:t}));return n?d:d>1?1:d<-1?-1:d}setViewportHeight(){const{page:t,pages:e,viewport:n,isHorizontal:i}=this;if(!n||!e[t])return;let o=0;i&&this.track&&(this.track.style.height="auto",e[t].slides.forEach((t=>{t.el&&(o=Math.max(o,t.el.offsetHeight))}))),n.style.height=o?`${o}px`:""}getPageForSlide(t){for(const e of this.pages)for(const n of e.slides)if(n.index===t)return e.index;return-1}getVisibleSlides(t=0){var e;const n=new Set;let{panzoom:i,contentDim:o,viewportDim:r,pages:s,page:a}=this;if(r){o=o+(null===(e=this.slides[this.slides.length-1])||void 0===e?void 0:e.gap)||0;let l=0;l=i&&i.state!==b.Init&&i.state!==b.Destroy?-1*i.current[this.axis]:s[a]&&s[a].pos||0,this.isInfinite&&(l-=Math.floor(l/o)*o),this.isRTL&&this.isHorizontal&&(l*=-1);const c=l-r*t,u=l+r*(t+1),h=this.isInfinite?[-1,0,1]:[0];for(const t of this.slides)for(const e of h){const i=t.pos+e*o,r=i+t.dim+t.gap;i<u&&r>c&&n.add(t)}}return n}getPageFromPosition(t){const{viewportDim:e,contentDim:n,slides:i,pages:o,panzoom:r}=this,s=o.length,a=i.length,l=i[0],c=i[a-1],u=this.option("center");let h=0,d=0,f=0,p=void 0===t?-1*((null==r?void 0:r.target[this.axis])||0):t;u&&(p+=.5*e),this.isInfinite?(p<l.pos-.5*c.gap&&(p-=n,f=-1),p>c.pos+c.dim+.5*c.gap&&(p-=n,f=1)):p=Math.max(l.pos||0,Math.min(p,c.pos));let m=c,g=i.find((t=>{const e=t.pos-.5*m.gap,n=t.pos+t.dim+.5*t.gap;return m=t,p>=e&&p<n}));return g||(g=c),d=this.getPageForSlide(g.index),h=d+f*s,{page:h,pageIndex:d}}setPageFromPosition(){const{pageIndex:t}=this.getPageFromPosition();this.onChange(t)}destroy(){if([I.Destroy].includes(this.state))return;this.state=I.Destroy;const{container:t,viewport:e,track:n,slides:i,panzoom:o}=this,r=this.option("classes");t.removeEventListener("click",this.onClick,{passive:!1,capture:!1}),t.removeEventListener("slideTo",this.onSlideTo),window.removeEventListener("resize",this.onResize),o&&(o.destroy(),this.panzoom=null),i&&i.forEach((t=>{this.removeSlideEl(t)})),this.detachPlugins(),e&&(e.removeEventListener("scroll",this.onScroll),e.offsetParent&&n&&n.offsetParent&&e.replaceWith(...n.childNodes));for(const[e,n]of Object.entries(r))"container"!==e&&n&&t.classList.remove(n);this.track=null,this.viewport=null,this.page=0,this.slides=[];const s=this.events.get("ready");this.events=new Map,s&&this.events.set("ready",s)}}Object.defineProperty(J,"Panzoom",{enumerable:!0,configurable:!0,writable:!0,value:D}),Object.defineProperty(J,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{viewport:null,track:null,enabled:!0,slides:[],axis:"x",transition:"fade",preload:1,slidesPerPage:"auto",initialPage:0,friction:.12,Panzoom:{decelFriction:.12},center:!0,infinite:!0,fill:!0,dragFree:!1,adaptiveHeight:!1,direction:"ltr",classes:{container:"f-carousel",viewport:"f-carousel__viewport",track:"f-carousel__track",slide:"f-carousel__slide",isLTR:"is-ltr",isRTL:"is-rtl",isHorizontal:"is-horizontal",isVertical:"is-vertical",inTransition:"in-transition",isSelected:"is-selected"},l10n:{NEXT:"Next slide",PREV:"Previous slide",GOTO:"Go to slide #%d"}}}),Object.defineProperty(J,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:Y});const Q=function(t){if(!k(t))return 0;const e=window.scrollY,n=window.innerHeight,i=e+n,o=t.getBoundingClientRect(),r=o.y+e,s=o.height,a=r+s;if(e>a||i<r)return 0;if(e<r&&i>a)return 100;if(r<e&&a>i)return 100;let l=s;r<e&&(l-=e-r),a>i&&(l-=a-i);const c=l/n*100;return Math.round(c)},tt=!("undefined"==typeof window||!window.document||!window.document.createElement);let et;const nt=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden]):not(.fancybox-focus-guard)","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not
2([tabindex^="-"]):not([disabled]):not([aria-hidden])'].join(","),it=t=>{if(t&&tt){void 0===et&&document.createElement("div").focus({get preventScroll(){return et=!0,!1}});try{if(et)t.focus({preventScroll:!0});else{const e=window.scrollY||document.body.scrollTop,n=window.scrollX||document.body.scrollLeft;t.focus(),document.body.scrollTo({top:e,left:n,behavior:"auto"})}}catch(t){}}},ot=()=>{const t=document;let e,n="",i="",o="";return t.fullscreenEnabled?(n="requestFullscreen",i="exitFullscreen",o="fullscreenElement"):t.webkitFullscreenEnabled&&(n="webkitRequestFullscreen",i="webkitExitFullscreen",o="webkitFullscreenElement"),n&&(e={request:function(e=t.documentElement){return"webkitRequestFullscreen"===n?e[n](Element.ALLOW_KEYBOARD_INPUT):e[n]()},exit:function(){return t[o]&&t[i]()},isFullscreen:function(){return t[o]}}),e},rt={animated:!0,autoFocus:!0,backdropClick:"close",Carousel:{classes:{container:"fancybox__carousel",viewport:"fancybox__viewport",track:"fancybox__track",slide:"fancybox__slide"}},closeButton:"auto",closeExisting:!1,commonCaption:!1,compact:()=>window.matchMedia("(max-width: 578px), (max-height: 578px)").matches,contentClick:"toggleZoom",contentDblClick:!1,defaultType:"image",defaultDisplay:"flex",dragToClose:!0,Fullscreen:{autoStart:!1},groupAll:!1,groupAttr:"data-fancybox",hideClass:"f-fadeOut",hideScrollbar:!0,idle:3500,keyboard:{Escape:"close",Delete:"close",Backspace:"close",PageUp:"next",PageDown:"prev",ArrowUp:"prev",ArrowDown:"next",ArrowRight:"next",ArrowLeft:"prev"},l10n:Object.assign(Object.assign({},w),{CLOSE:"Close",NEXT:"Next",PREV:"Previous",MODAL:"You can close this modal content with the ESC key",ERROR:"Something Went Wrong, Please Try Again Later",IMAGE_ERROR:"Image Not Found",ELEMENT_NOT_FOUND:"HTML Element Not Found",AJAX_NOT_FOUND:"Error Loading AJAX : Not Found",AJAX_FORBIDDEN:"Error Loading AJAX : Forbidden",IFRAME_ERROR:"Error Loading Page",TOGGLE_ZOOM:"Toggle zoom level",TOGGLE_THUMBS:"Toggle thumbnails",TOGGLE_SLIDESHOW:"Toggle slideshow",TOGGLE_FULLSCREEN:"Toggle full-screen mode",DOWNLOAD:"Download"}),parentEl:null,placeFocusBack:!0,showClass:"f-zoomInUp",startIndex:0,tpl:{closeButton:'<button data-fancybox-close class="f-button is-close-btn" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M20 20L4 4m16 0L4 20"/></svg></button>',main:'<div class="fancybox__container" role="dialog" aria-modal="true" aria-label="{{MODAL}}" tabindex="-1">\n    <div class="fancybox__backdrop"></div>\n    <div class="fancybox__carousel"></div>\n    <div class="fancybox__footer"></div>\n  </div>'},trapFocus:!0,wheel:"zoom"};var st,at;!function(t){t[t.Init=0]="Init",t[t.Ready=1]="Ready",t[t.Closing=2]="Closing",t[t.CustomClosing=3]="CustomClosing",t[t.Destroy=4]="Destroy"}(st||(st={})),function(t){t[t.Loading=0]="Loading",t[t.Opening=1]="Opening",t[t.Ready=2]="Ready",t[t.Closing=3]="Closing"}(at||(at={}));let lt="",ct=!1,ut=!1,ht=null;const dt=()=>{let t="",e="";const n=_e.getInstance();if(n){const i=n.carousel,o=n.getSlide();if(i&&o){let r=o.slug||void 0,s=o.triggerEl||void 0;e=r||n.option("slug")||"",!e&&s&&s.dataset&&(e=s.dataset.fancybox||""),e&&"true"!==e&&(t="#"+e+(!r&&i.slides.length>1?"-"+(o.index+1):""))}}return{hash:t,slug:e,index:1}},ft=()=>{const t=new URL(document.URL).hash,e=t.slice(1).split("-"),n=e[e.length-1],i=n&&/^\+?\d+$/.test(n)&&parseInt(e.pop()||"1",10)||1;return{hash:t,slug:e.join("-"),index:i}},pt=()=>{const{slug:t,index:e}=ft();if(!t)return;let n=document.querySelector(`[data-slug="${t}"]`);if(n&&n.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})),_e.getInstance())return;const i=document.querySelectorAll(`[data-fancybox="${t}"]`);i.length&&(n=i[e-1],n&&n.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})))},mt=()=>{if(!1===_e.defaults.Hash)return;const t=_e.getInstance();if(!1===(null==t?void 0:t.options.Hash))return;const{slug:e,index:n}=ft(),{slug:i}=dt();t&&(e===i?t.jumpTo(n-1):(ct=!0,t.close())),pt()},gt=()=>{ht&&clearTimeout(ht),queueMicrotask((()=>{mt()}))},vt=()=>{window.addEventListener("hashchange",gt,!1),setTimeout((()=>{mt()}),500)};tt&&(/complete|interactive|loaded/.test(document.readyState)?vt():document.addEventListener("DOMContentLoaded",vt));const bt="is-zooming-in";class yt extends B{onCreateSlide(t,e,n){const i=this.instance.optionFor(n,"src")||"";n.el&&"image"===n.type&&"string"==typeof i&&this.setImage(n,i)}onRemoveSlide(t,e,n){n.panzoom&&n.panzoom.destroy(),n.panzoom=void 0,n.imageEl=void 0}onChange(t,e,n,i){_(this.instance.container,bt);for(const t of e.slides){const e=t.panzoom;e&&t.index!==n&&e.reset(.35)}}onClose(){var t;const e=this.instance,n=e.container,i=e.getSlide();if(!n||!n.parentElement||!i)return;const{el:o,contentEl:r,panzoom:s,thumbElSrc:a}=i;if(!o||!a||!r||!s||s.isContentLoading||s.state===b.Init||s.state===b.Destroy)return;s.updateMetrics();let l=this.getZoomInfo(i);if(!l)return;this.instance.state=st.CustomClosing,n.classList.remove(bt),n.classList.add("is-zooming-out"),r.style.backgroundImage=`url('${a}')`;const c=n.getBoundingClientRect();
21===((null===(t=window.visualViewport)||void 0===t?void 0:t.scale)||1)&&Object.assign(n.style,{position:"absolute",top:`${n.offsetTop+window.scrollY}px`,left:`${n.offsetLeft+window.scrollX}px`,bottom:"auto",right:"auto",width:`${c.width}px`,height:`${c.height}px`,overflow:"hidden"});const{x:u,y:h,scale:d,opacity:f}=l;if(f){const t=((t,e,n,i)=>{const o=e-t;return e=>1+((e-t)/o*-1||0)})(s.scale,d);s.on("afterTransform",(()=>{r.style.opacity=t(s.scale)+""}))}s.on("endAnimation",(()=>{e.destroy()})),s.target.a=d,s.target.b=0,s.target.c=0,s.target.d=d,s.panTo({x:u,y:h,scale:d,friction:f?.2:.33,ignoreBounds:!0}),s.isResting&&e.destroy()}setImage(t,e){const n=this.instance;t.src=e,this.process(t,e).then((e=>{const{contentEl:i,imageEl:o,thumbElSrc:r,el:s}=t;if(n.isClosing()||!i||!o)return;i.offsetHeight;const a=!!n.isOpeningSlide(t)&&this.getZoomInfo(t);if(this.option("protected")&&s){s.addEventListener("contextmenu",(t=>{t.preventDefault()}));const t=document.createElement("div");L(t,"fancybox-protected"),i.appendChild(t)}if(r&&a){const o=e.contentRect,s=Math.max(o.fullWidth,o.fullHeight);let c=null;!a.opacity&&s>1200&&(c=document.createElement("img"),L(c,"fancybox-ghost"),c.src=r,i.appendChild(c));const u=()=>{c&&(L(c,"f-fadeFastOut"),setTimeout((()=>{c&&(c.remove(),c=null)}),200))};(l=r,new Promise(((t,e)=>{const n=new Image;n.onload=t,n.onerror=e,n.src=l}))).then((()=>{n.hideLoading(t),t.state=at.Opening,this.instance.emit("reveal",t),this.zoomIn(t).then((()=>{u(),this.instance.done(t)}),(()=>{})),c&&setTimeout((()=>{u()}),s>2500?800:200)}),(()=>{n.hideLoading(t),n.revealContent(t)}))}else{const i=this.optionFor(t,"initialSize"),o=this.optionFor(t,"zoom"),r={event:n.prevMouseMoveEvent||n.options.event,friction:o?.12:0};let s=n.optionFor(t,"showClass")||void 0,a=!0;n.isOpeningSlide(t)&&("full"===i?e.zoomToFull(r):"cover"===i?e.zoomToCover(r):"max"===i?e.zoomToMax(r):a=!1,e.stop("current")),a&&s&&(s=e.isDragging?"f-fadeIn":""),n.hideLoading(t),n.revealContent(t,s)}var l}),(()=>{n.setError(t,"{{IMAGE_ERROR}}")}))}process(t,e){return new Promise(((n,i)=>{var o;const s=this.instance,a=t.el;s.clearContent(t),s.showLoading(t);let l=this.optionFor(t,"content");if("string"==typeof l&&(l=r(l)),!l||!k(l)){if(l=document.createElement("img"),l instanceof HTMLImageElement){let n="",i=t.caption;n="string"==typeof i&&i?i.replace(/<[^>]+>/gi,"").substring(0,1e3):`Image ${t.index+1} of ${(null===(o=s.carousel)||void 0===o?void 0:o.pages.length)||1}`,l.src=e||"",l.alt=n,l.draggable=!1,t.srcset&&l.setAttribute("srcset",t.srcset),this.instance.isOpeningSlide(t)&&(l.fetchPriority="high")}t.sizes&&l.setAttribute("sizes",t.sizes)}L(l,"fancybox-image"),t.imageEl=l,s.setContent(t,l,!1),t.panzoom=new D(a,p({transformParent:!0},this.option("Panzoom")||{},{content:l,width:(e,n)=>s.optionFor(t,"width","auto",n)||"auto",height:(e,n)=>s.optionFor(t,"height","auto",n)||"auto",wheel:()=>{const t=s.option("wheel");return("zoom"===t||"pan"==t)&&t},click:(e,n)=>{var i,o;if(s.isCompact||s.isClosing())return!1;if(t.index!==(null===(i=s.getSlide())||void 0===i?void 0:i.index))return!1;if(n){const t=n.composedPath()[0];if(["A","BUTTON","TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].includes(t.nodeName))return!1}let r=!n||n.target&&(null===(o=t.contentEl)||void 0===o?void 0:o.contains(n.target));return s.option(r?"contentClick":"backdropClick")||!1},dblClick:()=>s.isCompact?"toggleZoom":s.option("contentDblClick")||!1,spinner:!1,panOnlyZoomed:!0,wheelLimit:1/0,on:{ready:t=>{n(t)},error:()=>{i()},destroy:()=>{i()}}}))}))}zoomIn(t){return new Promise(((e,n)=>{const i=this.instance,o=i.container,{panzoom:r,contentEl:s,el:a}=t;r&&r.updateMetrics();const l=this.getZoomInfo(t);if(!(l&&a&&s&&r&&o))return void n();const{x:c,y:u,scale:h,opacity:d}=l,f=()=>{t.state!==at.Closing&&(d&&(s.style.opacity=Math.max(Math.min(1,1-(1-r.scale)/(1-h)),0)+""),r.scale>=1&&r.scale>r.targetScale-.1&&e(r))},p=t=>{(t.scale<.99||t.scale>1.01)&&!t.isDragging||(_(o,bt),s.style.opacity="",t.off("endAnimation",p),t.off("touchStart",p),t.off("afterTransform",f),e(t))};r.on("endAnimation",p),r.on("touchStart",p),r.on("afterTransform",f),r.on(["error","destroy"],(()=>{n()})),r.panTo({x:c,y:u,scale:h,friction:0,ignoreBounds:!0}),r.stop("current");
2const m={event:"mousemove"===r.panMode?i.prevMouseMoveEvent||i.options.event:void 0},g=this.optionFor(t,"initialSize");L(o,bt),i.hideLoading(t),"full"===g?r.zoomToFull(m):"cover"===g?r.zoomToCover(m):"max"===g?r.zoomToMax(m):r.reset(.172)}))}getZoomInfo(t){const{el:e,imageEl:n,thumbEl:i,panzoom:o}=t,r=this.instance,s=r.container;if(!e||!n||!i||!o||Q(i)<3||!this.optionFor(t,"zoom")||!s||r.state===st.Destroy)return!1;if("0"===getComputedStyle(s).getPropertyValue("--f-images-zoom"))return!1;const a=window.visualViewport||null;if(1!==(a?a.scale:1))return!1;let{top:l,left:c,width:u,height:h}=i.getBoundingClientRect(),{top:d,left:f,fitWidth:p,fitHeight:m}=o.contentRect;if(!(u&&h&&p&&m))return!1;const g=o.container.getBoundingClientRect();f+=g.left,d+=g.top;const v=-1*(f+.5*p-(c+.5*u)),b=-1*(d+.5*m-(l+.5*h)),y=u/p;let w=this.option("zoomOpacity")||!1;return"auto"===w&&(w=Math.abs(u/h-p/m)>.1),{x:v,y:b,scale:y,opacity:w}}attach(){const t=this,e=t.instance;e.on("Carousel.change",t.onChange),e.on("Carousel.createSlide",t.onCreateSlide),e.on("Carousel.removeSlide",t.onRemoveSlide),e.on("close",t.onClose)}detach(){const t=this,e=t.instance;e.off("Carousel.change",t.onChange),e.off("Carousel.createSlide",t.onCreateSlide),e.off("Carousel.removeSlide",t.onRemoveSlide),e.off("close",t.onClose)}}Object.defineProperty(yt,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{initialSize:"fit",Panzoom:{maxScale:1},protected:!1,zoom:!0,zoomOpacity:"auto"}}),"function"==typeof SuppressedError&&SuppressedError;const wt="html",St="image",Et="map",xt="youtube",kt="vimeo",_t="html5video",Lt=(t,e={})=>{const n=new URL(t),i=new URLSearchParams(n.search),o=new URLSearchParams;for(const[t,n]of[...i,...Object.entries(e)]){let e=n+"";if("t"===t){let t=e.match(/((\d*)m)?(\d*)s?/);t&&o.set("start",60*parseInt(t[2]||"0")+parseInt(t[3]||"0")+"")}else o.set(t,e)}let r=o+"",s=t.match(/#t=((.*)?\d+s)/);return s&&(r+=`#t=${s[1]}`),r},Tt=["image","html","ajax","inline","clone","iframe","map","pdf","html5video","youtube","vimeo"];class Ot extends B{onBeforeInitSlide(t,e,n){this.processType(n)}onCreateSlide(t,e,n){this.setContent(n)}onClearContent(t,e){e.xhr&&(e.xhr.abort(),e.xhr=null);const n=e.iframeEl;n&&(n.onload=n.onerror=null,n.src="//about:blank",e.iframeEl=null);const i=e.contentEl,o=e.placeholderEl;if("inline"===e.type&&i&&o)i.classList.remove("fancybox__content"),"none"!==getComputedStyle(i).getPropertyValue("display")&&(i.style.display="none"),setTimeout((()=>{o&&(i&&o.parentNode&&o.parentNode.insertBefore(i,o),o.remove())}),0),e.contentEl=void 0,e.placeholderEl=void 0;else for(;e.el&&e.el.firstChild;)e.el.removeChild(e.el.firstChild)}onSelectSlide(t,e,n){n.state===at.Ready&&this.playVideo()}onUnselectSlide(t,e,n){var i,o;if(n.type===_t){try{null===(o=null===(i=n.el)||void 0===i?void 0:i.querySelector("video"))||void 0===o||o.pause()}catch(t){}return}let r;n.type===kt?r={method:"pause",value:"true"}:n.type===xt&&(r={event:"command",func:"pauseVideo"}),r&&n.iframeEl&&n.iframeEl.contentWindow&&n.iframeEl.contentWindow.postMessage(JSON.stringify(r),"*"),n.poller&&clearTimeout(n.poller)}onDone(t,e){t.isCurrentSlide(e)&&!t.isClosing()&&this.playVideo()}onRefresh(t,e){e.slides.forEach((t=>{t.el&&(this.resizeIframe(t),this.setAspectRatio(t))}))}onMessage(t){try{let e=JSON.parse(t.data);if("https://player.vimeo.com"===t.origin){if("ready"===e.event)for(let e of Array.from(document.getElementsByClassName("fancybox__iframe")))e instanceof HTMLIFrameElement&&e.contentWindow===t.source&&(e.dataset.ready="true")}else if(t.origin.match(/^https:\/\/(www.)?youtube(-nocookie)?.com$/)&&"onReady"===e.event){const t=document.getElementById(e.id);t&&(t.dataset.ready="true")}}catch(t){}}loadAjaxContent(t){const e=this.instance.optionFor(t,"src")||"";this.instance.showLoading(t);const n=this.instance,i=new XMLHttpRequest;n.showLoading(t),i.onreadystatechange=function(){i.readyState===XMLHttpRequest.DONE&&n.state===st.Ready&&(n.hideLoading(t),200===i.status?n.setContent(t,i.responseText):n.setError(t,404===i.status?"{{AJAX_NOT_FOUND}}":"{{AJAX_FORBIDDEN}}"))};const o=t.ajax||null;i.open(o?"POST":"GET",e+""),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.send(o),t.xhr=i}setInlineContent(t){let e=null;if(k(t.src))e=t.src;else if("string"==typeof t.src){const n=t.src.split("#",2).pop();e=n?document.getElementById(n):null}if(e){if("clone"===t.type||e.closest(".fancybox__slide")){e=e.cloneNode(!0);const n=e.dataset.animationName;n&&(e.classList.remove(n),delete e.dataset.animationName);let i=e.getAttribute("id");i=i?`${i}--clone`:`clone-${this.instance.id}-${t.index}`,e.setAttribute("id",i)}else if(e.parentNode){const n=document.createElement("div");n.classList.add("fancybox-placeholder"),e.parentNode.insertBefore(n,e),t.placeholderEl=n}this.instance.setContent(t,e)}else this.instance.setError(t,"{{ELEMENT_NOT_FOUND}}")}setIframeContent(t){const{src:e,el:n}=t;if(!e||"string"!=typeof e||!n)return;n.classList.add("is-loading");const i=this.instance,o=document.createElement("iframe");o.className="fancybox__iframe",o.setAttribute("id",`fancybox__iframe_${i.id}_${t.index}`);for(const[e,n]of Object.entries(this.optionFor(t,"iframeAttr")||{}))o.setAttribute(e,n);o.onerror=()=>{i.setError(t,"{{IFRAME_ERROR}}")},t.iframeEl=o;const r=this.optionFor(t,"preload");if("iframe"!==t.type||!1===r)return o.setAttribute("src",t.src+""),i.setContent(t,o,!1),this.resizeIframe(t),void i.revealContent(t);i.showLoading(t),o.onload=()=>
2{if(!o.src.length)return;const e="true"!==o.dataset.ready;o.dataset.ready="true",this.resizeIframe(t),e?i.revealContent(t):i.hideLoading(t)},o.setAttribute("src",e),i.setContent(t,o,!1)}resizeIframe(t){const{type:e,iframeEl:n}=t;if(e===xt||e===kt)return;const i=null==n?void 0:n.parentElement;if(!n||!i)return;let o=t.autoSize;void 0===o&&(o=this.optionFor(t,"autoSize"));let r=t.width||0,s=t.height||0;r&&s&&(o=!1);const a=i&&i.style;if(!1!==t.preload&&!1!==o&&a)try{const t=window.getComputedStyle(i),e=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),o=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),l=n.contentWindow;if(l){const t=l.document,n=t.getElementsByTagName(wt)[0],i=t.body;a.width="",i.style.overflow="hidden",r=r||n.scrollWidth+e,a.width=`${r}px`,i.style.overflow="",a.flex="0 0 auto",a.height=`${i.scrollHeight}px`,s=n.scrollHeight+o}}catch(t){}if(r||s){const t={flex:"0 1 auto",width:"",height:""};r&&"auto"!==r&&(t.width=`${r}px`),s&&"auto"!==s&&(t.height=`${s}px`),Object.assign(a,t)}}playVideo(){const t=this.instance.getSlide();if(!t)return;const{el:e}=t;if(!e||!e.offsetParent)return;if(!this.optionFor(t,"videoAutoplay"))return;if(t.type===_t)try{const t=e.querySelector("video");if(t){const e=t.play();void 0!==e&&e.then((()=>{})).catch((e=>{t.muted=!0,t.play()}))}}catch(t){}if(t.type!==xt&&t.type!==kt)return;const n=()=>
2{if(t.iframeEl&&t.iframeEl.contentWindow){let e;if("true"===t.iframeEl.dataset.ready)return e=t.type===xt?{event:"command",func:"playVideo"}:{method:"play",value:"true"},e&&t.iframeEl.contentWindow.postMessage(JSON.stringify(e),"*"),void(t.poller=void 0);t.type===xt&&(e={event:"listening",id:t.iframeEl.getAttribute("id")},t.iframeEl.contentWindow.postMessage(JSON.stringify(e),"*"))}t.poller=setTimeout(n,250)};n()}processType(t){if(t.html)return t.type=wt,t.src=t.html,void(t.html="");const e=this.instance.optionFor(t,"src","");if(!e||"string"!=typeof e)return;let n=t.type,i=null;if(i=e.match(/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(?:watch\?(?:.*&)?v=|v\/|u\/|shorts\/|embed\/?)?(videoseries\?list=(?:.*)|[\w-]{11}|\?listType=(?:.*)&list=(?:.*))(?:.*)/i)){const o=this.optionFor(t,xt),{nocookie:r}=o,s=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(t);o<i.length;o++)e.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(t,i[o])&&(n[i[o]]=t[i[o]])}return n}(o,["nocookie"]),a=`www.youtube${r?"-nocookie":""}.com`,l=Lt(e,s),c=encodeURIComponent(i[2]);t.videoId=c,t.src=`https://${a}/embed/${c}?${l}`,t.thumbSrc=t.thumbSrc||`https://i.ytimg.com/vi/${c}/mqdefault.jpg`,n=xt}else if(i=e.match(/^.+vimeo.com\/(?:\/)?([\d]+)((\/|\?h=)([a-z0-9]+))?(.*)?/)){const o=Lt(e,this.optionFor(t,kt)),r=encodeURIComponent(i[1]),s=i[4]||"";t.videoId=r,t.src=`https://player.vimeo.com/video/${r}?${s?`h=${s}${o?"&":""}`:""}${o}`,n=kt}if(!n&&t.triggerEl){const e=t.triggerEl.dataset.type;Tt.includes(e)&&(n=e)}n||"string"==typeof e&&("#"===e.charAt(0)?n="inline":(i=e.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(n=_t,t.videoFormat=t.videoFormat||"video/"+("ogv"===i[1]?"ogg":i[1])):e.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?n=St:e.match(/\.(pdf)((\?|#).*)?$/i)&&(n="pdf")),(i=e.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:(?:(?:maps\/(?:place\/(?:.*)\/)?\@(.*),(\d+.?\d+?)z))|(?:\?ll=))(.*)?/i))?(t.src=`https://maps.google.${i[1]}/?ll=${(i[2]?i[2]+"&z="+Math.floor(parseFloat(i[3]))+(i[4]?i[4].replace(/^\//,"&"):""):i[4]+"").replace(/\?/,"&")}&output=${i[4]&&i[4].indexOf("layer=c")>0?"svembed":"embed"}`,n=Et):(i=e.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:maps\/search\/)(.*)/i))&&(t.src=`https://maps.google.${i[1]}/maps?q=${i[2].replace("query=","q=").replace("api=1","")}&output=embed`,n=Et),n=n||this.instance.option("defaultType"),t.type=n,n===St&&(t.thumbSrc=t.thumbSrc||t.src)}setContent(t){const e=this.instance.optionFor(t,"src")||"";if(t&&t.type&&e){switch(t.type){case wt:this.instance.setContent(t,e);break;case _t:const n=this.option("videoTpl");n&&this.instance.setContent(t,n.replace(/\{\{src\}\}/gi,e+"").replace(/\{\{format\}\}/gi,this.optionFor(t,"videoFormat")||"").replace(/\{\{poster\}\}/gi,t.poster||t.thumbSrc||""));break;case"inline":case"clone":this.setInlineContent(t);break;case"ajax":this.loadAjaxContent(t);break;case"pdf":case Et:case xt:case kt:t.preload=!1;case"iframe":this.setIframeContent(t)}this.setAspectRatio(t)}}setAspectRatio(t){const e=t.contentEl;if(!(t.el&&e&&t.type&&[xt,kt,_t].includes(t.type)))return;let n,i=t.width||"auto",o=t.height||"auto";if("auto"===i||"auto"===o){n=this.optionFor(t,"videoRatio");const e=(n+"").match(/(\d+)\s*\/\s?(\d+)/);n=e&&e.length>2?parseFloat(e[1])/parseFloat(e[2]):parseFloat(n+"")}else i&&o&&(n=i/o);if(!n)return;e.style.aspectRatio="",e.style.width="",e.style.height="",e.offsetHeight;const r=e.getBoundingClientRect(),s=r.width||1,a=r.height||1;e.style.aspectRatio=n+"",n<s/a?(o="auto"===o?a:Math.min(a,o),e.style.width="auto",e.style.height=`${o}px`):(i="auto"===i?s:Math.min(s,i),e.style.width=`${i}px`,e.style.height="auto")}attach(){const t=this,e=t.instance;e.on("Carousel.beforeInitSlide",t.onBeforeInitSlide),e.on("Carousel.createSlide",t.onCreateSlide),e.on("Carousel.selectSlide",t.onSelectSlide),e.on("Carousel.unselectSlide",t.onUnselectSlide),e.on("Carousel.Panzoom.refresh",t.onRefresh),e.on("done",t.onDone),e.on("clearContent",t.onClearContent),window.addEventListener("message",t.onMessage)}detach(){const t=this,e=t.instance;e.off("Carousel.beforeInitSlide",t.onBeforeInitSlide),e.off("Carousel.createSlide",t.onCreateSlide),e.off("Carousel.selectSlide",t.onSelectSlide),e.off("Carousel.unselectSlide",t.onUnselectSlide),e.off("Carousel.Panzoom.refresh",t.onRefresh),e.off("done",t.onDone),e.off("clearContent",t.onClearContent),window.removeEventListener("message",t.onMessage)}}Object.defineProperty(Ot,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{ajax:null,autoSize:!0,iframeAttr:{allow:"autoplay; fullscreen",scrolling:"auto"},preload:!0,videoAutoplay:!0,videoRatio:16/9,videoTpl:'<video class="fancybox__html5video" playsinline controls controlsList="nodownload" poster="{{poster}}">\n  <source src="{{src}}" type="{{format}}" />Sorry, your browser doesn\'t support embedded videos.</video>',videoFormat:"",vimeo:{byline:1,color:"00adef",controls:1,dnt:1,muted:0},youtube:{controls:1,enablejsapi:1,nocookie:1,rel:0,fs:1}}});const Pt="play",Ct="pause",At="ready";class Mt extends B{constructor(){super(...arguments),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:At}),Object.defineProperty(this,"inHover",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"timer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"progressBar",{enumerable:!0,configurable:!0,writable:!0,value:null})}get isActive(){return this.state!==At}onReady(t){this.option("autoStart")&&(t.isInfinite||t.page<t.pages.length-1)&&this.start()}onChange(){this.removeProgressBar(),this.pause()}onSettle(){this.resume()}onVisibilityChange(){"visible"===document.visibilityState?this.resume():this.pause()}onMouseEnter(){this.inHover=!0,this.pause()}onMouseLeave(){var t;this.inHover=!1,(null===(t=this.instance.panzoom)||void 0===t?void 0:t.isResting)&&this.resume()}onTimerEnd(){const t=this.instance;"play"===this.state&&(t.isInfinite||t.page!==t.pages.length-1?t.slideNext():t.slideTo(0))}removeProgressBar(){this.progressBar&&(this.progressBar.remove(),this.progressBar=null)}createProgressBar(){var t;if(!this.option("showProgress"))return null;this.removeProgressBar();const e=this.instance,n=(null===(t=e.pages[e.page])||void 0===t?void 0:t.slides)||[];let i=this.option("progressParentEl");if(i||(i=(1===n.length?n[0].el:null)||e.viewport),!i)return null;const o=document.createElement("div");return L(o,"f-progress"),i.prepend(o),this.progressBar=o,o.offsetHeight,o}set(){const t=this,e=t.instance;if(e.pages.length<2)return;if(t.timer)return;
2const n=t.option("timeout");t.state=Pt,L(e.container,"has-autoplay");let i=t.createProgressBar();i&&(i.style.transitionDuration=`${n}ms`,i.style.transform="scaleX(1)"),t.timer=setTimeout((()=>{t.timer=null,t.inHover||t.onTimerEnd()}),n),t.emit("set")}clear(){const t=this;t.timer&&(clearTimeout(t.timer),t.timer=null),t.removeProgressBar()}start(){const t=this;if(t.set(),t.state!==At){if(t.option("pauseOnHover")){const e=t.instance.container;e.addEventListener("mouseenter",t.onMouseEnter,!1),e.addEventListener("mouseleave",t.onMouseLeave,!1)}document.addEventListener("visibilitychange",t.onVisibilityChange,!1),t.emit("start")}}stop(){const t=this,e=t.state,n=t.instance.container;t.clear(),t.state=At,n.removeEventListener("mouseenter",t.onMouseEnter,!1),n.removeEventListener("mouseleave",t.onMouseLeave,!1),document.removeEventListener("visibilitychange",t.onVisibilityChange,!1),_(n,"has-autoplay"),e!==At&&t.emit("stop")}pause(){const t=this;t.state===Pt&&(t.state=Ct,t.clear(),t.emit(Ct))}resume(){const t=this,e=t.instance;if(e.isInfinite||e.page!==e.pages.length-1)if(t.state!==Pt){if(t.state===Ct&&!t.inHover){const e=new Event("resume",{bubbles:!0,cancelable:!0});t.emit("resume",e),e.defaultPrevented||t.set()}}else t.set();else t.stop()}toggle(){this.state===Pt||this.state===Ct?this.stop():this.start()}attach(){const t=this,e=t.instance;e.on("ready",t.onReady),e.on("Panzoom.startAnimation",t.onChange),e.on("Panzoom.endAnimation",t.onSettle),e.on("Panzoom.touchMove",t.onChange)}detach(){const t=this,e=t.instance;e.off("ready",t.onReady),e.off("Panzoom.startAnimation",t.onChange),e.off("Panzoom.endAnimation",t.onSettle),e.off("Panzoom.touchMove",t.onChange),t.stop()}}Object.defineProperty(Mt,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{autoStart:!0,pauseOnHover:!0,progressParentEl:null,showProgress:!0,timeout:3e3}});class Rt extends B{constructor(){super(...arguments),Object.defineProperty(this,"ref",{enumerable:!0,configurable:!0,writable:!0,value:null})}onPrepare(t){const e=t.carousel;if(!e)return;const n=t.container;n&&(e.options.Autoplay=p({autoStart:!1},this.option("Autoplay")||{},{pauseOnHover:!1,timeout:this.option("timeout"),progressParentEl:()=>this.option("progressParentEl")||null,on:{start:()=>{t.emit("startSlideshow")},set:e=>{var i;n.classList.add("has-slideshow"),(null===(i=t.getSlide())||void 0===i?void 0:i.state)!==at.Ready&&e.pause()},stop:()=>{n.classList.remove("has-slideshow"),t.isCompact||t.endIdle(),t.emit("endSlideshow")}
2,resume:(e,n)=>{var i,o,r;!n||!n.cancelable||(null===(i=t.getSlide())||void 0===i?void 0:i.state)===at.Ready&&(null===(r=null===(o=t.carousel)||void 0===o?void 0:o.panzoom)||void 0===r?void 0:r.isResting)||n.preventDefault()}}}),e.attachPlugins({Autoplay:Mt}),this.ref=e.plugins.Autoplay)}onReady(t){const e=t.carousel,n=this.ref;n&&e&&this.option("playOnStart")&&(e.isInfinite||e.page<e.pages.length-1)&&n.start()}onDone(t,e){const n=this.ref,i=t.carousel;if(!n||!i)return;const o=e.panzoom;o&&o.on("startAnimation",(()=>{t.isCurrentSlide(e)&&n.stop()})),t.isCurrentSlide(e)&&n.resume()}onKeydown(t,e){var n;const i=this.ref;i&&e===this.option("key")&&"BUTTON"!==(null===(n=document.activeElement)||void 0===n?void 0:n.nodeName)&&i.toggle()}attach(){const t=this,e=t.instance;e.on("Carousel.init",t.onPrepare),e.on("Carousel.ready",t.onReady),e.on("done",t.onDone),e.on("keydown",t.onKeydown)}detach(){const t=this,e=t.instance;e.off("Carousel.init",t.onPrepare),e.off("Carousel.ready",t.onReady),e.off("done",t.onDone),e.off("keydown",t.onKeydown)}}Object.defineProperty(Rt,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{key:" ",playOnStart:!1,progressParentEl:t=>{var e;return(null===(e=t.instance.container)||void 0===e?void 0:e.querySelector(".fancybox__toolbar [data-fancybox-toggle-slideshow]"))||t.instance.container},timeout:3e3}});const jt={classes:{container:"f-thumbs f-carousel__thumbs",viewport:"f-thumbs__viewport",track:"f-thumbs__track",slide:"f-thumbs__slide",isResting:"is-resting",isSelected:"is-selected",isLoading:"is-loading",hasThumbs:"has-thumbs"},minCount:2,parentEl:null,thumbTpl:'<button class="f-thumbs__slide__button" tabindex="0" type="button" aria-label="{{GOTO}}" data-carousel-index="%i"><img class="f-thumbs__slide__img" data-lazy-src="{{%s}}" alt="" /></button>',type:"modern"};var Dt;!function(t){t[t.Init=0]="Init",t[t.Ready=1]="Ready",t[t.Hidden=2]="Hidden"}(Dt||(Dt={}));
2const Ft="isResting",zt="thumbWidth",It="thumbHeight",Nt="thumbClipWidth";let qt=class extends B{constructor(){super(...arguments),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:"modern"}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"track",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"carousel",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"thumbWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbClipWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbHeight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbGap",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbExtraGap",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:Dt.Init})}get isModern(){return"modern"===this.type}onInitSlide(t,e){const n=e.el?e.el.dataset:void 0;n&&(e.thumbSrc=n.thumbSrc||e.thumbSrc||"",e[Nt]=parseFloat(n[Nt]||"")||e[Nt]||0,e[It]=parseFloat(n.thumbHeight||"")||e[It]||0),this.addSlide(e)}onInitSlides(){this.build()}onChange(){var t;if(!this.isModern)return;const e=this.container,n=this.instance,i=n.panzoom,o=this.carousel,r=o?o.panzoom:null,s=n.page;if(i&&o&&r){if(i.isDragging){_(e,this.cn(Ft));let i=(null===(t=o.pages[s])||void 0===t?void 0:t.pos)||0;i+=n.getProgress(s)*(this[Nt]+this.thumbGap);let a=r.getBounds();-1*i>a.x.min&&-1*i<a.x.max&&r.panTo({x:-1*i,friction:.12})}else a(e,this.cn(Ft),i.isResting);this.shiftModern()}}onRefresh(){this.updateProps();for(const t of this.instance.slides||[])this.resizeModernSlide(t);this.shiftModern()}isDisabled(){const t=this.option("minCount")||0;if(t){const e=this.instance;let n=0;for(const t of e.slides||[])t.thumbSrc&&n++;if(n<t)return!0}const e=this.option("type");return["modern","classic"].indexOf(e)<0}getThumb(t){const e=this.option("thumbTpl")||"";return{html:this.instance.localize(e,[["%i",t.index],["%d",t.index+1],["%s",t.thumbSrc||"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"]])}}addSlide(t){const e=this.carousel;e&&e.addSlide(t.index,this.getThumb(t))}getSlides(){const t=[];for(const e of this.instance.slides||[])t.push(this.getThumb(e));return t}resizeModernSlide(t){this.isModern&&(t[zt]=t[Nt]&&t[It]?Math.round(this[It]*(t[Nt]/t[It])):this[zt])}updateProps(){const t=this.container;if(!t)return;const e=e=>parseFloat(getComputedStyle(t).getPropertyValue("--f-thumb-"+e))||0;this.thumbGap=e("gap"),this.thumbExtraGap=e("extra-gap"),this[zt]=e("width")||40,this[Nt]=e("clip-width")||40,this[It]=e("height")||40}build(){const t=this;if(t.state!==Dt.Init)return;if(t.isDisabled())return void t.emit("disabled");const e=t.instance,n=e.container,i=t.getSlides(),o=t.option("type");t.type=o;const r=t.option("parentEl"),s=t.cn("container"),a=t.cn("track");let l=null==r?void 0:r.querySelector("."+s);l||(l=document.createElement("div"),L(l,s),r?r.appendChild(l):n.after(l)),L(l,`is-${o}`),L(n,t.cn("hasThumbs")),t.container=l,t.updateProps();let c=l.querySelector("."+a);c||(c=document.createElement("div"),L(c,t.cn("track")),l.appendChild(c)),t.track=c;const u=p({},{track:c,infinite:!1,center:!0,fill:"classic"===o,dragFree:!0,slidesPerPage:1,transition:!1,preload:.25,friction:.12,Panzoom:{maxVelocity:0},Dots:!1,Navigation:!1,classes:{container:"f-thumbs",viewport:"f-thumbs__viewport",track:"f-thumbs__track",slide:"f-thumbs__slide"}},t.option("Carousel")||{},{Sync:{target:e},slides:i}),h=new e.constructor(l,u);h.on("createSlide",((e,n)=>{t.setProps(n.index),t.emit("createSlide",n,n.el)})),h.on("ready",(()=>{t.shiftModern(),t.emit("ready")})),h.on("refresh",(()=>{t.shiftModern()})),h.on("Panzoom.click",((e,n,i)=>{t.onClick(i)})),t.carousel=h,t.state=Dt.Ready}onClick(t){t.preventDefault(),t.stopPropagation();const e=this.instance,{pages:n,page:i}=e,o=t=>{if(t){const e=t.closest("[data-carousel-index]");if(e)return[parseInt(e.dataset.carouselIndex||"",10)||0,e]}return[-1,void 0]},r=(t,e)=>{const n=document.elementFromPoint(t,e);return n?o(n):[-1,void 0]};let[s,a]=o(t.target);if(s>-1)return;const l=this[Nt],c=t.clientX,u=t.clientY;let[h,d]=r(c-l,u),[f,p]=r(c+l,u);d&&p?(s=Math.abs(c-d.getBoundingClientRect().right)<Math.abs(c-p.getBoundingClientRect().left)?h:f,s===i&&(s=s===h?f:h)):d?s=h:p&&(s=f),s>-1&&n[s]&&e.slideTo(s)}getShift(t){var e;const n=this,{instance:i}=n,o=n.carousel;if(!i||!o)return 0;const r=n[zt],s=n[Nt],a=n.thumbGap,l=n.thumbExtraGap;if(!(null===(e=o.slides[t])||void 0===e?void 0:e.el))return 0;const c=.5*(r-s),u=i.pages.length-1;let h=i.getProgress(0),d=i.getProgress(u),f=i.getProgress(t,!1,!0),p=0,m=c+l+a;const g=h<0&&h>-1,v=d>0&&d<1;return 0===t?(p=m*Math.abs(h),v&&1===h&&(p-=m*Math.abs(d))):t===u?(p=m*Math.abs(d)*-1,g&&-1===d&&(p+=m*Math.abs(h))):g||v?(p=-1*m,p+=m*Math.abs(h),p+=m*(1-Math.abs(d))):p=m*f,p}setProps(t){var n;const i=this;if(!i.isModern)return;const{instance:o}=i,r=i.carousel;if(o&&r){const s=null===(n=r.slides[t])||void 0===n?void 0:n.el;if(s&&s.childNodes.length){let n=e(1-Math.abs(o.getProgress(t))),r=e(i.getShift(t));s.style.setProperty("--progress",n?n+"":""),s.style.setProperty("--shift",r+"")}}}shiftModern(){const t=this;if(!t.isModern)return;const{instance:e,track:n}=t,i=e.panzoom,o=t.carousel;if(!(e&&n&&i&&o))return;if(i.state===b.Init||i.state===b.Destroy)return;for(const n of e.slides)t.setProps(n.index);let r=(t[Nt]+t.thumbGap)*(o.slides.length||0);n.style.setProperty("--width",r+"")}cleanup(){const t=this;t.carousel&&t.carousel.destroy(),t.carousel=null,t.container&&t.container.remove(),t.container=null,t.track&&t.track.remove(),t.track=null,t.state=Dt.Init,_
2(t.instance.container,t.cn("hasThumbs"))}attach(){const t=this,e=t.instance;e.on("initSlide",t.onInitSlide),e.state===I.Init?e.on("initSlides",t.onInitSlides):t.onInitSlides(),e.on(["change","Panzoom.afterTransform"],t.onChange),e.on("Panzoom.refresh",t.onRefresh)}detach(){const t=this,e=t.instance;e.off("initSlide",t.onInitSlide),e.off("initSlides",t.onInitSlides),e.off(["change","Panzoom.afterTransform"],t.onChange),e.off("Panzoom.refresh",t.onRefresh),t.cleanup()}};Object.defineProperty(qt,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:jt});const Bt=Object.assign(Object.assign({},jt),{key:"t",showOnStart:!0,parentEl:null}),Ht="is-masked",Ut="aria-hidden";class $t extends B{constructor(){super(...arguments),Object.defineProperty(this,"ref",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"hidden",{enumerable:!0,configurable:!0,writable:!0,value:!1})}get isEnabled(){const t=this.ref;return t&&!t.isDisabled()}get isHidden(){return this.hidden}onClick(t,e){e.stopPropagation()}onCreateSlide(t,e){var n,i,o;const r=(null===(o=null===(i=null===(n=this.instance)||void 0===n?void 0:n.carousel)||void 0===i?void 0:i.slides[e.index])||void 0===o?void 0:o.type)||"",s=e.el;if(s&&r){let t=`for-${r}`;["video","youtube","vimeo","html5video"].includes(r)&&(t+=" for-video"),L(s,t)}}onInit(){var t;const e=this,n=e.instance,i=n.carousel;if(e.ref||!i)return;const o=e.option("parentEl")||n.footer||n.container;if(!o)return;const r=p({},e.options,{parentEl:o,classes:{container:"f-thumbs fancybox__thumbs"},Carousel:{Sync:{friction:n.option("Carousel.friction")||0}},on:{ready:t=>{const n=t.container;n&&this.hidden&&(e.refresh(),n.style.transition="none",e.hide(),n.offsetHeight,queueMicrotask((()=>{n.style.transition="",e.show()})))}}});r.Carousel=r.Carousel||{},r.Carousel.on=p((null===(t=e.options.Carousel)||void 0===t?void 0:t.on)||{},{click:this.onClick,createSlide:this.onCreateSlide}),i.options.Thumbs=r,i.attachPlugins({Thumbs:qt}),e.ref=i.plugins.Thumbs,e.option("showOnStart")||(e.ref.state=Dt.Hidden,e.hidden=!0)}onResize(){var t;const e=null===(t=this.ref)||void 0===t?void 0:t.container;e&&(e.style.maxHeight="")}onKeydown(t,e){const n=this.option("key");n&&n===e&&this.toggle()}toggle(){const t=this.ref;if(t&&!t.isDisabled())return t.state===Dt.Hidden?(t.state=Dt.Init,void t.build()):void(this.hidden?this.show():this.hide())}show(){const t=this.ref;if(!t||t.isDisabled())return;const e=t.container;e&&(this.refresh(),e.offsetHeight,e.removeAttribute(Ut),e.classList.remove(Ht),this.hidden=!1)}hide(){const t=this.ref,e=t&&t.container;e&&(this.refresh(),e.offsetHeight,e.classList.add(Ht),e.setAttribute(Ut,"true")),this.hidden=!0}refresh(){const t=this.ref;if(!t||!t.state)return;const e=t.container,n=(null==e?void 0:e.firstChild)||null;e&&n&&n.childNodes.length&&(e.style.maxHeight=`${n.getBoundingClientRect().height}px`)}attach(){const t=this,e=t.instance;e.state===st.Init?e.on("Carousel.init",t.onInit):t.onInit(),e.on("resize",t.onResize),e.on("keydown",t.onKeydown)}detach(){var t;const e=this,n=e.instance;n.off("Carousel.init",e.onInit),n.off("resize",e.onResize),n.off("keydown",e.onKeydown),null===(t=n.carousel)||void 0===t||t.detachPlugins(["Thumbs"]),e.ref=null}}Object.defineProperty($t,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Bt});const Wt={panLeft:{icon:'<svg><path d="M5 12h14M5 12l6 6M5 12l6-6"/></svg>',change:{panX:-100}},panRight:{icon:'<svg><path d="M5 12h14M13 18l6-6M13 6l6 6"/></svg>',change:{panX:100}},panUp:{icon:'<svg><path d="M12 5v14M18 11l-6-6M6 11l6-6"/></svg>',change:{panY:-100}},panDown:{icon:'<svg><path d="M12 5v14M18 13l-6 6M6 13l6 6"/></svg>',change:{panY:100}},zoomIn:{icon:'<svg><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M11 8v6M8 11h6"/></svg>',action:"zoomIn"},zoomOut:{icon:'<svg><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg>',action:"zoomOut"},toggle1to1:{icon:'<svg><path d="M3.51 3.07c5.74.02 11.48-.02 17.22.02 1.37.1 2.34 1.64 2.18 3.13 0 4.08.02 8.16 0 12.23-.1 1.54-1.47 2.64-2.79 2.46-5.61-.01-11.24.02-16.86-.01-1.36-.12-2.33-1.65-2.17-3.14 0-4.07-.02-8.16 0-12.23.1-1.36 1.22-2.48 2.42-2.46Z"/><path d="M5.65 8.54h1.49v6.92m8.94-6.92h1.49v6.92M11.5 9.4v.02m0 5.18v0"/></svg>',action:"toggleZoom"},toggleZoom:{icon:'<svg><g>
2<line x1="11" y1="8" x2="11" y2="14"></line></g><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg>',action:"toggleZoom"},iterateZoom:{icon:'<svg><g><line x1="11" y1="8" x2="11" y2="14"></line></g><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg>',action:"iterateZoom"},rotateCCW:{icon:'<svg><path d="M15 4.55a8 8 0 0 0-6 14.9M9 15v5H4M18.37 7.16v.01M13 19.94v.01M16.84 18.37v.01M19.37 15.1v.01M19.94 11v.01"/></svg>',action:"rotateCCW"},rotateCW:{icon:'<svg><path d="M9 4.55a8 8 0 0 1 6 14.9M15 15v5h5M5.63 7.16v.01M4.06 11v.01M4.63 15.1v.01M7.16 18.37v.01M11 19.94v.01"/></svg>',action:"rotateCW"},flipX:{icon:'<svg style="stroke-width: 1.3"><path d="M12 3v18M16 7v10h5L16 7M8 7v10H3L8 7"/></svg>',action:"flipX"},flipY:{icon:'<svg style="stroke-width: 1.3"><path d="M3 12h18M7 16h10L7 21v-5M7 8h10L7 3v5"/></svg>',action:"flipY"},fitX:{icon:'<svg><path d="M4 12V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v6M10 18H3M21 18h-7M6 15l-3 3 3 3M18 15l3 3-3 3"/></svg>',action:"fitX"},fitY:{icon:'<svg><path d="M12 20H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h6M18 14v7M18 3v7M15 18l3 3 3-3M15 6l3-3 3 3"/></svg>',action:"fitY"},reset:{icon:'<svg><path d="M20 11A8.1 8.1 0 0 0 4.5 9M4 5v4h4M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"/></svg>',action:"reset"},toggleFS:{icon:'<svg><g><path d="M14.5 9.5 21 3m0 0h-6m6 0v6M3 21l6.5-6.5M3 21v-6m0 6h6"/></g><g><path d="m14 10 7-7m-7 7h6m-6 0V4M3 21l7-7m0 0v6m0-6H4"/></g></svg>',action:"toggleFS"}};var Xt;!function(t){t[t.Init=0]="Init",t[t.Ready=1]="Ready",t[t.Disabled=2]="Disabled"}(Xt||(Xt={}));const Vt={tabindex:"-1",width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Yt="has-toolbar",Gt="fancybox__toolbar";class Zt extends B{constructor(){super(...arguments),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:Xt.Init}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null})}onReady(t){var e;if(!t.carousel)return;let n=this.option("display"),i=this.option("absolute"),o=this.option("enabled");if("auto"===o){const t=this.instance.carousel;let e=0;if(t)for(const n of t.slides)(n.panzoom||"image"===n.type)&&e++;e||(o=!1)}o||(n=void 0);let r=0;const s={left:[],middle:[],right:[]};if(n)for(const t of["left","middle","right"])for(const i of n[t]){const n=this.createEl(i);n&&(null===(e=s[t])||void 0===e||e.push(n),r++)}let a=null;if(r&&(a=this.createContainer()),a){for(const[t,e]of Object.entries(s)){const n=document.createElement("div");L(n,Gt+"__column is-"+t);for(const t of e)n.appendChild(t);"auto"!==i||"middle"!==t||e.length||(i=!0),a.appendChild(n)}!0===i&&L(a,"is-absolute"),this.state=Xt.Ready,this.onRefresh()}else this.state=Xt.Disabled}onClick(t){var e,n;const i=this.instance,o=i.getSlide(),r=null==o?void 0:o.panzoom,s=t.target,a=s&&k(s)?s.dataset:null;if(!a)return;if(void 0!==a.fancyboxToggleThumbs)return t.preventDefault(),t.stopPropagation(),void(null===(e=i.plugins.Thumbs)||void 0===e||e.toggle());if(void 0!==a.fancyboxToggleFullscreen)return t.preventDefault(),t.stopPropagation(),void this.instance.toggleFullscreen();if(void 0!==a.fancyboxToggleSlideshow){t.preventDefault(),t.stopPropagation();const e=null===(n=i.carousel)||void 0===n?void 0:n.plugins.Autoplay;let o=e.isActive;return r&&"mousemove"===r.panMode&&!o&&r.reset(),void(o?e.stop():e.start())}const l=a.panzoomAction,c=a.panzoomChange;if((c||l)&&(t.preventDefault(),t.stopPropagation()),c){let e={};try{e=JSON.parse(c)}catch(t){}r&&r.applyChange(e)}else l&&r&&r[l]&&r[l]()}onChange(){this.onRefresh()}onRefresh(){if(this.instance.isClosing())return;const t=this.container;if(!t)return;const e=this.instance.getSlide();if(!e||e.state!==at.Ready)return;const n=e&&!e.error&&e.panzoom;for(const e of t.querySelectorAll("[data-panzoom-action]"))n?(e.removeAttribute("disabled"),e.removeAttribute("tabindex")):(e.setAttribute("disabled",""),e.setAttribute("tabindex","-1"));let i=n&&n.canZoomIn(),o=n&&n.canZoomOut();for(const e of t.querySelectorAll('[data-panzoom-action="zoomIn"]'))i?(e.removeAttribute("disabled"),e.removeAttribute("tabindex")):(e.setAttribute("disabled",""),e.setAttribute("tabindex","-1"));for(const e of t.querySelectorAll('[data-panzoom-action="zoomOut"]'))o?(e.removeAttribute("disabled"),e.removeAttribute("tabindex")):(e.setAttribute("disabled",""),e.setAttribute("tabindex","-1"));for(const e of t.querySelectorAll('[data-panzoom-action="toggleZoom"],[data-panzoom-action="iterateZoom"]')){o||i?(e.removeAttribute("disabled"),e.removeAttribute("tabindex")):(e.setAttribute("disabled",""),e.setAttribute("tabindex","-1"));const t=e.querySelector("g");t&&(t.style.display=i?"":"none")}}onDone(t,e){var n;null===(n=e.panzoom)||void 0===n||n.on("afterTransform",(()=>{this.instance.isCurrentSlide(e)&&this.onRefresh()})),this.instance.isCurrentSlide(e)&&this.onRefresh()}createContainer(){const t=this.instance.container;if(!t)return null;const e=this.option("parentEl")||t;let n=e.querySelector("."+Gt);return n||(n=document.createElement("div"),L(n,Gt),e.prepend(n)),n.addEventListener("click",this.onClick,{passive:!1,capture:!0}),t&&L(t,Yt),this.container=n,n}createEl(t){const e=this.instance,n=e.carousel;if(!n)return null;if("toggleFS"===t)return null;if("fullscreen"===t&&!ot())return null;let i=null;const o=n.slides.length||0;let s=0,a=0;for(const t of n.slides)(t.panzoom||"image"===t.type)&&s++,("image"===t.type||t.downloadSrc)&&a++;if(o<2&&["infobar","prev","next"].includes(t))return i;if(void 0!==Wt[t]&&!s)return null;if("download"===t&&!a)return null;if("thumbs"===t){const t=e.plugins.Thumbs;if(!t||!t.isEnabled)return null}if("slideshow"===t&&(!n.plugins.Autoplay||o<2))return null;if(void 0!==Wt[t]){const e=Wt[t];i=document.createElement("button"),i.setAttribute("title",this.instance.localize(`{{${t.toUpperCase()}}}`)),L(i,"f-button"),e.action&&(i.dataset.panzoomAction=e.action),e.change&&(i.dataset.panzoomChange=JSON.stringify(e.change)),i.appendChild(r(this.instance.localize(e.icon)))}else{const e=(this.option("items")||[])[t];
2e&&(i=r(this.instance.localize(e.tpl)),"function"==typeof e.click&&i.addEventListener("click",(t=>{t.preventDefault(),t.stopPropagation(),"function"==typeof e.click&&e.click.call(this,this,t)})))}const l=null==i?void 0:i.querySelector("svg");if(l)for(const[t,e]of Object.entries(Vt))l.getAttribute(t)||l.setAttribute(t,String(e));return i}removeContainer(){const t=this.container;t&&t.remove(),this.container=null,this.state=Xt.Disabled;const e=this.instance.container;e&&_(e,Yt)}attach(){const t=this,e=t.instance;e.on("Carousel.initSlides",t.onReady),e.on("done",t.onDone),e.on(["reveal","Carousel.change"],t.onChange),t.onReady(t.instance)}detach(){const t=this,e=t.instance;e.off("Carousel.initSlides",t.onReady),e.off("done",t.onDone),e.off(["reveal","Carousel.change"],t.onChange),t.removeContainer()}}Object.defineProperty(Zt,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{absolute:"auto",display:{left:["infobar"],middle:[],right:["iterateZoom","slideshow","fullscreen","thumbs","close"]},enabled:"auto",items:{infobar:{tpl:'<div class="fancybox__infobar" tabindex="-1"><span data-fancybox-current-index></span>/<span data-fancybox-count></span></div>'},download:{tpl:'<a class="f-button" title="{{DOWNLOAD}}" data-fancybox-download href="javasript:;"><svg><path d="M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2M7 11l5 5 5-5M12 4v12"/></svg></a>'},prev:{tpl:'<button class="f-button" title="{{PREV}}" data-fancybox-prev><svg><path d="m15 6-6 6 6 6"/></svg></button>'},next:{tpl:'<button class="f-button" title="{{NEXT}}" data-fancybox-next><svg><path d="m9 6 6 6-6 6"/></svg></button>'},slideshow:{tpl:'<button class="f-button" title="{{TOGGLE_SLIDESHOW}}" data-fancybox-toggle-slideshow><svg><g><path d="M8 4v16l13 -8z"></path></g><g><path d="M8 4v15M17 4v15"/></g></svg></button>'},fullscreen:{tpl:'<button class="f-button" title="{{TOGGLE_FULLSCREEN}}" data-fancybox-toggle-fullscreen><svg><g><path d="M4 8V6a2 2 0 0 1 2-2h2M4 16v2a2 2 0 0 0 2 2h2M16 4h2a2 2 0 0 1 2 2v2M16 20h2a2 2 0 0 0 2-2v-2"/></g><g><path d="M15 19v-2a2 2 0 0 1 2-2h2M15 5v2a2 2 0 0 0 2 2h2M5 15h2a2 2 0 0 1 2 2v2M5 9h2a2 2 0 0 0 2-2V5"/></g></svg></button>'},thumbs:{tpl:'<button class="f-button" title="{{TOGGLE_THUMBS}}" data-fancybox-toggle-thumbs><svg><circle cx="5.5" cy="5.5" r="1"/><circle cx="12" cy="5.5" r="1"/><circle cx="18.5" cy="5.5" r="1"/><circle cx="5.5" cy="12" r="1"/><circle cx="12" cy="12" r="1"/><circle cx="18.5" cy="12" r="1"/><circle cx="5.5" cy="18.5" r="1"/><circle cx="12" cy="18.5" r="1"/><circle cx="18.5" cy="18.5" r="1"/></svg></button>'},close:{tpl:'<button class="f-button" title="{{CLOSE}}" data-fancybox-close><svg><path d="m19.5 4.5-15 15M4.5 4.5l15 15"/></svg></button>'}},parentEl:null}});const Kt={Hash:class extends B{onReady(){ct=!1}onChange(t){ht&&clearTimeout(ht);const{hash:e}=dt(),{hash:n}=ft(),i=t.isOpeningSlide(t.getSlide());i&&(lt=n===e?"":n),e&&e!==n&&(ht=setTimeout((()=>{try{if(t.state===st.Ready){let t="replaceState";i&&!ut&&(t="pushState",ut=!0),window.history[t]({},document.title,window.location.pathname+window.location.search+e)}}catch(t){}}),300))}onClose(t){if(ht&&clearTimeout(ht),!ct&&ut)return ut=!1,ct=!1,void window.history.back();if(!ct)try{window.history.replaceState({},document.title,window.location.pathname+window.location.search+(lt||""))}catch(t){}}attach(){const t=this.instance;t.on("ready",this.onReady),t.on(["Carousel.ready","Carousel.change"],this.onChange),t.on("close",this.onClose)}detach(){const t=this.instance;t.off("ready",this.onReady),t.off(["Carousel.ready","Carousel.change"],this.onChange),t.off("close",this.onClose)}static parseURL(){return ft()}static startFromUrl(){pt()}static destroy(){window.removeEventListener("hashchange",gt,!1)}},Html:Ot,Images:yt,Slideshow:Rt,Thumbs:$t,Toolbar:Zt},Jt="with-fancybox",Qt="hide-scrollbar",te="--fancybox-scrollbar-compensate",ee="--fancybox-body-margin",ne="aria-hidden",ie="is-using-tab",oe="is-animated",re="is-compact",se="is-loading",ae="is-opening",le="has-caption",ce="disabled",ue="tabindex",he="download",de="href",fe="src",pe=t=>"string"==typeof t,me=function(){var t=window.getSelection();return!!t&&"Range"===t.type};let ge,ve=null,be=null,ye=0,we=0,Se=0,Ee=0;const xe=new Map;let ke=0;class _e extends v{get isIdle(){return this.idle}get isCompact(){return this.option("compact")}constructor(t=[],e={},n={}){super(e),Object.defineProperty(this,"userSlides",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"userPlugins",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"idle",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"idleTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"clickTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"pwt",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"ignoreFocusChange",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"startedFs",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:st.Init}),Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"footer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"carousel",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"lastFocus",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"prevMouseMoveEvent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),ge||(ge=ot()),this.id=e.id||++ke,xe.set(this.id,this),this.userSlides=t,this.userPlugins=n,queueMicrotask((()=>{this.init()}))}init(){if(this.state===st.Destroy)return;this.state=st.Init,this.attachPlugins(Object.assign(Object.assign({}
2,_e.Plugins),this.userPlugins)),this.emit("init"),this.emit("attachPlugins"),!0===this.option("hideScrollbar")&&(()=>{if(!tt)return;const t=document,e=t.body,n=t.documentElement;if(e.classList.contains(Qt))return;let i=window.innerWidth-n.getBoundingClientRect().width;const o=parseFloat(window.getComputedStyle(e).marginRight);i<0&&(i=0),n.style.setProperty(te,`${i}px`),o&&e.style.setProperty(ee,`${o}px`),e.classList.add(Qt)})(),this.initLayout(),this.scale();const t=()=>{this.initCarousel(this.userSlides),this.state=st.Ready,this.attachEvents(),this.emit("ready"),setTimeout((()=>{this.container&&this.container.setAttribute(ne,"false")}),16)};this.option("Fullscreen.autoStart")&&ge&&!ge.isFullscreen()?ge.request().then((()=>{this.startedFs=!0,t()})).catch((()=>t())):t()}initLayout(){var t,e;const n=this.option("parentEl")||document.body,i=r(this.localize(this.option("tpl.main")||""));if(i){if(i.setAttribute("id",`fancybox-${this.id}`),i.setAttribute("aria-label",this.localize("{{MODAL}}")),i.classList.toggle(re,this.isCompact),L(i,this.option("mainClass")||""),L(i,ae),this.container=i,this.footer=i.querySelector(".fancybox__footer"),n.appendChild(i),L(document.documentElement,Jt),ve&&be||(ve=document.createElement("span"),L(ve,"fancybox-focus-guard"),ve.setAttribute(ue,"0"),ve.setAttribute(ne,"true"),ve.setAttribute("aria-label","Focus guard"),be=ve.cloneNode(),null===(t=i.parentElement)||void 0===t||t.insertBefore(ve,i),null===(e=i.parentElement)||void 0===e||e.append(be)),i.addEventListener("mousedown",(t=>{ye=t.pageX,we=t.pageY,_(i,ie)})),this.option("closeExisting"))for(const t of xe.values())t.id!==this.id&&t.close();else this.option("animated")&&(L(i,oe),setTimeout((()=>{this.isClosing()||_(i,oe)}),350));this.emit("initLayout")}}initCarousel(t){const e=this.container;if(!e)return;const n=e.querySelector(".fancybox__carousel");if(!n)return;const o=this.carousel=new J(n,p({},{slides:t,transition:"fade",Panzoom:{lockAxis:this.option("dragToClose")?"xy":"x",infinite:!!this.option("dragToClose")&&"y"},Dots:!1,Navigation:{classes:{container:"fancybox__nav",button:"f-button",isNext:"is-next",isPrev:"is-prev"}},initialPage:this.option("startIndex"),l10n:this.option("l10n")},this.option("Carousel")||{}));o.on("*",((t,e,...n)=>{this.emit(`Carousel.${e}`,t,...n)})),o.on(["ready","change"],(()=>{this.manageCaption()})),this.on("Carousel.removeSlide",((t,e,n)=>{this.clearContent(n),n.state=void 0})),o.on("Panzoom.touchStart",(()=>{var t,e;this.isCompact||this.endIdle(),(null===(t=document.activeElement)||void 0===t?void 0:t.closest(".f-thumbs"))&&(null===(e=this.container)||void 0===e||e.focus())})),o.on("settle",(()=>{this.idleTimer||this.isCompact||!this.option("idle")||this.setIdle(),this.option("autoFocus")&&!this.isClosing&&this.checkFocus()})),this.option("dragToClose")&&(o.on("Panzoom.afterTransform",((t,e)=>{const n=this.getSlide();if(n&&i(n.el))return;const o=this.container;if(o){const t=Math.abs(e.current.f),n=t<1?"":Math.max(.5,Math.min(1,1-t/e.contentRect.fitHeight*1.5));o.style.setProperty("--fancybox-ts",n?"0s":""),o.style.setProperty("--fancybox-opacity",n+"")}})),o.on("Panzoom.touchEnd",((t,e,n)=>{var o;const r=this.getSlide();if(r&&i(r.el))return;if(e.isMobile&&document.activeElement&&-1!==["TEXTAREA","INPUT"].indexOf(null===(o=document.activeElement)||void 0===o?void 0:o.nodeName))return;const s=Math.abs(e.dragOffset.y);"y"===e.lockedAxis&&(s>=200||s>=50&&e.dragOffset.time<300)&&(n&&n.cancelable&&n.preventDefault(),this.close(n,"f-throwOut"+(e.current.f<0?"Up":"Down")))}))),o.on("change",(t=>{var e;let n=null===(e=this.getSlide())||void 0===e?void 0:e.triggerEl;if(n){const e=new CustomEvent("slideTo",{bubbles:!0,cancelable:!0,detail:t.page});n.dispatchEvent(e)}})),o.on(["refresh","change"],(t=>{const e=this.container;if(!e)return;for(const n of e.querySelectorAll("[data-fancybox-current-index]"))n.innerHTML=t.page+1;for(const n of e.querySelectorAll("[data-fancybox-count]"))n.innerHTML=t.pages.length;if(!t.isInfinite){for(const n of e.querySelectorAll("[data-fancybox-next]"))t.page<t.pages.length-1?(n.removeAttribute(ce),n.removeAttribute(ue)):(n.setAttribute(ce,""),n.setAttribute(ue,"-1"));for(const n of e.querySelectorAll("[data-fancybox-prev]"))t.page>0?(n.removeAttribute(ce),n.removeAttribute(ue)):(n.setAttribute(ce,""),n.setAttribute(ue,"-1"))}const n=this.getSlide();if(!n)return;let i=n.downloadSrc||"";i||"image"!==n.type||n.error||!pe(n[fe])||(i=n[fe]);for(const t of e.querySelectorAll("[data-fancybox-download]")){const e=n.downloadFilename;i?(t.removeAttribute(ce),t.removeAttribute(ue),t.setAttribute(de,i),t.setAttribute(he,e||i),t.setAttribute("target","_blank")):(t.setAttribute(ce,""),t.setAttribute(ue,"-1"),t.removeAttribute(de),t.removeAttribute(he))}}
2)),this.emit("initCarousel")}attachEvents(){const t=this,e=t.container;if(!e)return;e.addEventListener("click",t.onClick,{passive:!1,capture:!1}),e.addEventListener("wheel",t.onWheel,{passive:!1,capture:!1}),document.addEventListener("keydown",t.onKeydown,{passive:!1,capture:!0}),document.addEventListener("visibilitychange",t.onVisibilityChange,!1),document.addEventListener("mousemove",t.onMousemove),t.option("trapFocus")&&document.addEventListener("focus",t.onFocus,!0),window.addEventListener("resize",t.onResize);const n=window.visualViewport;n&&(n.addEventListener("scroll",t.onResize),n.addEventListener("resize",t.onResize))}detachEvents(){const t=this,e=t.container;if(!e)return;document.removeEventListener("keydown",t.onKeydown,{passive:!1,capture:!0}),e.removeEventListener("wheel",t.onWheel,{passive:!1,capture:!1}),e.removeEventListener("click",t.onClick,{passive:!1,capture:!1}),document.removeEventListener("mousemove",t.onMousemove),window.removeEventListener("resize",t.onResize);const n=window.visualViewport;n&&(n.removeEventListener("resize",t.onResize),n.removeEventListener("scroll",t.onResize)),document.removeEventListener("visibilitychange",t.onVisibilityChange,!1),document.removeEventListener("focus",t.onFocus,!0)}scale(){const t=this.container;if(!t)return;const e=window.visualViewport,n=Math.max(1,(null==e?void 0:e.scale)||1);let i="",o="",r="";if(e&&n>1){let t=`${e.offsetLeft}px`,s=`${e.offsetTop}px`;i=e.width*n+"px",o=e.height*n+"px",r=`translate3d(${t}, ${s}, 0) scale(${1/n})`}t.style.transform=r,t.style.width=i,t.style.height=o}onClick(t){var e;const{container:n,isCompact:i}=this;if(!n||this.isClosing())return;!i&&this.option("idle")&&this.resetIdle();const o=t.composedPath()[0];if(o.closest(".fancybox-spinner")||o.closest("[data-fancybox-close]"))return t.preventDefault(),void this.close(t);if(o.closest("[data-fancybox-prev]"))return t.preventDefault(),void this.prev();if(o.closest("[data-fancybox-next]"))return t.preventDefault(),void this.next();if("click"===t.type&&0===t.detail)return;if(Math.abs(t.pageX-ye)>30||Math.abs(t.pageY-we)>30)return;const r=document.activeElement;if(me()&&r&&n.contains(r))return;if(i&&"image"===(null===(e=this.getSlide())||void 0===e?void 0:e.type))return void(this.clickTimer?(clearTimeout(this.clickTimer),this.clickTimer=null):this.clickTimer=setTimeout((()=>{this.toggleIdle(),this.clickTimer=null}),350));if(this.emit("click",t),t.defaultPrevented)return;let s=!1;if(o.closest(".fancybox__content")){if(r){if(r.closest("[contenteditable]"))return;o.matches(nt)||r.blur()}if(me())return;s=this.option("contentClick")}else o.closest(".fancybox__carousel")&&!o.matches(nt)&&(s=this.option("backdropClick"));"close"===s?(t.preventDefault(),this.close(t)):"next"===s?(t.preventDefault(),this.next()):"prev"===s&&(t.preventDefault(),this.prev())}onWheel(t){const e=t.target;let n=this.option("wheel",t);e.closest(".fancybox__thumbs")&&(n="slide");const i="slide"===n,r=[-t.deltaX||0,-t.deltaY||0,-t.detail||0].reduce((function(t,e){return Math.abs(e)>Math.abs(t)?e:t})),s=Math.max(-1,Math.min(1,r)),a=Date.now();this.pwt&&a-this.pwt<300?i&&t.preventDefault():(this.pwt=a,this.emit("wheel",t,s),t.defaultPrevented||("close"===n?(t.preventDefault(),this.close(t)):"slide"===n&&(o(e)||(t.preventDefault(),this[s>0?"prev":"next"]()))))}onScroll(){window.scrollTo(Se,Ee)}onKeydown(t){if(!this.isTopmost())return;this.isCompact||!this.option("idle")||this.isClosing()||this.resetIdle();const e=t.key,n=this.option("keyboard");if(!n)return;const i=t.composedPath()[0],o=document.activeElement&&document.activeElement.classList,r=o&&o.contains("f-button")||i.dataset.carouselPage||i.dataset.carouselIndex;if("Escape"!==e&&!r&&k(i)&&(i.isContentEditable||-1!==["TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].indexOf(i.nodeName)))return;if("Tab"===t.key?L(this.container,ie):_(this.container,ie),t.ctrlKey||t.altKey||t.shiftKey)return;this.emit("keydown",e,t);const s=n[e];s&&"function"==typeof this[s]&&(t.preventDefault(),this[s]())}onResize(){const t=this.container;if(!t)return;const e=this.isCompact;t.classList.toggle(re,e),this.manageCaption(this.getSlide()),this.isCompact?this.clearIdle():this.endIdle(),this.scale(),this.emit
2("resize")}onFocus(t){this.isTopmost()&&this.checkFocus(t)}onMousemove(t){this.prevMouseMoveEvent=t,!this.isCompact&&this.option("idle")&&this.resetIdle()}onVisibilityChange(){"visible"===document.visibilityState?this.checkFocus():this.endIdle()}manageCloseBtn(t){const e=this.optionFor(t,"closeButton")||!1;if("auto"===e){const t=this.plugins.Toolbar;if(t&&t.state===Xt.Ready)return}if(!e)return;if(!t.contentEl||t.closeBtnEl)return;const n=this.option("tpl.closeButton");if(n){const e=r(this.localize(n));t.closeBtnEl=t.contentEl.appendChild(e),t.el&&L(t.el,"has-close-btn")}}manageCaption(t=void 0){var e,n;const i="fancybox__caption",o=this.container;if(!o)return;_(o,le);const r=this.isCompact||this.option("commonCaption"),s=!r;if(this.caption&&this.stop(this.caption),s&&this.caption&&(this.caption.remove(),this.caption=null),r&&!this.caption)for(const t of(null===(e=this.carousel)||void 0===e?void 0:e.slides)||[])t.captionEl&&(t.captionEl.remove(),t.captionEl=void 0,_(t.el,le),null===(n=t.el)||void 0===n||n.removeAttribute("aria-labelledby"));if(t||(t=this.getSlide()),!t||r&&!this.isCurrentSlide(t))return;const a=t.el;let l=this.optionFor(t,"caption","");if(!l)return void(r&&this.caption&&this.animate(this.caption,"f-fadeOut",(()=>{this.caption&&(this.caption.innerHTML="")})));let c=null;if(s){if(c=t.captionEl||null,a&&!c){const e=i+`_${this.id}_${t.index}`;c=document.createElement("div"),L(c,i),c.setAttribute("id",e),t.captionEl=a.appendChild(c),L(a,le),a.setAttribute("aria-labelledby",e)}}else c=this.caption,c||(c=o.querySelector("."+i)),c||(c=document.createElement("div"),c.dataset.fancyboxCaption="",L(c,i),(this.footer||o).prepend(c)),L(o,le),this.caption=c;c&&(c.innerHTML="",pe(l)||"number"==typeof l?c.innerHTML=l+"":l instanceof HTMLElement&&c.appendChild(l))}checkFocus(t){this.focus(t)}focus(t){var e;if(this.ignoreFocusChange)return;const n=document.activeElement||null,i=(null==t?void 0:t.target)||null,o=this.container,r=null===(e=this.carousel)||void 0===e?void 0:e.viewport;if(!o||!r)return;if(!t&&n&&o.contains(n))return;const s=this.getSlide(),a=s&&s.state===at.Ready?s.el:null;if(!a||a.contains(n)||o===n)return;t&&t.cancelable&&t.preventDefault(),this.ignoreFocusChange=!0;const l=Array.from(o.querySelectorAll(nt));let c=[],u=null;for(let t of l){const e=!t.offsetParent||!!t.closest('[aria-hidden="true"]'),n=a&&a.contains(t),i=!r.contains(t);if(t===o||(n||i)&&!e){c.push(t);const e=t.dataset.origTabindex;void 0!==e&&e&&(t.tabIndex=parseFloat(e)),t.removeAttribute("data-orig-tabindex"),!t.hasAttribute("autoFocus")&&u||(u=t)}else{const e=void 0===t.dataset.origTabindex?t.getAttribute("tabindex")||"":t.dataset.origTabindex;e&&(t.dataset.origTabindex=e),t.tabIndex=-1}}let h=null;t?(!i||c.indexOf(i)<0)&&(h=u||o,c.length&&(n===be?h=c[0]:this.lastFocus!==o&&n!==ve||(h=c[c.length-1]))):h=s&&"image"===s.type?o:u||o,h&&it(h),this.lastFocus=document.activeElement,this.ignoreFocusChange=!1}next(){const t=this.carousel;t&&t.pages.length>1&&t.slideNext()}prev(){const t=this.carousel;t&&t.pages.length>1&&t.slidePrev()}jumpTo(...t){this.carousel&&this.carousel.slideTo(...t)}isTopmost(){var t;return(null===(t=_e.getInstance())||void 0===t?void 0:t.id)==this.id}animate(t=null,e="",n){if(!t||!e)return void(n&&n());this.stop(t);const i=o=>{o.target===t&&t.dataset.animationName&&(t.removeEventListener("animationend",i),delete t.dataset.animationName,n&&n(),_(t,e))};t.dataset.animationName=e,t.addEventListener("animationend",i),L(t,e)}stop(t){t&&t.dispatchEvent(new CustomEvent("animationend",{bubbles:!1,cancelable:!0,currentTarget:t}))}setContent(t,e="",n=!0){if(this.isClosing())return;const i=t.el;if(!i)return;let o=null;if(k(e)?o=e:(o=r(e+""),k(o)||(o=document.createElement("div"),o.innerHTML=e+"")),["img","picture","iframe","video","audio"].includes(o.nodeName.toLowerCase())){const t=document.createElement("div");t.appendChild(o),o=t}k(o)&&t.filter&&!t.error&&(o=o.querySelector(t.filter)),o&&k(o)?(L(o,"fancybox__content"),t.id&&o.setAttribute("id",t.id),i.classList.add(`has-${t.error?"error":t.type||"unknown"}`),i.prepend(o),"none"===o.style.display&&(o.style.display=""),"none"===getComputedStyle(o).getPropertyValue("display")&&(o.style.display=t.display||this.option("defaultDisplay")||"flex"),t.contentEl=o,n&&this.revealContent(t),this.manageCloseBtn(t),this.manageCaption(t)):this.setError(t,"{{ELEMENT_NOT_FOUND}}")}revealContent(t,e){const n=t.el,i=t.contentEl;
2n&&i&&(this.emit("reveal",t),this.hideLoading(t),t.state=at.Opening,(e=this.isOpeningSlide(t)?void 0===e?this.optionFor(t,"showClass"):e:"f-fadeIn")?this.animate(i,e,(()=>{this.done(t)})):this.done(t))}done(t){this.isClosing()||(t.state=at.Ready,this.emit("done",t),L(t.el,"is-done"),this.isCurrentSlide(t)&&this.option("autoFocus")&&queueMicrotask((()=>{var e;null===(e=t.panzoom)||void 0===e||e.updateControls(),this.option("autoFocus")&&this.focus()})),this.isOpeningSlide(t)&&(_(this.container,ae),!this.isCompact&&this.option("idle")&&this.setIdle()))}isCurrentSlide(t){const e=this.getSlide();return!(!t||!e)&&e.index===t.index}isOpeningSlide(t){var e,n;return null===(null===(e=this.carousel)||void 0===e?void 0:e.prevPage)&&t&&t.index===(null===(n=this.getSlide())||void 0===n?void 0:n.index)}showLoading(t){t.state=at.Loading;const e=t.el;e&&(L(e,se),this.emit("loading",t),t.spinnerEl||setTimeout((()=>{if(!this.isClosing()&&!t.spinnerEl&&t.state===at.Loading){let n=r(x);L(n,"fancybox-spinner"),t.spinnerEl=n,e.prepend(n),this.animate(n,"f-fadeIn")}}),250))}hideLoading(t){const e=t.el;if(!e)return;const n=t.spinnerEl;this.isClosing()?null==n||n.remove():(_(e,se),n&&this.animate(n,"f-fadeOut",(()=>{n.remove()}
2)),t.state===at.Loading&&(this.emit("loaded",t),t.state=at.Ready))}setError(t,e){if(this.isClosing())return;const n=new Event("error",{bubbles:!0,cancelable:!0});if(this.emit("error",n,t),n.defaultPrevented)return;t.error=e,this.hideLoading(t),this.clearContent(t);const i=document.createElement("div");i.classList.add("fancybox-error"),i.innerHTML=this.localize(e||"<p>{{ERROR}}</p>"),this.setContent(t,i)}clearContent(t){if(void 0===t.state)return;this.emit("clearContent",t),t.contentEl&&(t.contentEl.remove(),t.contentEl=void 0);const e=t.el;e&&(_(e,"has-error"),_(e,"has-unknown"),_(e,`has-${t.type||"unknown"}`)),t.closeBtnEl&&t.closeBtnEl.remove(),t.closeBtnEl=void 0,t.captionEl&&t.captionEl.remove(),t.captionEl=void 0,t.spinnerEl&&t.spinnerEl.remove(),t.spinnerEl=void 0}getSlide(){var t;const e=this.carousel;return(null===(t=null==e?void 0:e.pages[null==e?void 0:e.page])||void 0===t?void 0:t.slides[0])||void 0}close(t,e){if(this.isClosing())return;const n=new Event("shouldClose",{bubbles:!0,cancelable:!0});if(this.emit("shouldClose",n,t),n.defaultPrevented)return;t&&t.cancelable&&(t.preventDefault(),t.stopPropagation());const i=()=>{this.proceedClose(t,e)};this.startedFs&&ge&&ge.isFullscreen()?Promise.resolve(ge.exit()).then((()=>i())):i()}clearIdle(){this.idleTimer&&clearTimeout(this.idleTimer),this.idleTimer=null}setIdle(t=!1){const e=()=>{this.clearIdle(),this.idle=!0,L(this.container,"is-idle"),this.emit("setIdle")};if(this.clearIdle(),!this.isClosing())if(t)e();else{const t=this.option("idle");t&&(this.idleTimer=setTimeout(e,t))}}endIdle(){this.clearIdle(),this.idle&&!this.isClosing()&&(this.idle=!1,_(this.container,"is-idle"),this.emit("endIdle"))}resetIdle(){this.endIdle(),this.setIdle()}toggleIdle(){this.idle?this.endIdle():this.setIdle(!0)}toggleFullscreen(){ge&&(ge.isFullscreen()?ge.exit():ge.request().then((()=>{this.startedFs=!0})))}isClosing(){return[st.Closing,st.CustomClosing,st.Destroy].includes(this.state)}proceedClose(t,e){var n,i;this.state=st.Closing,this.clearIdle(),this.detachEvents();const o=this.container,r=this.carousel,s=this.getSlide(),a=s&&this.option("placeFocusBack")?s.triggerEl||this.option("triggerEl"):null;if(a&&(Q(a)?it(a):a.focus()),o&&(_(o,ae),L(o,"is-closing"),o.setAttribute(ne,"true"),this.option("animated")&&L(o,oe),o.style.pointerEvents="none"),r){r.clearTransitions(),null===(n=r.panzoom)||void 0===n||n.destroy(),null===(i=r.plugins.Navigation)||void 0===i||i.detach();for(const t of r.slides){t.state=at.Closing,this.hideLoading(t);const e=t.contentEl;e&&this.stop(e);const n=null==t?void 0:t.panzoom;n&&(n.stop(),n.detachEvents(),n.detachObserver()),this.isCurrentSlide(t)||r.emit("removeSlide",t)}}Se=window.scrollX,Ee=window.scrollY,window.addEventListener("scroll",this.onScroll),this.emit("close",t),this.state!==st.CustomClosing?(void 0===e&&s&&(e=this.optionFor(s,"hideClass")),e&&s?(this.animate(s.contentEl,e,(()=>{r&&r.emit("removeSlide",s)})),setTimeout((()=>{this.destroy()}),500)):this.destroy()):setTimeout((()=>{this.destroy()}),500)}destroy(){var t;if(this.state===st.Destroy)return;window.removeEventListener("scroll",this.onScroll),this.state=st.Destroy,null===(t=this.carousel)||void 0===t||t.destroy();const e=this.container;e&&e.remove(),xe.delete(this.id);const n=_e.getInstance();n?n.focus():(ve&&(ve.remove(),ve=null),be&&(be.remove(),be=null),_(document.documentElement,Jt),(()=>{if(!tt)return;const t=document,e=t.body;e.classList.remove(Qt),e.style.setProperty(ee,""),t.documentElement.style.setProperty(te,"")})(),this.emit("destroy"))}static bind(t,e,n){if(!tt)return;let i,o="",r={};if(void 0===t?i=document.body:pe(t)?(i=document.body,o=t,"object"==typeof e&&(r=e||{})):(i=t,pe(e)&&(o=e),"object"==typeof n&&(r=n||{})),!i||!k(i))return;o=o||"[data-fancybox]";const s=_e.openers.get(i)||new Map;s.set(o,r),_e.openers.set(i,s),1===s.size&&i.addEventListener("click",_e.fromEvent)}static unbind(t,e){let n,i="";if(pe(t)?(n=document.body,i=t):(n=t,pe(e)&&(i=e)),!n)return;const o=_e.openers.get(n);o&&i&&o.delete(i),i&&o||(_e.openers.delete(n),n.removeEventListener("click",_e.fromEvent))}static destroy(){let t;for(;t=_e.getInstance();)t.destroy();for(const t of _e.openers.keys())t.removeEventListener("click",_e.from
2Event);_e.openers=new Map}static fromEvent(t){if(t.defaultPrevented)return;if(t.button&&0!==t.button)return;if(t.ctrlKey||t.metaKey||t.shiftKey)return;let e=t.composedPath()[0];const n=e.closest("[data-fancybox-trigger]");if(n){const t=n.dataset.fancyboxTrigger||"",i=document.querySelectorAll(`[data-fancybox="${t}"]`),o=parseInt(n.dataset.fancyboxIndex||"",10)||0;e=i[o]||e}if(!(e&&e instanceof Element))return;let i,o,r,s;if([..._e.openers].reverse().find((([t,n])=>!(!t.contains(e)||![...n].reverse().find((([n,a])=>{let l=e.closest(n);return!!l&&(i=t,o=n,r=l,s=a,!0)}))))),!i||!o||!r)return;s=s||{},t.preventDefault(),e=r;let a=[],l=p({},rt,s);l.event=t,l.triggerEl=e,l.delegate=n;const c=l.groupAll,u=l.groupAttr,h=u&&e?e.getAttribute(`${u}`):"";if((!e||h||c)&&(a=[].slice.call(i.querySelectorAll(o))),e&&!c&&(a=h?a.filter((t=>t.getAttribute(`${u}`)===h)):[e]),!a.length)return;const d=_e.getInstance();return d&&d.options.triggerEl&&a.indexOf(d.options.triggerEl)>-1?void 0:(e&&(l.startIndex=a.indexOf(e)),_e.fromNodes(a,l))}static fromSelector(t,e,n){let i=null,o="",r={};if(pe(t)?(i=document.body,o=t,"object"==typeof e&&(r=e||{})):t instanceof HTMLElement&&pe(e)&&(i=t,o=e,"object"==typeof n&&(r=n||{})),!i||!o)return!1;const s=_e.openers.get(i);return!!s&&(r=p({},s.get(o)||{},r),!!r&&_e.fromNodes(Array.from(i.querySelectorAll(o)),r))}static fromNodes(t,e){e=p({},rt,e||{});const n=[];for(const i of t){const t=i.dataset||{},o=t[fe]||i.getAttribute(de)||i.getAttribute("currentSrc")||i.getAttribute(fe)||void 0;let r;const s=e.delegate;let a;s&&n.length===e.startIndex&&(r=s instanceof HTMLImageElement?s:s.querySelector("img:not([aria-hidden])")),r||(r=i instanceof HTMLImageElement?i:i.querySelector("img:not([aria-hidden])")),r&&(a=r.currentSrc||r[fe]||void 0,!a&&r.dataset&&(a=r.dataset.lazySrc||r.dataset[fe]||void 0));const l={src:o,triggerEl:i,thumbEl:r,thumbElSrc:a,thumbSrc:a};for(const e in t){let n=t[e]+"";n="false"!==n&&("true"===n||n),l[e]=n}n.push(l)}return new _e(n,e)}static getInstance(t){return t?xe.get(t):Array.from(xe.values()).reverse().find((t=>!t.isClosing()&&t))||null}static getSlide(){var t;return(null===(t=_e.getInstance())||void 0===t?void 0:t.getSlide())||null}static show(t=[],e={}){return new _e(t,e)}static next(){const t=_e.getInstance();t&&t.next()}static prev(){const t=_e.getInstance();t&&t.prev()}static close(t=!0,...e){if(t)for(const t of xe.values())t.close(...e);else{const t=_e.getInstance();t&&t.close(...e)}}}function Le(t,e){return function(){return t.apply(e,arguments)}}Object.defineProperty(_e,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.0.36"}),Object.defineProperty(_e,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:rt}),Object.defineProperty(_e,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:Kt}),Object.defineProperty(_e,"openers",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),_e.bind("[data-fancybox]",{}),n(438),n(921),n(843),n(307),n(603),n(260),n(763),n(236),n(682),n(77),n(896),n(21),n(167),n(650),n(168),n(667),n(556);const{toString:Te}=Object.prototype,{getPrototypeOf:Oe}=Object,Pe=(Ce=Object.create(null),t=>{const e=Te.call(t);return Ce[e]||(Ce[e]=e.slice(8,-1).toLowerCase())});var Ce;const Ae=t=>(t=t.toLowerCase(),e=>Pe(e)===t),Me=t=>e=>typeof e===t,{isArray:Re}=Array,je=Me("undefined"),De=Ae("ArrayBuffer"),Fe=Me("string"),ze=Me("function"),Ie=Me("number"),Ne=t=>null!==t&&"object"==typeof t,qe=t=>{if("object"!==Pe(t))return!1;const e=Oe(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},Be=Ae("Date"),He=Ae("File"),Ue=Ae("Blob"),$e=Ae("FileList"),We=Ae("URLSearchParams"),[Xe,Ve,Ye,Ge]=["ReadableStream","Request","Response","Headers"].map(Ae);function Ze(t,e,{allOwnKeys:n=!1}={}){if(null==t)return;let i,o;if("object"!=typeof t&&(t=[t]),Re(t))for(i=0,o=t.length;i<o;i++)e.call(null,t[i],i,t);else{const o=n?Object.getOwnPropertyNames(t):Object.keys(t),r=o.length;let s;for(i=0;i<r;i++)s=o[i],e.call(null,t[s],s,t)}}function Ke(t,e){e=e.toLowerCase();const n=Object.keys(t);let i,o=n.length;for(;o-- >0;)if(i=n[o],e===i.toLowerCase())return i;return null}const Je="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Qe=t=>!je(t)&&t!==Je,tn=(en="undefined"!=typeof Uint8Array&&Oe(Uint8Array),t=>en&&t instanceof en);var en;const nn=Ae("HTMLFormElement"),on=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),rn=Ae("RegExp"),sn=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),i={};Ze(n,((n,o)=>{let r;!1!==(r=e(n,o,t))&&(i[o]=r||n)})),Object.defineProperties(t,i)}
vendor: 4,175 bytes, line 2
2,an="abcdefghijklmnopqrstuvwxyz",ln="0123456789",cn={DIGIT:ln,ALPHA:an,ALPHA_DIGIT:an+an.toUpperCase()+ln},un=Ae("AsyncFunction"),hn={isArray:Re,isArrayBuffer:De,isBuffer:function(t){return null!==t&&!je(t)&&null!==t.constructor&&!je(t.constructor)&&ze(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||ze(t.append)&&("formdata"===(e=Pe(t))||"object"===e&&ze(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&De(t.buffer),e},isString:Fe,isNumber:Ie,isBoolean:t=>!0===t||!1===t,isObject:Ne,isPlainObject:qe,isReadableStream:Xe,isRequest:Ve,isResponse:Ye,isHeaders:Ge,isUndefined:je,isDate:Be,isFile:He,isBlob:Ue,isRegExp:rn,isFunction:ze,isStream:t=>Ne(t)&&ze(t.pipe),isURLSearchParams:We,isTypedArray:tn,isFileList:$e,forEach:Ze,merge:function t(){const{caseless:e}=Qe(this)&&this||{},n={},i=(i,o)=>{const r=e&&Ke(n,o)||o;qe(n[r])&&qe(i)?n[r]=t(n[r],i):qe(i)?n[r]=t({},i):Re(i)?n[r]=i.slice():n[r]=i};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&Ze(arguments[t],i);return n},extend:(t,e,n,{allOwnKeys:i}={})=>(Ze(e,((e,i)=>{n&&ze(e)?t[i]=Le(e,n):t[i]=e}),{allOwnKeys:i}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,n,i)=>{t.prototype=Object.create(e.prototype,i),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject:(t,e,n,i)=>{let o,r,s;const a={};if(e=e||{},null==t)return e;do{for(o=Object.getOwnPropertyNames(t),r=o.length;r-- >0;)s=o[r],i&&!i(s,t,e)||a[s]||(e[s]=t[s],a[s]=!0);t=!1!==n&&Oe(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:Pe,kindOfTest:Ae,endsWith:(t,e,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;const i=t.indexOf(e,n);return-1!==i&&i===n},toArray:t=>{if(!t)return null;if(Re(t))return t;let e=t.length;if(!Ie(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},forEachEntry:(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let i;for(;(i=n.next())&&!i.done;){const n=i.value;e.call(t,n[0],n[1])}},matchAll:(t,e)=>{let n;const i=[];for(;null!==(n=t.exec(e));)i.push(n);return i},isHTMLForm:nn,hasOwnProperty:on,hasOwnProp:on,reduceDescriptors:sn,freezeMethods:t=>{sn(t,((e,n)=>{if(ze(t)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const i=t[n];ze(i)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(t,e)=>{const n={},i=t=>{t.forEach((t=>{n[t]=!0}))};return Re(t)?i(t):i(String(t).split(e)),n},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,n){return e.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(t,e)=>null!=t&&Number.isFinite(t=+t)?t:e,findKey:Ke,global:Je,isContextDefined:Qe,ALPHABET:cn,generateString:(t=16,e=cn.ALPHA_DIGIT)=>{let n="";const{length:i}=e;for(;t--;)n+=e[Math.random()*i|0];return n},isSpecCompliantForm:function(t){return!!(t&&ze(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{const e=new Array(10),n=(t,i)=>{if(Ne(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[i]=t;const o=Re(t)?[]:{};return Ze(t,((t,e)=>{const r=n(t,i+1);!je(r)&&(o[e]=r)})),e[i]=void 0,o}}return t};return n(t,0)},isAsyncFn:un,isThenable:t=>t&&(Ne(t)||ze(t))&&ze(t.then)&&ze(t.catch)};function dn(t,e,n,i,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),i&&(this.request=i),o&&(this.response=o)}hn.inherits(dn,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:hn.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const fn=dn.prototype,pn={};
vendor: 2,392 bytes, line 2
2["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{pn[t]={value:t}})),Object.defineProperties(dn,pn),Object.defineProperty(fn,"isAxiosError",{value:!0}),dn.from=(t,e,n,i,o,r)=>{const s=Object.create(fn);return hn.toFlatObject(t,s,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),dn.call(s,t.message,e,n,i,o),s.cause=t,s.name=t.name,r&&Object.assign(s,r),s};const mn=dn;function gn(t){return hn.isPlainObject(t)||hn.isArray(t)}function vn(t){return hn.endsWith(t,"[]")?t.slice(0,-2):t}function bn(t,e,n){return t?t.concat(e).map((function(t,e){return t=vn(t),!n&&e?"["+t+"]":t})).join(n?".":""):e}const yn=hn.toFlatObject(hn,{},null,(function(t){return/^is[A-Z]/.test(t)})),wn=function(t,e,n){if(!hn.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const i=(n=hn.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!hn.isUndefined(e[t])}))).metaTokens,o=n.visitor||c,r=n.dots,s=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&hn.isSpecCompliantForm(e);if(!hn.isFunction(o))throw new TypeError("visitor must be a function");function l(t){if(null===t)return"";if(hn.isDate(t))return t.toISOString();if(!a&&hn.isBlob(t))throw new mn("Blob is not supported. Use a Buffer instead.");return hn.isArrayBuffer(t)||hn.isTypedArray(t)?a&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function c(t,n,o){let a=t;if(t&&!o&&"object"==typeof t)if(hn.endsWith(n,"{}"))n=i?n:n.slice(0,-2),t=JSON.stringify(t);else if(hn.isArray(t)&&function(t){return hn.isArray(t)&&!t.some(gn)}(t)||(hn.isFileList(t)||hn.endsWith(n,"[]"))&&(a=hn.toArray(t)))return n=vn(n),a.forEach((function(t,i){!hn.isUndefined(t)&&null!==t&&e.append(!0===s?bn([n],i,r):null===s?n:n+"[]",l(t))})),!1;return!!gn(t)||(e.append(bn(o,n,r),l(t)),!1)}const u=[],h=Object.assign(yn,{defaultVisitor:c,convertValue:l,isVisitable:gn});if(!hn.isObject(t))throw new TypeError("data must be an object");return function t(n,i){if(!hn.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+i.join("."));u.push(n),hn.forEach(n,(function(n,r){!0===(!(hn.isUndefined(n)||null===n)&&o.call(e,n,hn.isString(r)?r.trim():r,i,h))&&t(n,i?i.concat(r):[r])})),u.pop()}}(t),e};
vendor: 6,065 bytes, line 2
2function Sn(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function En(t,e){this._pairs=[],t&&wn(t,this,e)}const xn=En.prototype;xn.append=function(t,e){this._pairs.push([t,e])},xn.toString=function(t){const e=t?function(e){return t.call(this,e,Sn)}:Sn;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};const kn=En;function _n(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ln(t,e,n){if(!e)return t;const i=n&&n.encode||_n,o=n&&n.serialize;let r;if(r=o?o(e,n):hn.isURLSearchParams(e)?e.toString():new kn(e,n).toString(i),r){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+r}return t}const Tn=class{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){hn.forEach(this.handlers,(function(e){null!==e&&t(e)}))}},On={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Pn={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:kn,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Cn="undefined"!=typeof window&&"undefined"!=typeof document,An=(Mn="undefined"!=typeof navigator&&navigator.product,Cn&&["ReactNative","NativeScript","NS"].indexOf(Mn)<0);var Mn;const Rn="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,jn=Cn&&window.location.href||"http://localhost",Dn={...t,...Pn},Fn=function(t){function e(t,n,i,o){let r=t[o++];if("__proto__"===r)return!0;const s=Number.isFinite(+r),a=o>=t.length;return r=!r&&hn.isArray(i)?i.length:r,a?(hn.hasOwnProp(i,r)?i[r]=[i[r],n]:i[r]=n,!s):(i[r]&&hn.isObject(i[r])||(i[r]=[]),e(t,n,i[r],o)&&hn.isArray(i[r])&&(i[r]=function(t){const e={},n=Object.keys(t);let i;const o=n.length;let r;for(i=0;i<o;i++)r=n[i],e[r]=t[r];return e}(i[r])),!s)}if(hn.isFormData(t)&&hn.isFunction(t.entries)){const n={};return hn.forEachEntry(t,((t,i)=>{e(function(t){return hn.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),i,n,0)})),n}return null},zn={transitional:On,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const n=e.getContentType()||"",i=n.indexOf("application/json")>-1,o=hn.isObject(t);if(o&&hn.isHTMLForm(t)&&(t=new FormData(t)),hn.isFormData(t))return i?JSON.stringify(Fn(t)):t;if(hn.isArrayBuffer(t)||hn.isBuffer(t)||hn.isStream(t)||hn.isFile(t)||hn.isBlob(t)||hn.isReadableStream(t))return t;if(hn.isArrayBufferView(t))return t.buffer;if(hn.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let r;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return wn(t,new Dn.classes.URLSearchParams,Object.assign({visitor:function(t,e,n,i){return Dn.isNode&&hn.isBuffer(t)?(this.append(e,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((r=hn.isFileList(t))||n.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return wn(r?{"files[]":t}:t,e&&new e,this.formSerializer)}}return o||i?(e.setContentType("application/json",!1),function(t,e,n){if(hn.isString(t))try{return(0,JSON.parse)(t),hn.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||zn.transitional,n=e&&e.forcedJSONParsing,i="json"===this.responseType;if(hn.isResponse(t)||hn.isReadableStream(t))return t;if(t&&hn.isString(t)&&(n&&!this.responseType||i)){const n=!(e&&e.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(t){if(n){if("SyntaxError"===t.name)throw mn.from(t,mn.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Dn.classes.FormData,Blob:Dn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};hn.forEach(["delete","get","head","post","put","patch"],(t=>{zn.headers[t]={}}));const In=zn,Nn=hn.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),qn=Symbol("internals");function Bn(t){return t&&String(t).trim().toLowerCase()}function Hn(t){return!1===t||null==t?t:hn.isArray(t)?t.map(Hn):String(t)}function Un(t,e,n,i,o){return hn.isFunction(i)?i.call(this,e,n):(o&&(e=n),hn.isString(e)?hn.isString(i)?-1!==e.indexOf(i):hn.isRegExp(i)?i.test(e):void 0:void 0)}class $n{constructor(t){t&&this.set(t)}set(t,e,n){const i=this;function o(t,e,n){const o=Bn(e);if(!o)throw new Error("header name must be a non-empty string");const r=hn.findKey(i,o);(!r||void 0===i[r]||!0===n||void 0===n&&!1!==i[r])&&(i[r||e]=Hn(t))}const r=(t,e)=>hn.forEach(t,((t,n)=>o(t,n,e)));if(hn.isPlainObject(t)||t instanceof this.constructor)r(t,e);else if(hn.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim()))r((t=>{const e={};let n,i,o;return t&&t.split("\n").forEach((function(t){o=t.indexOf(":"),n=t.substring(0,o).trim().toLowerCase(),i=t.substring(o+1).trim(),!n||e[n]&&Nn[n]||("set-cookie"===n?e[n]?e[n].push(i):e[n]=[i]:e[n]=e[n]?e[n]+", "+i:i)})),e})(t),e);else if(hn.isHeaders(t))for(const[e,i]of t.entries())o(i,e,n);else null!=t&&o(e,t,n);return this}get(t,e){if(t=Bn(t)){const n=hn.findKey(this,t);if(n){const t=this[n];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),n=/([^\s,;
2=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(t);)e[i[1]]=i[2];return e}(t);if(hn.isFunction(e))return e.call(this,t,n);if(hn.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=Bn(t)){const n=hn.findKey(this,t);return!(!n||void 0===this[n]||e&&!Un(0,this[n],n,e))}return!1}delete(t,e){const n=this;let i=!1;function o(t){if(t=Bn(t)){const o=hn.findKey(n,t);!o||e&&!Un(0,n[o],o,e)||(delete n[o],i=!0)}}return hn.isArray(t)?t.forEach(o):o(t),i}clear(t){const e=Object.keys(this);let n=e.length,i=!1;for(;n--;){const o=e[n];t&&!Un(0,this[o],o,t,!0)||(delete this[o],i=!0)}return i}normalize(t){const e=this,n={};return hn.forEach(this,((i,o)=>{const r=hn.findKey(n,o);if(r)return e[r]=Hn(i),void delete e[o];const s=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,n)=>e.toUpperCase()+n))}(o):String(o).trim();s!==o&&delete e[o],e[s]=Hn(i),n[s]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return hn.forEach(this,((n,i)=>{null!=n&&!1!==n&&(e[i]=t&&hn.isArray(n)?n.join(", "):n)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,e])=>t+": "+e)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const n=new this(t);return e.forEach((t=>n.set(t))),n}static accessor(t){const e=(this[qn]=this[qn]={accessors:{}}).accessors,n=this.prototype;function i(t){const i=Bn(t);e[i]||(function(t,e){const n=hn.toCamelCase(" "+e);["get","set","has"].forEach((i=>{Object.defineProperty(t,i+n,{value:function(t,n,o){return this[i].call(this,e,t,n,o)},configurable:!0})}))}(n,t),e[i]=!0)}return hn.isArray(t)?t.forEach(i):i(t),this}}$n.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),hn.reduceDescriptors($n.prototype,(({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[n]=t}}})),hn.freezeMethods($n);const Wn=$n;function Xn(t,e){const n=this||In,i=e||n,o=Wn.from(i.headers);let r=i.data;return hn.forEach(t,(function(t){r=t.call(n,r,o.normalize(),e?e.status:void 0)})),o.normalize(),r}function Vn(t){return!(!t||!t.__CANCEL__)}function Yn(t,e,n){mn.call(this,null==t?"canceled":t,mn.ERR_CANCELED,e,n),this.name="CanceledError"}hn.inherits(Yn,mn,{__CANCEL__:!0});const Gn=Yn;function Zn(t,e,n){const i=n.config.validateStatus;n.status&&i&&!i(n.status)?e(new mn("Request failed with status code "+n.status,[mn.ERR_BAD_REQUEST,mn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}const Kn=(t,e,n=3)=>{let i=0;const o=function(t,e){t=t||10;const n=new Array(t),i=new Array(t);let o,r=0,s=0;return e=void 0!==e?e:1e3,function(a){const l=Date.now(),c=i[s];o||(o=l),n[r]=a,i[r]=l;let u=s,h=0;for(;u!==r;)h+=n[u++],u%=t;if(r=(r+1)%t,r===s&&(s=(s+1)%t),l-o<e)return;const d=c&&l-c;return d?Math.round(1e3*h/d):void 0}}(50,250);return function(t,e){let n=0;const i=1e3/e;let o=null;return function(){const e=!0===this,r=Date.now();if(e||r-n>i)return o&&(clearTimeout(o),o=null),n=r,t.apply(null,arguments);o||(o=setTimeout((()=>(o=null,n=Date.now(),t.apply(null,arguments))),i-(r-n)))}}((n=>{const r=n.loaded,s=n.lengthComputable?n.total:void 0,a=r-i,l=o(a);i=r;const c={loaded:r,total:s,progress:s?r/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&r<=s?(s-r)/l:void 0,event:n,lengthComputable:null!=s};c[e?"download":"upload"]=!0,t(c)}),n)},Jn=Dn.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let n;function i(n){let i=n;return t&&(e.setAttribute("href",i),i=e.href),e.setAttribute("href",i),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return n=i(window.location.href),function(t){const e=hn.isString(t)?i(t):t;return e.protocol===n.protocol&&e.host===n.host}}():function(){return!0},Qn=Dn.hasStandardBrowserEnv?{write(t,e,n,i,o,r){const s=[t+"="+encodeURIComponent(e)];hn.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),hn.isString(i)&&s.push("path="+i),hn.isString(o)&&s.push("domain="+o),!0===r&&s.push("secure"),document.cookie=s.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function ti(t,e){return t&&!function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}(e)?function(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}const ei=t=>t instanceof Wn?{...t}:t;function ni(t,e){e=e||{};const n={};function i(t,e,n){return hn.isPlainObject(t)&&hn.isPlainObject(e)?hn.merge.call({caseless:n}
vendor: 4,177 bytes, line 2
2,t,e):hn.isPlainObject(e)?hn.merge({},e):hn.isArray(e)?e.slice():e}function o(t,e,n){return hn.isUndefined(e)?hn.isUndefined(t)?void 0:i(void 0,t,n):i(t,e,n)}function r(t,e){if(!hn.isUndefined(e))return i(void 0,e)}function s(t,e){return hn.isUndefined(e)?hn.isUndefined(t)?void 0:i(void 0,t):i(void 0,e)}function a(n,o,r){return r in e?i(n,o):r in t?i(void 0,n):void 0}const l={url:r,method:r,data:r,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(t,e)=>o(ei(t),ei(e),!0)};return hn.forEach(Object.keys(Object.assign({},t,e)),(function(i){const r=l[i]||o,s=r(t[i],e[i],i);hn.isUndefined(s)&&r!==a||(n[i]=s)})),n}const ii=t=>{const e=ni({},t);let n,{data:i,withXSRFToken:o,xsrfHeaderName:r,xsrfCookieName:s,headers:a,auth:l}=e;if(e.headers=a=Wn.from(a),e.url=Ln(ti(e.baseURL,e.url),t.params,t.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),hn.isFormData(i))if(Dn.hasStandardBrowserEnv||Dn.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(n=a.getContentType())){const[t,...e]=n?n.split(";").map((t=>t.trim())).filter(Boolean):[];a.setContentType([t||"multipart/form-data",...e].join("; "))}if(Dn.hasStandardBrowserEnv&&(o&&hn.isFunction(o)&&(o=o(e)),o||!1!==o&&Jn(e.url))){const t=r&&s&&Qn.read(s);t&&a.set(r,t)}return e},oi="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,n){const i=ii(t);let o=i.data;const r=Wn.from(i.headers).normalize();let s,{responseType:a}=i;function l(){i.cancelToken&&i.cancelToken.unsubscribe(s),i.signal&&i.signal.removeEventListener("abort",s)}let c=new XMLHttpRequest;function u(){if(!c)return;const i=Wn.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders());Zn((function(t){e(t),l()}),(function(t){n(t),l()}),{data:a&&"text"!==a&&"json"!==a?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:i,config:t,request:c}),c=null}c.open(i.method.toUpperCase(),i.url,!0),c.timeout=i.timeout,"onloadend"in c?c.onloadend=u:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(u)},c.onabort=function(){c&&(n(new mn("Request aborted",mn.ECONNABORTED,i,c)),c=null)},c.onerror=function(){n(new mn("Network Error",mn.ERR_NETWORK,i,c)),c=null},c.ontimeout=function(){let t=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const e=i.transitional||On;i.timeoutErrorMessage&&(t=i.timeoutErrorMessage),n(new mn(t,e.clarifyTimeoutError?mn.ETIMEDOUT:mn.ECONNABORTED,i,c)),c=null},void 0===o&&r.setContentType(null),"setRequestHeader"in c&&hn.forEach(r.toJSON(),(function(t,e){c.setRequestHeader(e,t)})),hn.isUndefined(i.withCredentials)||(c.withCredentials=!!i.withCredentials),a&&"json"!==a&&(c.responseType=i.responseType),"function"==typeof i.onDownloadProgress&&c.addEventListener("progress",Kn(i.onDownloadProgress,!0)),"function"==typeof i.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",Kn(i.onUploadProgress)),(i.cancelToken||i.signal)&&(s=e=>{c&&(n(!e||e.type?new Gn(null,t,c):e),c.abort(),c=null)},i.cancelToken&&i.cancelToken.subscribe(s),i.signal&&(i.signal.aborted?s():i.signal.addEventListener("abort",s)));const h=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(i.url);h&&-1===Dn.protocols.indexOf(h)?n(new mn("Unsupported protocol "+h+":",mn.ERR_BAD_REQUEST,t)):c.send(o||null)}))},ri=(t,e)=>{let n,i=new AbortController;const o=function(t){if(!n){n=!0,s();const e=t instanceof Error?t:this.reason;i.abort(e instanceof mn?e:new Gn(e instanceof Error?e.message:e))}};let r=e&&setTimeout((()=>{o(new mn(`timeout ${e} of ms exceeded`,mn.ETIMEDOUT))}),e);const s=()=>{t&&(r&&clearTimeout(r),r=null,t.forEach((t=>{t&&(t.removeEventListener?t.removeEventListener("abort",o):t.unsubscribe(o))}
2)),t=null)};t.forEach((t=>t&&t.addEventListener&&t.addEventListener("abort",o)));const{signal:a}=i;return a.unsubscribe=s,[a,()=>{r&&clearTimeout(r),r=null}]},si=function*(t,e){let n=t.byteLength;if(!e||n<e)return void(yield t);let i,o=0;for(;o<n;)i=o+e,yield t.slice(o,i),o=i},ai=(t,e,n,i,o)=>{const r=async function*(t,e,n){for await(const i of t)yield*si(ArrayBuffer.isView(i)?i:await n(String(i)),e)}(t,e,o);let s=0;return new ReadableStream({type:"bytes",async pull(t){const{done:e,value:o}=await r.next();if(e)return t.close(),void i();let a=o.byteLength;n&&n(s+=a),t.enqueue(new Uint8Array(o))},cancel:t=>(i(t),r.return())},{highWaterMark:2})},li=(t,e)=>{const n=null!=t;return i=>setTimeout((()=>e({lengthComputable:n,total:t,loaded:i})))},ci="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,ui=ci&&"function"==typeof ReadableStream,hi=ci&&("function"==typeof TextEncoder?(di=new TextEncoder,t=>di.encode(t)):async t=>new Uint8Array(await new Response(t).arrayBuffer()));var di;const fi=ui&&(()=>{let t=!1;const e=new Request(Dn.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e})(),pi=ui&&!!(()=>{try{return hn.isReadableStream(new Response("").body)}catch(t){}})(),mi={stream:pi&&(t=>t.body)};var gi;ci&&(gi=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((t=>{!mi[t]&&(mi[t]=hn.isFunction(gi[t])?e=>e[t]():(e,n)=>{throw new mn(`Response type '${t}' is not supported`,mn.ERR_NOT_SUPPORT,n)})})));const vi={http:null,xhr:oi,fetch:ci&&(async t=>{let{url:e,method:n,data:i,signal:o,cancelToken:r,timeout:s,onDownloadProgress:a,onUploadProgress:l,responseType:c,headers:u,withCredentials:h="same-origin",fetchOptions:d}=ii(t);c=c?(c+"").toLowerCase():"text";let f,p,[m,g]=o||r||s?ri([o,r],s):[];const v=()=>{!f&&setTimeout((()=>{m&&m.unsubscribe()})),f=!0};let b;try{if(l&&fi&&"get"!==n&&"head"!==n&&0!==(b=await(async(t,e)=>{const n=hn.toFiniteNumber(t.getContentLength());return null==n?(async t=>null==t?0:hn.isBlob(t)?t.size:hn.isSpecCompliantForm(t)?(await new Request(t).arrayBuffer()).byteLength:hn.isArrayBufferView(t)?t.byteLength:(hn.isURLSearchParams(t)&&(t+=""),hn.isString(t)?(await hi(t)).byteLength:void 0))(e):n})(u,i))){let t,n=new Request(e,{method:"POST",body:i,duplex:"half"});hn.isFormData(i)&&(t=n.headers.get("content-type"))&&u.setContentType(t),n.body&&(i=ai(n.body,65536,li(b,Kn(l)),null,hi))}hn.isString(h)||(h=h?"cors":"omit"),p=new Request(e,{...d,signal:m,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:i,duplex:"half",withCredentials:h});let o=await fetch(p);const r=pi&&("stream"===c||"response"===c);if(pi&&(a||r)){const t={};["status","statusText","headers"].forEach((e=>{t[e]=o[e]}));const e=hn.toFiniteNumber(o.headers.get("content-length"));o=new Response(ai(o.body,65536,a&&li(e,Kn(a,!0)),r&&v,hi),t)}c=c||"text";let s=await mi[hn.findKey(mi,c)||"text"](o,t);return!r&&v(),g&&g(),await new Promise(((e,n)=>{Zn(e,n,{data:s,headers:Wn.from(o.headers),status:o.status,statusText:o.statusText,config:t,request:p})}))}catch(e){if(v(),e&&"TypeError"===e.name&&/fetch/i.test(e.message))throw Object.assign(new mn("Network Error",mn.ERR_NETWORK,t,p),{cause:e.cause||e});throw mn.from(e,e&&e.code,t,p)}})};hn.forEach(vi,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}}));const bi=t=>`- ${t}`,yi=t=>hn.isFunction(t)||null===t||!1===t,wi=t=>{t=hn.isArray(t)?t:[t];const{length:e}=t;let n,i;const o={};for(let r=0;r<e;r++){let e;if(n=t[r],i=n,!yi(n)&&(i=vi[(e=String(n)).toLowerCase()],void 0===i))throw new mn(`Unknown adapter '${e}'`);if(i)break;o[e||"#"+r]=i}if(!i){const t=Object.entries(o).map((([t,e])=>`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build")));let n=e?t.length>1?"since :\n"+t.map(bi).join("\n"):" "+bi(t[0]):"as no adapter specified";throw new mn("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return i};function Si(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Gn(null,t)}function Ei(t){return Si(t),t.headers=Wn.from(t.headers),t.data=Xn.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),wi(t.adapter||In.adapter)(t).then((function(e){return Si(t),e.data=Xn.call(t,t.transformResponse,e),e.headers=Wn.from(e.headers),e}),(function(e){return Vn(e)||(Si(t),e&&e.response&&(e.response.data=Xn.call(t,t.transformResponse,e.response),e.response.headers=Wn.from(e.response.headers))),Promise.reject(e)}))}const xi={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{xi[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));const ki={};xi.transitional=function(t,e,n){function i(t,e){return"[Axios v1.7.2] Transitional option '"+t+"'"+e+(n?". "+n:"")}return(n,o,r)=>{if(!1===t)throw new mn(i(o," has been removed"+(e?" in "+e:"")),mn.ERR_DEPRECATED);return e&&!ki[o]&&(ki[o]=!0,console.warn(i(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,o,r)}};const _i={assertOptions:function(t,e,n){if("object"!=typeof t)throw new mn("options must be an object",mn.ERR_BAD_OPTION_VALUE);const i=Object.keys(t);let o=i.length;for(;o-- >0;){const r=i[o],s=e[r];if(s){const e=t[r],n=void 0===e||s(e,r,t);if(!0!==n)throw new mn("option "+r+" must be "+n,mn.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new mn("Unknown option "+r,mn.ERR_BAD_OPTION)}},validators:xi},Li=_i.validators;class Ti{constructor(t){this.defaults=t,this.interceptors={request:new Tn,response:new Tn}}async request(t,e){try{return await this._request(t,e)}catch(t){if(t instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;
vendor: 2,988 bytes, line 2
2const n=e.stack?e.stack.replace(/^.+\n/,""):"";try{t.stack?n&&!String(t.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+n):t.stack=n}catch(t){}}throw t}}_request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=ni(this.defaults,e);const{transitional:n,paramsSerializer:i,headers:o}=e;void 0!==n&&_i.assertOptions(n,{silentJSONParsing:Li.transitional(Li.boolean),forcedJSONParsing:Li.transitional(Li.boolean),clarifyTimeoutError:Li.transitional(Li.boolean)},!1),null!=i&&(hn.isFunction(i)?e.paramsSerializer={serialize:i}:_i.assertOptions(i,{encode:Li.function,serialize:Li.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase();let r=o&&hn.merge(o.common,o[e.method]);o&&hn.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete o[t]})),e.headers=Wn.concat(r,o);const s=[];let a=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(a=a&&t.synchronous,s.unshift(t.fulfilled,t.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(t){l.push(t.fulfilled,t.rejected)}));let u,h=0;if(!a){const t=[Ei.bind(this),void 0];for(t.unshift.apply(t,s),t.push.apply(t,l),u=t.length,c=Promise.resolve(e);h<u;)c=c.then(t[h++],t[h++]);return c}u=s.length;let d=e;for(h=0;h<u;){const t=s[h++],e=s[h++];try{d=t(d)}catch(t){e.call(this,t);break}}try{c=Ei.call(this,d)}catch(t){return Promise.reject(t)}for(h=0,u=l.length;h<u;)c=c.then(l[h++],l[h++]);return c}getUri(t){return Ln(ti((t=ni(this.defaults,t)).baseURL,t.url),t.params,t.paramsSerializer)}}hn.forEach(["delete","get","head","options"],(function(t){Ti.prototype[t]=function(e,n){return this.request(ni(n||{},{method:t,url:e,data:(n||{}).data}))}})),hn.forEach(["post","put","patch"],(function(t){function e(e){return function(n,i,o){return this.request(ni(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}Ti.prototype[t]=e(),Ti.prototype[t+"Form"]=e(!0)}));const Oi=Ti;class Pi{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const n=this;this.promise.then((t=>{if(!n._listeners)return;let e=n._listeners.length;for(;e-- >0;)n._listeners[e](t);n._listeners=null})),this.promise.then=t=>{let e;const i=new Promise((t=>{n.subscribe(t),e=t})).then(t);return i.cancel=function(){n.unsubscribe(e)},i},t((function(t,i,o){n.reason||(n.reason=new Gn(t,i,o),e(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}static source(){let t;const e=new Pi((function(e){t=e}));return{token:e,cancel:t}}}const Ci=Pi,Ai={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
vendor: 4,246 bytes, line 2
2alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ai).forEach((([t,e])=>{Ai[e]=t}));const Mi=Ai,Ri=function t(e){const n=new Oi(e),i=Le(Oi.prototype.request,n);return hn.extend(i,Oi.prototype,n,{allOwnKeys:!0}),hn.extend(i,n,null,{allOwnKeys:!0}),i.create=function(n){return t(ni(e,n))},i}(In);Ri.Axios=Oi,Ri.CanceledError=Gn,Ri.CancelToken=Ci,Ri.isCancel=Vn,Ri.VERSION="1.7.2",Ri.toFormData=wn,Ri.AxiosError=mn,Ri.Cancel=Ri.CanceledError,Ri.all=function(t){return Promise.all(t)},Ri.spread=function(t){return function(e){return t.apply(null,e)}},Ri.isAxiosError=function(t){return hn.isObject(t)&&!0===t.isAxiosError},Ri.mergeConfig=ni,Ri.AxiosHeaders=Wn,Ri.formToJSON=t=>Fn(hn.isHTMLForm(t)?new FormData(t):t),Ri.getAdapter=wi,Ri.HttpStatusCode=Mi,Ri.default=Ri;const ji=Ri;function Di(t){return Di="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Di(t)}function Fi(){Fi=function(){return e};var t,e={},n=Object.prototype,i=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},r="function"==typeof Symbol?Symbol:{},s=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",l=r.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function u(t,e,n,i){var r=e&&e.prototype instanceof v?e:v,s=Object.create(r.prototype),a=new C(i||[]);return o(s,"_invoke",{value:L(t,n,a)}),s}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var d="suspendedStart",f="suspendedYield",p="executing",m="completed",g={};function v(){}function b(){}function y(){}var w={};c(w,s,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(A([])));E&&E!==n&&i.call(E,s)&&(w=E);var x=y.prototype=v.prototype=Object.create(w);function k(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){function n(o,r,s,a){var l=h(t[o],t,r);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==Di(u)&&i.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,s,a)}),(function(t){n("throw",t,s,a)})):e.resolve(u).then((function(t){c.value=t,s(c)}),(function(t){return n("throw",t,s,a)}))}a(l.arg)}var r;o(this,"_invoke",{value:function(t,i){function o(){return new e((function(e,o){n(t,i,e,o)}))}return r=r?r.then(o,o):o()}})}function L(e,n,i){var o=d;return function(r,s){if(o===p)throw new Error("Generator is already running");if(o===m){if("throw"===r)throw s;return{value:t,done:!0}}for(i.method=r,i.arg=s;;){var a=i.delegate;if(a){var l=T(a,i);if(l){if(l===g)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(o===d)throw o=m,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);o=p;var c=h(e,n,i);if("normal"===c.type){if(o=i.done?m:f,c.arg===g)continue;return{value:c.arg,done:i.done}}"throw"===c.type&&(o=m,i.method="throw",i.arg=c.arg)}}}function T(e,n){var i=n.method,o=e.iterator[i];if(o===t)return n.delegate=null,"throw"===i&&e.iterator.return&&
vendor: 5,516 bytes, line 2
2(n.method="return",n.arg=t,T(e,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),g;var r=h(o,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var s=r.arg;return s?s.done?(n[e.resultName]=s.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):s:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function A(e){if(e||""===e){var n=e[s];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,r=function n(){for(;++o<e.length;)if(i.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return r.next=r}}throw new TypeError(Di(e)+" is not iterable")}return b.prototype=y,o(x,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:b,configurable:!0}),b.displayName=c(y,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,c(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},k(_.prototype),c(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,n,i,o,r){void 0===r&&(r=Promise);var s=new _(u(t,n,i,o),r);return e.isGeneratorFunction(n)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},k(x),c(x,l,"Generator"),c(x,s,(function(){return this})),c(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var i in e)n.push(i);return n.reverse(),function t(){for(;n.length;){var i=n.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},e.values=A,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(i,o){return a.type="throw",a.arg=e,n.next=i,o&&(n.method="next",n.arg=t),!!o}for(var r=this.tryEntries.length-1;r>=0;--r){var s=this.tryEntries[r],a=s.completion;if("root"===s.tryLoc)return o("end");if(s.tryLoc<=this.prev){var l=i.call(s,"catchLoc"),c=i.call(s,"finallyLoc");if(l&&c){if(this.prev<s.catchLoc)return o(s.catchLoc,!0);if(this.prev<s.finallyLoc)return o(s.finallyLoc)}else if(l){if(this.prev<s.catchLoc)return o(s.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return o(s.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&i.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var r=o;break}}r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null);var s=r?r.completion:{};return s.type=t,s.arg=e,r?(this.method="next",this.next=r.finallyLoc,g):this.complete(s)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var o=i.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:A(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),g}},e}function zi(t,e,n,i,o,r,s){try{var a=t[r](s),l=a.value}catch(t){return void n(t)}a.done?e(l):Promise.resolve(l).then(i,o)}var Ii=document.querySelector('form[data-type="comments-form"]'),Ni=document.querySelector(".sk-comments__success"),qi=document.querySelector(".sk-comments__form-error-message");function Bi(){var t;return t=Fi().mark((function t(e){var n;return Fi().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,ji({method:"post",url:ajaxVars.ajaxUrl,data:e,headers:{"Content-Type":"application/x-www-form-urlencoded"}});case 3:return n=t.sent,t.abrupt("return",n);case 7:throw t.prev=7,t.t0=t.catch(0),new Error(t.t0.response?t.t0.response.data:t.t0.message);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})),Bi=function(){var e=this,n=arguments;return new Promise((function(i,o){var r=t.apply(e,n);function s(t){zi(r,i,o,s,a,"next",t)}function a(t){zi(r,i,o,s,a,"throw",t)}s(void 0)}))},Bi.apply(this,arguments)}Ii&&Ii.addEventListener("submit",(function(t){t.preventDefault();var e=t.target.dataset.post,n=new FormData(Ii);n.append("action","comment_action"),n.append("id",e),function(t){return Bi.apply(this,arguments)}(n).then((function(t){t.data&&t.data.success&&(Ii.reset(),Ii.style.display="none",
2Ni.style.display="flex")})).catch((function(t){!function(t){console.log("Error: ".concat(t.message)),qi.style.display="block"}(t)}))}));var Hi=document.querySelector(".sk-comments__form-button");function Ui(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,o,r,s,a=[],l=!0,c=!1;try{if(r=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=r.call(n)).done)&&(a.push(i.value),a.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return $i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$i(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Wi(t){return Wi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wi(t)}function Xi(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Vi(i.key),i)}}function Vi(t){var e=function(t,e){if("object"!=Wi(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!=Wi(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Wi(e)?e:String(e)}Hi&&Hi.addEventListener("click",(function(){Ii.style.display="grid",Ni.style.display="none",qi.style.display="none"})),n(936),n(423),n(677),n(736),n(195);var Yi=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.Classes={active:"sk-email-popup--active",input:{wrapp:"sk-email-popup__input",error:"sk-email-popup__input--error",success:"sk-email-popup__input--success"},checkbox:{wrapp:"sk-email-popup__checkbox",error:"sk-email-popup__checkbox--error"}},this.Elements={parent:e,close:e.querySelector(".sk-email-popup__close"),form:e.querySelector(".sk-email-popup__form"),input:{wrapp:e.querySelector(".".concat(this.Classes.input.wrapp)),field:e.querySelector(".".concat(this.Classes.input.wrapp," input")),text:e.querySelector(".".concat(this.Classes.input.wrapp," p"))},checkbox:{wrapp:e.querySelector(".".concat(this.Classes.checkbox.wrapp)),field:e.querySelector(".".concat(this.Classes.checkbox.wrapp," input"))},submit:e.querySelector(".".concat(this.Classes.input.wrapp," button"))},this.Settings={cookieKey:"subscribe-modal-hidden",cookieExpired:this.Elements.parent.getAttribute("data-cookie-expired")},this.init()}var e,n;return e=t,n=[{key:"init",value:function(){var t=this;this.handlers(),function(t){for(var e=document.cookie.split("; "),n=0;n<e.length;n++){var i=Ui(e[n].split("="),2),o=i[0],r=i[1];if(o===t)return decodeURIComponent(r)}return null}(this.Settings.cookieKey)||setTimeout((function(){return t.toggleModal(!0)}),1e4)}},{key:"handlers",value:function(){var t,e,n=this;null===(t=this.Elements.close)||void 0===t||t.addEventListener("click",(function(){return n.toggleModal(!1)})),null===(e=this.Elements.form)||void 0===e||e.addEventListener("submit",(function(t){return n.formSubmit(t)}))}},{key:"toggleModal",value:function(t){this.Elements.parent.classList.toggle(this.Classes.active,t)}},{key:"formSubmit",value:function(t){t.preventDefault();var e,n=this.Classes.input,i=n.error,o=n.success,r=this.Elements.input,s=this.Settings,a=s.cookieKey,l=s.cookieExpired;this.checkFields()&&(this.checkSendxObj()?_scq.push(["identify",{email:r.field.value,tags:["Subscriber"],success:function(){var t;null===(t=r.wrapp)||void 0===t||t.classList.add(o),r.text.innerHTML="You are successfully subscribed!",function(t,e,n){var i="";if(n){var o=new Date;o.setTime(o.getTime()+60*n*1e3),i="; expires="+o.toUTCString()}document.cookie="".concat(t,"=").concat(encodeURIComponent(!0)).concat(i,"; path=/")}
2(a,0,l)},failure:function(){var t;null===(t=r.wrapp)||void 0===t||t.classList.add(i),r.text.innerHTML="Failed, contact with administrator."}}]):(null===(e=r.wrapp)||void 0===e||e.classList.add(i),r.text.innerHTML="Sendx snippet not added or connection error occurred."))}},{key:"checkFields",value:function(){var t,e=[],n=this.Classes.input,i=n.error,o=n.success,r=this.Classes.checkbox.error,s=this.Elements.input,a=s.field,l=s.wrapp,c=s.text,u=this.Elements.checkbox,h=u.field,d=u.wrapp;return null==l||l.classList.remove(i),null==l||l.classList.remove(o),null==d||d.classList.remove(r),c.innerHTML="",t=a.value,/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)||(null==l||l.classList.add(i),c.innerHTML="The value is incorrect",e.push(!1)),h.checked||(null==d||d.classList.add(r),e.push(!1)),!e.includes(!1)}},{key:"checkSendxObj",value:function(){return!["_scq","_scs"].some((function(t){return void 0===window[t]}))}}],n&&Xi(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Gi(t){return Gi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gi(t)}function Zi(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Ki(i.key),i)}}function Ki(t){var e=function(t,e){if("object"!=Gi(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!=Gi(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Gi(e)?e:String(e)}Array.from(document.querySelectorAll(".sk-email-popup")).forEach((function(t){return new Yi(t)}));var Ji=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.Elements={parent:e,gallery:e.querySelector(".sk-gallery-block__slider-inner")},this.init()}var e,n;return e=t,(n=[{key:"init",value:function(){this.Elements.gallery&&_e.bind(this.Elements.gallery,"[data-fancybox]",{})}}])&&Zi(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Qi(t){return Qi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qi(t)}function to(){to=function(){return e};var t,e={},n=Object.prototype,i=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},r="function"==typeof Symbol?Symbol:{},s=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",l=r.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function u(t,e,n,i){var r=e&&e.prototype instanceof v?e:v,s=Object.create(r.prototype),a=new C(i||[]);return o(s,"_invoke",{value:L(t,n,a)}),s}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var d="suspendedStart",f="suspendedYield",p="executing",m="completed",g={};function v(){}function b(){}function y(){}var w={};c(w,s,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(A([])));E&&E!==n&&i.call(E,s)&&(w=E);var x=y.prototype=v.prototype=Object.create(w);function k(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){function n(o,r,s,a){var l=h(t[o],t,r);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==Qi(u)&&i.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,s,a)}),(function(t){n("throw",t,s,a)})):e.resolve(u).then((function(t){c.value=t,s(c)}),(function(t){return n("throw",t,s,a)}))}a(l.arg)}var r;o(this,"_invoke",{value:function(t,i){function o(){return new e((function(e,o){n(t,i,e,o)}))}return r=r?r.then(o,o):o()}})}function L(e,n,i){var o=d;return function(r,s){if(o===p)throw new Error("Generator is already running");if(o===m){if("throw"===r)throw s;return{value:t,done:!0}}for(i.method=r,i.arg=s;;){var a=i.delegate;if(a){var l=T(a,i);if(l){if(l===g)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(o===d)throw o=m,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);o=p;var c=h(e,n,i);if("normal"===c.type){if(o=i.done?m:f,c.arg===g)continue;return{value:c.arg,done:i.done}}"throw"===c.type&&(o=m,i.method="throw",i.arg=c.arg)}}}function T(e,n){var i=n.method,o=e.iterator[i];if(o===t)return n.delegate=null,"throw"===i&&e.iterator.return&&
vendor: 4,910 bytes, line 2
2(n.method="return",n.arg=t,T(e,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),g;var r=h(o,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var s=r.arg;return s?s.done?(n[e.resultName]=s.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):s:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function A(e){if(e||""===e){var n=e[s];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,r=function n(){for(;++o<e.length;)if(i.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return r.next=r}}throw new TypeError(Qi(e)+" is not iterable")}return b.prototype=y,o(x,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:b,configurable:!0}),b.displayName=c(y,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,c(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},k(_.prototype),c(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,n,i,o,r){void 0===r&&(r=Promise);var s=new _(u(t,n,i,o),r);return e.isGeneratorFunction(n)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},k(x),c(x,l,"Generator"),c(x,s,(function(){return this})),c(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var i in e)n.push(i);return n.reverse(),function t(){for(;n.length;){var i=n.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},e.values=A,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(i,o){return a.type="throw",a.arg=e,n.next=i,o&&(n.method="next",n.arg=t),!!o}for(var r=this.tryEntries.length-1;r>=0;--r){var s=this.tryEntries[r],a=s.completion;if("root"===s.tryLoc)return o("end");if(s.tryLoc<=this.prev){var l=i.call(s,"catchLoc"),c=i.call(s,"finallyLoc");if(l&&c){if(this.prev<s.catchLoc)return o(s.catchLoc,!0);if(this.prev<s.finallyLoc)return o(s.finallyLoc)}else if(l){if(this.prev<s.catchLoc)return o(s.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return o(s.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&i.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var r=o;break}}r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null);var s=r?r.completion:{};return s.type=t,s.arg=e,r?(this.method="next",this.next=r.finallyLoc,g):this.complete(s)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var o=i.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:A(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),g}},e}function eo(t,e,n,i,o,r,s){try{var a=t[r](s),l=a.value}catch(t){return void n(t)}a.done?e(l):Promise.resolve(l).then(i,o)}function no(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,io(i.key),i)}}function io(t){var e=function(t,e){if("object"!=Qi(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!=Qi(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Qi(e)?e:String(e)}Array.from(document.querySelectorAll(".sk-gallery-block")).forEac
2h((function(t){return new Ji(t)})),n(735);var oo=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{url,title,text};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.button=e,this.textStatic=e.textContent||"Share",this.textState="",this.data={url:n.url||"",title:n.title||"",text:n.text||""},this.init()}var e,n,i,o;return e=t,n=[{key:"init",value:function(){this.button.addEventListener("click",this.shareAction.bind(this))}},{key:"resetButtonText",value:function(){var t=this;setTimeout((function(){t.button.textContent=t.textStatic}),2500)}},{key:"shareAction",value:(i=to().mark((function t(){return to().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!navigator.share){t.next=7;break}return t.next=4,navigator.share(this.data);case 4:this.textState="Shared",t.next=10;break;case 7:return t.next=9,navigator.clipboard.writeText(this.data.url);case 9:this.textState="Copied";case 10:t.next=15;break;case 12:t.prev=12,t.t0=t.catch(0),this.textState="Cancelled";case 15:this.button.textContent=this.textState,this.resetButtonText();case 17:case"end":return t.stop()}}),t,this,[[0,12]])})),o=function(){var t=this,e=arguments;return new Promise((function(n,o){var r=i.apply(t,e);function s(t){eo(r,n,o,s,a,"next",t)}function a(t){eo(r,n,o,s,a,"throw",t)}s(void 0)}))},function(){return o.apply(this,arguments)})}],n&&no(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function ro(t){return ro="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ro(t)}function so(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,ao(i.key),i)}}function ao(t){var e=function(t,e){if("object"!=ro(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!=ro(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ro(e)?e:String(e)}new(function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e&&(this.page=e,this.share())}var e,n;return e=t,(n=[{key:"share",value:function(){var t=this.page.querySelector(".sk-page-single__share");if(t){var e=t.querySelector(".sk-page-single__share-item--share");new oo(e,{url:e.getAttribute("data-share-url"),title:e.getAttribute("data-share-title"),text:e.getAttribute("data-share-text")})}}}])&&so(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}())(document.querySelector(".sk-page-single"))})()})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.