PageSourceSearch

https://www.sergiobonelli.it/wp-content/themes/bonelli/assets/js/build/main.min.c4916d9dccad8a21ead6.js

js sergiobonelli.it collected 2026-10-02 02:36:58 UTC 252,678 bytes, 2 lines download raw bytes

1/*! For license information please see main.min.c4916d9dccad8a21ead6.js.LICENSE.txt */
2(()=>{var e={109:()=>{document.addEventListener("DOMContentLoaded",function(){const e=document.getElementById("autori-search"),t=document.getElementById("search-btn"),n=document.querySelectorAll(".autori-letter-section");function i(e){const t=e.toLowerCase().trim();let i=!1;n.forEach(e=>{e.querySelector(".letter-heading");const n=e.querySelector(".autori-grid").querySelectorAll(".autore-item");let s=!1;n.forEach(e=>{e.querySelector(".autore-name").textContent.toLowerCase().includes(t)?(e.style.display="block",s=!0,i=!0):e.style.display=""===t?"block":"none"}),e.style.display=""===t||s?"block":"none"}),function(e){let t=document.getElementById("no-results-message");e&&!t?(t=document.createElement("div"),t.id="no-results-message",t.className="no-results-message",t.innerHTML="<p>Nessun autore trovato per la ricerca effettuata.</p>",document.querySelector(".autori-list-by-letter").appendChild(t)):!e&&t&&t.remove()}(""!==t&&!i)}e&&t&&(e.addEventListener("input",function(){i(this.value)}),t.addEventListener("click",function(){i(e.value)}),e.addEventListener("keypress",function(e){"Enter"===e.key&&(e.preventDefault(),i(this.value))}),e.addEventListener("input",function(){const e=this.value;i(e),function(e){const t=e.toLowerCase().trim();
2""!==t?n.forEach(e=>{e.querySelectorAll(".autore-name").forEach(e=>{const n=e.textContent,i=new RegExp(`(${t})`,"gi"),s=n.replace(i,'<span class="highlight">$1</span>');s!==n&&(e.innerHTML=s)})}):document.querySelectorAll(".highlight").forEach(e=>{e.outerHTML=e.innerHTML})}(e)}))})},134:()=>{document.addEventListener("DOMContentLoaded",function(){function e(){const e=document.querySelector(".related-products-wrapper .slider-prodotti-swiper"),t=document.querySelector(".related-products-wrapper .slider-prodotti-next"),n=document.querySelector(".related-products-wrapper .slider-prodotti-prev");if(e&&!e.swiper){var i,s,o,a=new Swiper(e,{slidesPerView:4,spaceBetween:20,loop:!1,freeMode:!1,watchSlidesProgress:!0,breakpoints:{320:{slidesPerView:1.3,spaceBetween:15},768:{slidesPerView:2.2,spaceBetween:15},1024:{slidesPerView:4,spaceBetween:20},1200:{slidesPerView:4,spaceBetween:20}},speed:600,on:{init:function(){l(this,t,n),r(this)},slideChange:function(){l(this,t,n)},resize:function(){r(this)}}});l(a,t,n),i=a,o=n,(s=t)&&s.addEventListener("click",function(e){e.preventDefault(),i.slideNext()}),o&&o.addEventListener("click",function(e){e.preventDefault(),i.slidePrev()})}function r(e){for(var t=0,n=e.slides,i=0;i<n.length;i++)n[i].style.height="auto";for(i=0;i<n.length;i++){var s=n[i].offsetHeight;s>t&&(t=s)}for(i=0;i<n.length;i++)n[i].style.height=t+"px"}function l(e,t,n){e.isBeginning?n&&(n.style.display="none"):n&&(n.style.display="flex"),e.isEnd?t&&(t.style.display="none"):t&&(t.style.display="flex")}}document.querySelector(".related-products-wrapper .slider-prodotti-swiper")&&("undefined"==typeof Swiper?setTimeout(function(){e()},100):e())})},421:()=>{jQuery(document).ready(function(e){function t(e){var t=Array.prototype.slice.call(arguments,1);if("function"==typeof window.bonelliI18n){var n=window.bonelliI18n.apply(window,[e].concat(t));if(n)return n}return""}function n(e){var n=parseInt(e,10)||0,i=1===n?t("subtotal_item_singular")||"articolo":t("subtotal_item_plural")||"articoli";return(t("subtotal_label")||"Subtotale")+" ("+n+" "+i+")"}function i(e){var n=parseInt(e,10)||0;return n+" "+(1===n?t("subtotal_item_singular")||"articolo":t("subtotal_item_plural")||"articoli")}function s(){try{const i=function(e){try{return document.getElementById(e)}catch(e){return null}},o=function(e){try{return document.querySelectorAll(e)}catch(e){return[]}},a=i("burger-menu"),r=i("mobile-offcanvas"),l=i("mobile-overlay"),c=document.querySelector?document.querySelector(".mobile-level-1"):null;if(!r||!l)return void setTimeout(function(){const e=i("mobile-offcanvas"),t=i("mobile-overlay");e&&t?s():console.warn("Menu mobile: elementi non trovati nel DOM")},100);try{if(r&&r.dataset&&"true"===r.dataset.initialized)return;r&&r.dataset&&(r.dataset.initialized="true")}catch(u){try{if(r&&"true"===r.getAttribute("data-initialized"))return;r&&r.setAttribute&&r.setAttribute("data-initialized","true")}catch(p){return}}if(a){const m=function(e){if(e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),r&&r.classList&&r.classList.add)try{r.classList.add("active")}catch(e){r.className&&(r.className+=" active")}l&&l.classList.add("active"),a.classList&&a.classList.add("hidden"),document.body&&(document.body.style.overflow="hidden"),a&&(a.setAttribute("aria-expanded","true"),a.setAttribute("aria-label",a.getAttribute("data-label-close")||t("close_menu"))),r&&r.setAttribute("aria-hidden","false"),c&&c.classList&&(c.classList.add("active"),c.classList.remove("sliding-out"));const n=o(".mobile-level-2");n&&n.length>0&&n.forEach(e=>{e&&e.classList&&(e.classList.remove("active"),e.classList.remove("sliding-out"))});const i=o(".mobile-level-3");i&&i.length>0&&i.forEach(e=>{e&&e.classList&&(e.classList.remove("active"),e.classList.remove("sliding-out"))});const s=o(".mobile-level-4");s&&s.length>0&&s.forEach(e=>{e&&e.classList&&e.classList.remove("active")})};let h=!1;const f=function(e){if(e&&e.preventDefault&&e.preventDefault(),e&&e.stopPropagation&&e.stopPropagation(),h)return!1;h=!0;try{m(e)}catch(e){console.error("Errore apertura menu mobile:",e)}finally{setTimeout(function(){h=!1},300)}return!1};a.addEventListener("click",f,{capture:!0});let g=0,v=0,b=0;a.addEventListener("touchstart",function(e){e.touches&&1===e.touches.length&&(g=Date.now(),v=e.touches[0].clientX,b=e.touches[0].clientY)},{passive:!0}),a.addEventListener("touchend",function(e){if(e&&e.preventDefault&&e.preventDefault(),e&&e.stopPropagation&&e.stopPropagation(),h)return!1;if(e.changedTouches&&1===e.changedTouches.length){const t=Date.now()-g,n=e.changedTouches[0].clientX,i=e.changedTouches[0].clientY,s=Math.sqrt(Math.pow(n-v,2)+Math.pow(i-b,2));if(t<300&&s<10)try{const t=e.changedTouches[0],n=document.elementFromPoint?document.elementFromPoint(t.clientX,t.clientY):null;if(n===a||a.contains&&a.contains(n))return f(e),!1}catch(t){return f(e),!1}}return!1},{passive:!1,capture:!0})}function e(){if(r&&r.classList&&r.classList.remove)try{r.classList.remove("active")}catch(e){r.className&&(r.className=r.className.replace(/\s*active\s*/g," ").trim())}l&&l.classList.remove("active"),a&&(a.classList.remove("hidden"),a.setAttribute("aria-expanded","fal
2se"),a.setAttribute("aria-label",a.getAttribute("data-label-open")||t("open_menu"))),r&&r.setAttribute("aria-hidden","true"),document.body&&(document.body.style.overflow=""),setTimeout(()=>{c&&(c.classList.add("active"),c.classList.remove("sliding-out"));const e=o(".mobile-level-2");e&&e.length>0&&e.forEach(e=>{e&&e.classList&&(e.classList.remove("active"),e.classList.remove("sliding-out"))});const t=o(".mobile-level-3");t&&t.length>0&&t.forEach(e=>{e&&e.classList&&(e.classList.remove("active"),e.classList.remove("sliding-out"))}),level4Containers&&level4Containers.length>0&&level4Containers.forEach(e=>{e&&e.classList&&e.classList.remove("active")})},300)}const d=i("close-menu");if(d){d.tagName&&"button"===d.tagName.toLowerCase()&&(d.type="button"),d.classList?d.classList.add("needsclick"):d.className&&(d.className+=" needsclick");const y=function(t){t&&(t.preventDefault&&t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation());try{e()}catch(e){console.error("Errore chiusura menu:",e)}return!1};window.mobileMenuCloseHandler=function(t){t&&(t.preventDefault&&t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation());try{e()}catch(e){console.error("Errore chiusura menu:",e)}return!1},d.addEventListener("click",y,{capture:!0,passive:!1}),d.addEventListener("touchstart",function(e){e&&e.preventDefault&&e.preventDefault(),e&&e.stopPropagation&&e.stopPropagation(),e&&e.stopImmediatePropagation&&e.stopImmediatePropagation()},{passive:!1,capture:!0}),d.addEventListener("touchend",function(e){return e&&e.preventDefault&&e.preventDefault(),e&&e.stopPropagation&&e.stopPropagation(),e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),setTimeout(function(){y(e)},10),!1},{passive:!1,capture:!0}),d.setAttribute("type","button"),d.removeAttribute("form"),d.removeAttribute("formaction"),d.style&&(d.style.touchAction="manipulation")}if(document.querySelectorAll(".mobile-offcanvas .close-menu").forEach(t=>{if(t&&t.addEventListener){if("close-menu"===t.id)return;t.tagName&&"button"===t.tagName.toLowerCase()&&(t.type="button"),t.classList?t.classList.add("needsclick"):t.className&&(t.className+=" needsclick"),t.style&&(t.style.touchAction="manipulation");const n=function(t){t&&(t.preventDefault&&t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),!1!==t.cancelable&&t.preventDefault());try{e()}catch(e){console.error("Errore chiusura menu:",e)}return!1};t.addEventListener("click",n,{capture:!0,passive:!1}),t.addEventListener("touchstart",function(e){e&&e.preventDefault&&e.preventDefault(),e&&e.stopPropagation&&e.stopPropagation(),e&&e.stopImmediatePropagation&&e.stopImmediatePropagation()},{passive:!1,capture:!0}),t.addEventListener("touchend",function(e){return e&&e.preventDefault&&e.preventDefault(),e&&e.stopPropagation&&e.stopPropagation(),e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),setTimeout(function(){n(e)},10),!1},{passive:!1,capture:!0}),t.setAttribute("type","button"),t.removeAttribute("form"),t.removeAttribute("formaction")}}),l){let w=!1;const _=function(t){if(t&&t.preventDefault&&t.preventDefault(),t&&t.stopPropagation&&t.stopPropagation(),t&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),w)return!1;w=!0;try{e()}catch(e){console.error("Errore chiusura menu mobile:",e)}finally{setTimeout(function(){w=!1},300)}return!1};l.addEventListener("click",_,{capture:!0});let E=0;l.addEventListener("touchstart",function(e){e.touches&&1===e.touches.length&&(E=Date.now())},{passive:!0}),l.addEventListener("touchend",function(e){return e&&e.preventDefault&&e.preventDefault(),e&&e.stopPropagation&&e.stopPropagation(),!w&&(!!(e.changedTouches&&1===e.changedTouches.length&&Date.now()-E<300)&&(_(e),!1))},{passive:!1})}function n(){try{const e=document.getElementById("mobile-menu-data");if(e&&e.textContent)return JSON.parse(e.textContent)}catch(e){console.error("Errore lettura dati menu:",e)}return null}document.addEventListener("keydown",function(t){"Escape"===t.key&&r&&r.classList&&r.classList.contains("active")&&(t&&t.preventDefault&&t.preventDefault(),e())},!1),document.querySelectorAll(".mobile-menu-link[data-submenu]").forEach(s=>{s&&s.addEventListener&&s.addEventListener("click",function(s){s&&s.preventDefault&&s.preventDefault(),s&&s.stopPropagation&&s.stopPropagation(),s&&s.stopImmediatePropagation&&s.stopImmediatePropagation();const o=this.getAttribute("data-submenu");if(o){const s=n();if(s&&s.items){const a=s.items.find(function(e){return String(e.id)===String(o)});if(a){const s=function(e,n){const s=i("mobile-offcanvas");if(!s)return null;let o=s.querySelector(`.mobile-level-2[data-parent="${n}"]`);if(o)return o;o=document.createElement("div"),o.className="mobile-level-2",o.setAttribute("data-level","2"),o.setAttribute("data-parent",n);const a=document.createElement("div");a.className="offcanvas-header";const r=document.createElement("button");
2r.type="button",r.className="close-menu needsclick",r.setAttribute("aria-label",t("close_menu")),r.setAttribute("data-needsclick","true"),r.innerHTML='<i class="fas fa-times"></i>',r.onclick=function(e){return e&&(e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation()),"function"==typeof window.mobileMenuCloseHandler&&window.mobileMenuCloseHandler(e),!1},a.appendChild(r);const l=s.querySelector(".user-toggle-off");if(l){const e=l.cloneNode(!0);a.appendChild(e)}const c=document.createElement("div");c.className="mobile-level-title";const d=document.createElement("button");d.type="button",d.className="back-button needsclick",d.setAttribute("data-back-to","1"),d.setAttribute("aria-label",t("menu_back")),d.setAttribute("data-needsclick","true"),d.innerHTML='<i class="fas fa-chevron-left"></i><span>'+t("menu_back")+"</span>",d.addEventListener("click",function(e){e&&e.preventDefault&&e.preventDefault(),e&&e.stopPropagation&&e.stopPropagation(),e&&e.stopImmediatePropagation&&e.stopImmediatePropagation();const t=this.closest?this.closest(".mobile-level-2"):null;if(t&&t.classList){t.classList.remove("active");const e=document.querySelector(".mobile-level-1");e&&e.classList&&e.classList.remove("sliding-out")}return!1},{capture:!0}),c.appendChild(d);const u=document.createElement("h3");u.textContent=e.title||"",c.appendChild(u);const p=document.createElement("nav");p.className="mobile-navigation";const m=document.createElement("ul");if(m.className="mobile-submenu",e.children&&Array.isArray(e.children)&&e.children.forEach(function(e){const t=document.createElement("li"),n=e.classes||[];if((e.children&&e.children.length>0||e.banners_enabled)&&n.push("mobile-submenu-item-has-children"),t.className="mobile-submenu-item "+n.join(" "),e.children&&e.children.length>0||e.banners_enabled){const n=document.createElement("button");n.type="button",n.className="mobile-submenu-link needsclick",n.setAttribute("data-child-submenu",e.id),n.setAttribute("data-needsclick","true");const i=document.createElement("span");i.textContent=e.title||"",n.appendChild(i);const s=document.createElement("i");s.className="fas fa-chevron-right",n.appendChild(s),t.appendChild(n)}else{const n=document.createElement("a");n.href=e.link||"#",n.className="mobile-submenu-link",e.target&&n.setAttribute("target",e.target);const i=document.createElement("span");i.textContent=e.title||"",n.appendChild(i),t.appendChild(n)}m.appendChild(t)}),e.link&&"#"!==e.link&&""!==e.link){const n=document.createElement("li");n.className="mobile-submenu-item all-items";const i=document.createElement("a");i.href=e.link,i.className="mobile-submenu-link";const s=document.createElement("span");s.textContent=t("menu_all",e.title||""),i.appendChild(s),n.appendChild(i),m.appendChild(n)}return p.appendChild(m),o.appendChild(a),o.appendChild(c),o.appendChild(p),s.appendChild(o),o}(a,o);s&&s.classList&&(c&&c.classList&&c.classList.add("sliding-out"),setTimeout(()=>{var o;s.classList&&s.classList.add("active"),(o=s)&&o.querySelectorAll(".mobile-submenu-link[data-child-submenu]").forEach(s=>{s&&s.addEventListener&&!s.dataset.listenerAttached&&(s.dataset.listenerAttached="true",s.addEventListener("click",function(s){s&&s.preventDefault&&s.preventDefault(),s&&s.stopPropagation&&s.stopPropagation(),s&&s.stopImmediatePropagation&&s.stopImmediatePropagation();const o=this.getAttribute("data-child-submenu");if(o){const s=this.closest?this.closest(".mobile-level-2"):null,a=s?s.getAttribute("data-parent"):null,r=n();if(r&&r.items&&a){const l=r.items.find(function(e){return String(e.id)===String(a)});if(l&&l.children){const r=l.children.find(function(e){return String(e.id)===String(o)});if(r){const l=function(e,s,o){const a=i("mobile-offcanvas");if(!a)return null;let r=a.querySelector(`.mobile-level-3[data-parent="${s}"]`);if(r)return r;r=document.createElement("div"),r.className="mobile-level-3",r.setAttribute("data-level","3"),r.setAttribute("data-parent",s);const l=document.createElement("div");l.className="offcanvas-header";const c=document.createElement("button");
2c.type="button",c.className="close-menu needsclick",c.setAttribute("aria-label",t("close_menu")),c.setAttribute("data-needsclick","true"),c.innerHTML='<i class="fas fa-times"></i>',c.onclick=function(e){return e&&(e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation()),"function"==typeof window.mobileMenuCloseHandler&&window.mobileMenuCloseHandler(e),!1},l.appendChild(c);const d=a.querySelector(".user-toggle-off");if(d){const e=d.cloneNode(!0);l.appendChild(e)}const u=document.createElement("div");u.className="mobile-level-title";const p=document.createElement("button");p.type="button",p.className="back-button needsclick",p.setAttribute("data-back-to","2"),p.setAttribute("data-back-parent",o),p.setAttribute("aria-label",t("menu_back")),p.setAttribute("data-needsclick","true"),p.innerHTML='<i class="fas fa-chevron-left"></i><span>'+t("menu_back")+"</span>",p.addEventListener("click",function(e){e&&e.preventDefault&&e.preventDefault(),e&&e.stopPropagation&&e.stopPropagation(),e&&e.stopImmediatePropagation&&e.stopImmediatePropagation();const t=this.closest?this.closest(".mobile-level-3"):null,n=this.getAttribute("data-back-parent");if(t&&t.classList&&n){t.classList.remove("active");const e=document.querySelector('.mobile-level-2[data-parent="'+n+'"]');e&&e.classList&&e.classList.remove("sliding-out")}return!1},{capture:!0}),u.appendChild(p);const m=document.createElement("h3");m.textContent=e.title||"",u.appendChild(m);const h=document.createElement("nav");h.className="mobile-navigation";const f=document.createElement("div");if(f.className="mobile-detail-content",e.children&&Array.isArray(e.children)){const t=document.createElement("ul");t.className="mobile-third-level-list",e.children.forEach(function(e){if(!e.banners_enabled)if(e.children&&e.children.length>0){const n={title:e.title,allLink:e.link||"",items:[]};e.children.forEach(function(e){e.link&&"#"!==e.link&&""!==e.link&&n.items.push({title:e.title,link:e.link,target:e.target||""})});const i=document.createElement("li");i.className="mobile-third-level-item has-children";const s=document.createElement("button");s.type="button",s.className="mobile-third-level-link needsclick",s.setAttribute("data-grandchild-menu",e.id),s.setAttribute("data-menu-data",JSON.stringify(n)),s.setAttribute("data-needsclick","true");const o=document.createElement("span");o.textContent=e.title||"",s.appendChild(o);const a=document.createElement("i");a.className="fas fa-chevron-right",s.appendChild(a),i.appendChild(s),t.appendChild(i)}else{const n=document.createElement("li");n.className="mobile-third-level-item";const i=document.createElement("a");i.href=e.link||"#",i.className="mobile-third-level-link",e.target&&i.setAttribute("target",e.target);const s=document.createElement("span");s.textContent=e.title||"",i.appendChild(s),n.appendChild(i),t.appendChild(n)}}),t.children.length>0&&f.appendChild(t)}if(e.children&&Array.isArray(e.children)){const t=document.createElement("div"),n=e.classes||[];t.className="mobile-banners "+n.join(" ");let i=!1;e.children.forEach(function(e){if(e.banners_enabled){if(i=!0,e.banner1_image){const n=document.createElement("div");n.className="mobile-banner-item";const i=document.createElement("div");i.className="mobile-banner-image",i.style.backgroundImage="url('"+e.banner1_image+"')";const s=document.createElement("div");if(s.className="mobile-banner-overlay",e.banner1_title){const t=document.createElement("h5");t.className="mobile-banner-title";const n=String(e.banner1_title||"").replace(/&lt;br&gt;/gi,"<br>").replace(/&lt;br\/&gt;/gi,"<br>").replace(/&lt;br \/&gt;/gi,"<br>").replace(/<br\/>/gi,"<br>").replace(/<br>/gi,"<br>");t.innerHTML=n,s.appendChild(t)}if(e.banner1_cta_text){const t=document.createElement("a");t.href=e.banner1_cta_url||e.link||"#",t.className="mobile-banner-cta",t.textContent=e.banner1_cta_text,s.appendChild(t)}i.appendChild(s),n.appendChild(i),t.appendChild(n)}if(e.banner2_image){const n=document.createElement("div");n.className="mobile-banner-item";const i=document.createElement("div");i.className="mobile-banner-image",i.style.backgroundImage="url('"+e.banner2_image+"')";const s=document.createElement("div");if(s.className="mobile-banner-overlay",e.banner2_title){const t=document.createElement("h5");t.className="mobile-banner-title";const n=String(e.banner2_title||"").replace(/&lt;br&gt;/gi,"<br>").replace(/&lt;br\/&gt;/gi,"<br>").replace(/&lt;br \/&gt;/gi,"<br>").replace(/<br\/>/gi,"<br>").replace(/<br>/gi,"<br>");t.innerHTML=n,s.appendChild(t)}if(e.banner2_cta_text){const t=document.createElement("a");t.href=e.banner2_cta_url||e.link||"#",t.className="mobile-banner-cta",t.textContent=e.banner2_cta_text,s.appendChild(t)}i.appendChild(s),n.appendChild(i),t.appendChild(n)}}}),i&&f.appendChild(t)}const g=n(),v=g&&g.items?g.items.find(function(e){return String(e.id)===String(o)}):null,b=v&&v.classes&&-1!==v.classes.indexOf("mini");
2if(b&&e.children&&Array.isArray(e.children)&&e.children.forEach(function(e){if(e.banners_enabled&&e.children&&e.children.length>0){const n=document.createElement("ul");if(n.className="mobile-fourth-level-list",e.children.forEach(function(e){if(e.link&&"#"!==e.link&&""!==e.link){const t=document.createElement("li");t.className="mobile-fourth-level-item";const i=document.createElement("a");i.href=e.link,i.className="mobile-fourth-level-link",e.target&&i.setAttribute("target",e.target);const s=document.createElement("span");s.textContent=e.title||"",i.appendChild(s),t.appendChild(i),n.appendChild(t)}}),e.link&&"#"!==e.link&&""!==e.link){const i=document.createElement("li");i.className="mobile-fourth-level-item";const s=document.createElement("a");s.href=e.link,s.className="mobile-fourth-level-link",e.target&&s.setAttribute("target",e.target);const o=document.createElement("span");o.textContent=t("menu_all_mini",e.title||""),s.appendChild(o),i.appendChild(s),n.appendChild(i)}n.children.length>0&&f.appendChild(n)}}),!b&&e.link&&"#"!==e.link&&""!==e.link){const n=document.createElement("div");n.className="mobile-all-link";const i=document.createElement("a");i.href=e.link,i.className="mobile-submenu-link all-items";const s=document.createElement("span");s.textContent=t("menu_all",e.title||""),i.appendChild(s),n.appendChild(i),f.appendChild(n)}return h.appendChild(f),r.appendChild(l),r.appendChild(u),r.appendChild(h),a.appendChild(r),r}(r,o,a);l&&l.classList&&s&&s.classList&&(s.classList.add("sliding-out"),setTimeout(()=>{var n;l.classList&&l.classList.add("active"),(n=l)&&n.querySelectorAll(".mobile-third-level-link[data-grandchild-menu]").forEach(n=>{n&&n.addEventListener&&!n.dataset.listenerAttached&&(n.dataset.listenerAttached="true",n.addEventListener("click",function(n){n&&n.preventDefault&&n.preventDefault(),n&&n.stopPropagation&&n.stopPropagation(),n&&n.stopImmediatePropagation&&n.stopImmediatePropagation();const s=this.getAttribute("data-grandchild-menu"),o=this.getAttribute("data-menu-data");if(s&&o)try{const n=JSON.parse(o),a=this.closest?this.closest(".mobile-level-3"):null,r=a?a.getAttribute("data-parent"):null;if(n){const o=function(n,s,o){const a=i("mobile-offcanvas");if(!a)return null;let r=a.querySelector(`.mobile-level-4[data-parent="${s}"]`);if(r)return r;r=document.createElement("div"),r.className="mobile-level-4",r.setAttribute("data-level","4"),r.setAttribute("data-parent",s);const l=document.createElement("div");l.className="offcanvas-header";const c=document.createElement("button");c.type="button",c.className="close-menu needsclick",c.setAttribute("aria-label",t("close_menu")),c.setAttribute("data-needsclick","true"),c.innerHTML='<i class="fas fa-times"></i>',c.onclick=function(e){return e&&(e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation()),"function"==typeof window.mobileMenuCloseHandler&&window.mobileMenuCloseHandler(e),!1},l.appendChild(c);const d=a.querySelector(".user-toggle-off");if(d){const e=d.cloneNode(!0);l.appendChild(e)}const u=document.createElement("div");u.className="mobile-level-title";const p=document.createElement("button");p.type="button",p.className="back-button needsclick",p.setAttribute("data-back-to","3"),p.setAttribute("data-back-parent",o),p.setAttribute("aria-label",t("menu_back")),p.setAttribute("data-needsclick","true"),p.innerHTML='<i class="fas fa-chevron-left"></i><span>'+t("menu_back")+"</span>",u.appendChild(p);const m=document.createElement("h3");m.textContent=n.title||"",u.appendChild(m);const h=document.createElement("nav");h.className="mobile-navigation";const f=document.createElement("ul");if(f.className="mobile-fourth-level-list",n.items&&Array.isArray(n.items)&&n.items.forEach(function(e){const t=document.createElement("li");t.className="mobile-fourth-level-item";const n=document.createElement("a");n.href=e.link||"#",n.className="mobile-fourth-level-link",e.target&&n.setAttribute("target",e.target);const i=document.createElement("span");i.textContent=e.title||"",n.appendChild(i),t.appendChild(n),f.appendChild(t)}),n.allLink&&"#"!==n.allLink&&""!==n.allLink){const e=document.createElement("li");e.className="mobile-fourth-level-item all-items";const i=document.createElement("a");i.href=n.allLink,i.className="mobile-fourth-level-link";const s=document.createElement("span");s.textContent=t("menu_all",n.title||""),i.appendChild(s),e.appendChild(i),f.appendChild(e)}if(h.appendChild(f),r.appendChild(l),r.appendChild(u),r.appendChild(h),a.appendChild(r),c.addEventListener){const t=function(t){t&&(t.preventDefault&&t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation());try{e()}catch(e){console.error("Errore chiusura menu:",e)}return!1};c.addEventListener("click",t,{capture:!0,passive:!1}),c.addEventListener("touchstart",function(e){e&&e.preventDefault&&e.preventDefault(),e&&e.stopPropagation&&e.stopPropagation(),e&&e.stopImmediatePropagation&&e.stopImmediatePropagation()},{passive:!1,capture:!0}),c.addEventListener("touchend",function(e){return e&&e.preventDefault&&e.preventDefault(),e&&e.stopPropagation&&e.stopPropagation(),e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),setTimeout(function(){t(e)},10),!1},{passive:!1,capture:!0}),c.classList&&c.classList.add("needsclick"),c.style&&(c.style.touchAction="manipulation")}if(p.addEventListener){const e=function(e){e&&e.preventDefault&&e.preventDefault(),e&&e.stopPropagation&&e.stopPropagation(),e&&e.stopImmediatePropagation&&e.stopImmediatePropagation();const t=this.getAttribute("data-back-to"),n=this.getAttribute("data-back-parent");
2if("3"===t){const e=this.closest?this.closest(".mobile-level-4"):null;if(e&&e.classList&&n){e.classList.remove("active");const t=document.querySelector(`.mobile-level-3[data-parent="${n}"]`);t&&t.classList&&t.classList.remove("sliding-out")}}return!1};p.addEventListener("click",e,{capture:!0,passive:!1}),p.addEventListener("touchstart",function(e){e&&e.preventDefault&&e.preventDefault(),e&&e.stopPropagation&&e.stopPropagation(),e&&e.stopImmediatePropagation&&e.stopImmediatePropagation()},{passive:!1,capture:!0}),p.addEventListener("touchend",function(t){return t&&t.preventDefault&&t.preventDefault(),t&&t.stopPropagation&&t.stopPropagation(),t&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),setTimeout(function(){e.call(this,t)}.bind(this),10),!1},{passive:!1,capture:!0})}return r}(n,s,r);o&&o.classList&&a&&a.classList&&(a.classList.add("sliding-out"),setTimeout(()=>{o.classList&&o.classList.add("active")},50))}}catch(e){console.error("Errore parsing menu data:",e)}return!1},{capture:!0}))})},50))}}}}return!1},{capture:!0}))})},50))}}}return!1},{capture:!0})}),document.querySelectorAll(".back-button").forEach(e=>{e&&e.addEventListener&&e.addEventListener("click",function(e){e&&e.preventDefault&&e.preventDefault(),e&&e.stopPropagation&&e.stopPropagation(),e&&e.stopImmediatePropagation&&e.stopImmediatePropagation();const t=this.getAttribute("data-back-to");if("1"===t){const e=this.closest?this.closest(".mobile-level-2"):null;e&&e.classList&&(e.classList.remove("active"),c&&c.classList&&c.classList.remove("sliding-out"))}else if("2"===t){const e=this.closest?this.closest(".mobile-level-3"):null,t=this.getAttribute("data-back-parent");if(e&&e.classList&&t){e.classList.remove("active");const n=document.querySelector(`.mobile-level-2[data-parent="${t}"]`);n&&n.classList&&n.classList.remove("sliding-out")}}else if("3"===t){const e=this.closest?this.closest(".mobile-level-4"):null,t=this.getAttribute("data-back-parent");if(e&&e.classList&&t){e.classList.remove("active");const n=document.querySelector(`.mobile-level-3[data-parent="${t}"]`);n&&n.classList&&n.classList.remove("sliding-out")}}return!1},{capture:!0})}),document.querySelectorAll(".mobile-menu-link:not([data-submenu])").forEach(t=>{t&&t.addEventListener&&t.addEventListener("click",function(t){setTimeout(()=>{e()},100)})}),document.querySelectorAll(".mobile-submenu-link:not([data-child-submenu]), .mobile-third-level-link:not([data-grandchild-menu]), .mobile-fourth-level-link").forEach(t=>{t&&t.addEventListener&&t.addEventListener("click",function(t){setTimeout(()=>{e()},100)})})}catch(S){return console.error("Errore critico nel menu mobile:",S),!1}}function o(){try{s()}catch(e){console.error("Errore inizializzazione menu mobile:",e),setTimeout(function(){try{s()}catch(e){console.error("Errore retry inizializzazione menu mobile:",e)}},500)}}function a(e,t){const n=document.querySelector(".site-header");if(!t||!n)return;const i=n.getBoundingClientRect().bottom,s=window.innerHeight-i;document.documentElement.style.setProperty("--header-height",i+"px"),t.style.top=i+"px",t.style.height=s+"px"}function r(t,n,i){e.ajax({url:bonelli_ajax.ajax_url,type:"POST",data:{action:"check_stock_before_add",product_id:t,variation_id:n,nonce:bonelli_ajax.nonce},success:function(e){if(e.success){var t=e.data,n=t.can_add,s=t.stock_quantity,o=t.cart_quantity,a=t.error_message;i(n,s,o,a)}else i(!1,0,0,"Errore nel controllo disponibilità")},error:function(){i(!1,0,0,"Errore nel controllo disponibilità")}})}function l(){if(0!==e("#debugTabs").length)if("undefined"!=typeof bootstrap&&bootstrap.Tab){var t=document.querySelectorAll('#debugTabs button[data-bs-toggle="tab"]');t.forEach(function(e){new bootstrap.Tab(e)}),t.forEach(function(e){e.addEventListener("click",function(e){e.preventDefault(),this.getAttribute("data-bs-target"),new bootstrap.Tab(this).show()})})}else e('#debugTabs button[data-bs-toggle="tab"]').off("click").on("click",function(t){t.preventDefault(),e("#debugTabs .nav-link").removeClass("active"),e(".tab-pane").removeClass("show active"),e(this).addClass("active");var n=e(this).attr("data-bs-target");e(n).addClass("show active")})}new MutationObserver(function(e){e.forEach(function(e){e.addedNodes.forEac
2h(function(e){if(1===e.nodeType){e.classList&&(e.classList.contains("woocommerce-error")||e.classList.contains("woocommerce-message")||e.classList.contains("woocommerce-info"))&&(e.classList.contains("toast-notification")||e.closest(".toast-notification")||("function"==typeof window.bonelliHandleWcNoticeElement?window.bonelliHandleWcNoticeElement(e):e.remove()));const t=e.querySelectorAll&&e.querySelectorAll(".woocommerce-error, .woocommerce-message, .woocommerce-info");t&&t.length>0&&t.forEach(function(e){e.closest(".toast-notification")||("function"==typeof window.bonelliHandleWcNoticeElement?window.bonelliHandleWcNoticeElement(e):e.remove())})}})})}).observe(document.body,{childList:!0,subtree:!0}),o(),document.addEventListener&&document.addEventListener("DOMContentLoaded",function(){const e=document.getElementById("mobile-offcanvas");e&&(e.dataset&&"true"===e.dataset.initialized||e.getAttribute&&"true"===e.getAttribute("data-initialized")||setTimeout(function(){o()},100))}),window.addEventListener&&window.addEventListener("load",function(){const e=document.getElementById("mobile-offcanvas");e&&(e.dataset&&"true"===e.dataset.initialized||e.getAttribute&&"true"===e.getAttribute("data-initialized")||setTimeout(function(){o()},200))}),document.querySelectorAll(".menu-item:not(.mega):not(.mini).menu-item-has-children").forEach(e=>{const t=e.children[0],n=e.querySelector(".sub-menu");if(t&&"A"===t.tagName&&n){const i=t.getAttribute("href")||"#";t.addEventListener("click",function(s){s.preventDefault(),s.stopPropagation();const o=e.classList.contains("menu-open");document.querySelectorAll(".menu-item:not(.mega).menu-open").forEach(t=>{t!==e&&t.classList.remove("menu-open")}),document.querySelectorAll(".menu-item.mega.mega-open").forEach(e=>{e.classList.remove("mega-open")});const a=document.getElementById("mega-overlay");if(a&&a.classList.remove("active"),o)e.classList.remove("menu-open");else if(e.classList.add("menu-open"),!n.querySelector(".first-level-link")){t.querySelector("span")?t.querySelector("span").textContent:t.textContent;const e=document.createElement("li");e.className="sub-menu-item first-level-link";const s=document.createElement("a");s.href=i,s.innerHTML=t.innerHTML,e.appendChild(s),n.appendChild(e)}return!1})}}),document.addEventListener("click",function(e){e.target.closest(".menu-item:not(.mega).menu-item-has-children")||document.querySelectorAll(".menu-item:not(.mega).menu-open").forEach(e=>{e.classList.remove("menu-open")})}),document.addEventListener("keydown",function(e){"Escape"===e.key&&document.querySelectorAll(".menu-item:not(.mega).menu-open").forEach(e=>{e.classList.remove("menu-open")})}),function(){const e=document.querySelectorAll(".menu-item.mega, .menu-item.mini"),n=document.getElementById("mega-overlay");function i(){document.querySelectorAll(".menu-item.mega, .menu-item.mini").forEach(e=>{e.classList.remove("mega-open","mini-open")}),document.querySelectorAll(".menu-item:not(.mega):not(.mini).menu-open").forEach(e=>{e.classList.remove("menu-open")}),n&&n.classList.remove("active")}e.forEach(e=>{const i=e.children[0],s=e.querySelector(".sub-menu");if(i&&"A"===i.tagName&&s){const o=i.getAttribute("href")||"#";i.addEventListener("click",function(t){t.preventDefault(),t.stopPropagation();const i=e.classList.contains("mega-open")||e.classList.contains("mini-open");return document.querySelectorAll(".menu-item.mega, .menu-item.mini").forEach(e=>{e.classList.remove("mega-open","mini-open","menu-open")}),document.querySelectorAll(".menu-item:not(.mega):not(.mini).menu-open").forEach(e=>{e.classList.remove("menu-open")}),i?(e.classList.remove("mega-open","mini-open"),n&&n.classList.remove("active")):(e.classList.contains("mini")?e.classList.add("mini-open"):e.classList.add("mega-open"),n&&(n.classList.add("active"),a(0,n))),!1});const r=i.querySelector("span")?i.querySelector("span").textContent:i.textContent,l=s.querySelector(".second-level-column");if(!s.querySelector(".all-parent-link")&&l){const e=document.createElement("li");e.className="sub-menu-item all-parent-link",e.innerHTML=`\n                        <a href="${o}">
2\n                            <span>${t("menu_all",r)}</span>\n                            <i class="fas fa-arrow-right"></i>\n                        </a>\n                    `,l.appendChild(e)}!function(e){const t=e.querySelectorAll(".second-level-column .sub-menu-item:not(.all-parent-link)"),n=e.querySelectorAll(".third-level-column .third-level-group");function i(i){const s=i.querySelector("a").textContent.toLowerCase().trim().replace(/\s+/g,"-");t.forEach(e=>{e.classList.remove("active")}),i.classList.add("active"),n.forEach(e=>{e.style.display="none"});const o=e.querySelector(`.third-level-column .third-level-group[data-parent="${s}"]`);if(o)o.style.display="grid";else{const t=s.split("-")[0],n=e.querySelector(`.third-level-column .third-level-group[data-parent="${t}"]`);n&&(n.style.display="grid")}const r=e.closest(".menu-item.mega, .menu-item.mini"),l=document.getElementById("mega-overlay");r&&l&&l.classList.contains("active")&&setTimeout(()=>{a(0,l)},10)}t.length>0&&i(t[0]),t.forEach((e,t)=>{e.addEventListener("mouseenter",function(){i(e)})})}(s)}}),n&&n.addEventListener("click",i),document.addEventListener("click",function(e){const t=e.target.closest(".menu-item.mega, .menu-item.mini"),n="mega-overlay"===e.target.id;t||n||i()}),window.addEventListener("resize",function(){document.querySelector(".menu-item.mega.mega-open, .menu-item.mini.mini-open")&&n&&n.classList.contains("active")&&a(0,n)});let s=!1;window.addEventListener("scroll",function(){document.querySelector(".menu-item.mega.mega-open, .menu-item.mini.mini-open")&&n&&n.classList.contains("active")&&(a(0,n),s||(s=!0,requestAnimationFrame(()=>{a(0,n),s=!1})))}),document.addEventListener("keydown",function(e){"Escape"===e.key&&i()})}(),function(){const s=document.getElementById("cart-toggle"),o=document.getElementById("cart-offcanvas"),a=document.getElementById("cart-overlay"),l=document.getElementById("close-cart"),c=document.getElementById("cart-count");function d(){o.classList.remove("active"),a.classList.remove("active"),o.setAttribute("aria-hidden","true"),s&&s.setAttribute("aria-expanded","false"),document.body.style.overflow=""}function u(){const e=new FormData;e.append("action","get_cart_contents"),e.append("nonce",bonelli_ajax.nonce),fetch(bonelli_ajax.ajax_url,{method:"POST",body:e}).then(e=>e.json()).then(e=>{if(e.success){const t=document.getElementById("cart-items");t&&(t.innerHTML=e.data.cart_html);const s=document.querySelector(".cart-items-count");s&&(s.textContent=i(e.data.cart_count));const o=document.querySelector(".subtotal-row span:first-child");o&&(o.textContent=n(e.data.cart_count));const a=document.querySelector(".subtotal-amount");a&&(a.textContent=e.data.subtotal);const r=document.querySelector(".total-amount");r&&(r.textContent=e.data.total),window.handleQuantityChange(),window.handleRemoveItems()}}).catch(e=>{console.error("Errore refresh carrello:",e)})}s&&s.addEventListener("click",function(){const e=s.getAttribute("data-cart-url")||"/cart/",t=window.location.pathname.replace(/\/+$/,"")||"/";if(/(?:^|\/)(cart|carrello)$/i.test(t)||document.body.classList.contains("woocommerce-cart"))return;const n=document.getElementById("cart-count");0!==(n?parseInt(n.textContent):0)?(o.classList.add("active"),a.classList.add("active"),o.setAttribute("aria-hidden","false"),s.setAttribute("aria-expanded","true"),document.body.style.overflow="hidden"):window.location.href=e}),l&&l.addEventListener("click",d),a&&a.addEventListener("click",d),document.addEventListener("keydown",function(e){"Escape"===e.key&&o.classList.contains("active")&&d()}),window.handleQuantityChange=function(){document.querySelectorAll(".quantity-input").forEach(e=>{e.replaceWith(e.cloneNode(!0))}),document.querySelectorAll(".quantity-arrow").forEach(e=>{e.replaceWith(e.cloneNode(!0))}),document.querySelectorAll(".quantity-input").forEach(e=>{e.addEventListener("change",function(e){const t=this.dataset.key;let n=parseInt(this.value);n<1&&(n=1,this.value=1);var i=this.dataset.maxQty?parseInt(this.dataset.maxQty):this.max?parseInt(this.max):null;if(i&&n>i)return n=i,this.value=i,void(window.showStockError&&window.showStockError(null,"Limite massimo per questo prodotto: "+i+(1===i?" copia.":" copie.")));updateCartItemQuantity(t,n)}),e.addEventListener("blur",function(e){const n=this.dataset.key,i=document.querySelector(`[data-key="${n}"]`),s=i.dataset.productId,o=i.dataset.variationId||0,a=parseInt(this.value);checkStockBeforeUpdate(s,o,a,function(e,n,i){e||(this.value=n,showStockError(n,i||t("quantity_unavailable",n)))}.bind(this))})}),document.querySelectorAll(".quantity-arrow").forEach(n=>
2{n.addEventListener("click",function(n){n.preventDefault();const i=this.dataset.key,s=this.classList.contains("arrow-up"),o=this.closest(".quantity-input-wrapper").querySelector(".quantity-input"),a=document.querySelector('[data-key="'+i+'"]');if(!a)return void console.error("Cart item non trovato");const r=a.dataset.productId,l=a.dataset.variationId||0;let c=parseInt(o.value),d=s?c+1:c-1;d<1&&(d=1);var u=o.dataset.maxQty?parseInt(o.dataset.maxQty):o.max?parseInt(o.max):null;u&&s&&d>u?window.showStockError&&window.showStockError(null,"Limite massimo per questo prodotto: "+u+(1===u?" copia.":" copie.")):r?e.ajax({url:bonelli_ajax.ajax_url,type:"POST",data:{action:"get_product_limit",product_id:r,variation_id:l,cart_item_key:i,nonce:bonelli_ajax.nonce},success:function(e){if(e.success){const n=e.data;if(null!==n.limit_copie&&n.limit_copie>0){const e=n.cart_quantity+d;if(s&&e>n.limit_copie){const e=n.limit_copie-n.cart_quantity,i=e<=0?t("max_quantity_reached",n.limit_copie)||"Hai già raggiunto la quantità massima disponibile ("+n.limit_copie+" pezzi).":t("can_add_max_pieces",e)||"Puoi aggiungere al massimo "+e+" pezzi.";o.value=c;const s=function(){document.querySelectorAll(".woocommerce-error, .woocommerce-notices-wrapper .woocommerce-error, .cart-offcanvas-notices .woocommerce-error, #cart-notices .woocommerce-error, #cart-offcanvas-notices .woocommerce-error, .woocommerce-message, .woocommerce-info").forEach(e=>{e.remove()}),document.querySelectorAll(".cart-offcanvas-notices, #cart-offcanvas-notices, #cart-notices, .woocommerce-notices-wrapper").forEach(e=>{e&&(e.innerHTML="")})};return s(),setTimeout(s,100),setTimeout(s,500),void(window.showStockError?window.showStockError(null,i):window.showToast?window.showToast(i,"error"):alert(i))}}o.setAttribute("data-original-quantity",c),o.value=d,updateCartItemQuantity(i,d)}else console.error("Errore nella risposta:",e.data),o.value=d,updateCartItemQuantity(i,d)},error:function(e,t,n){console.error("=== ERRORE AJAX ==="),console.error("Status:",t),console.error("Error:",n),o.value=d,updateCartItemQuantity(i,d)}}):(console.error("Product ID non trovato"),o.value=d,updateCartItemQuantity(i,d))})})},window.handleRemoveItems=function(){document.querySelectorAll(".remove-item").forEach(e=>{e.replaceWith(e.cloneNode(!0))}),document.querySelectorAll(".remove-item").forEach(e=>{e.addEventListener("click",function(e){e.preventDefault();const t=this.dataset.key;removeCartItem(t)})})},window.updateCartItemQuantity=function(e,s){const o=document.querySelector(`[data-key="${e}"]`);if(!o)return void console.error("Elemento carrello non trovato");const a=o.dataset.productId,r=o.dataset.variationId||0;a?checkStockBeforeUpdate(a,r,s,function(o,a,r){if(!o){const n=document.querySelector(`[data-key="${e}"] .quantity-input`);return n&&(n.value=a),void showStockError(a,r||t("quantity_unavailable",a))}const l=new FormData;l.append("action","update_cart_item_quantity"),l.append("cart_key",e),l.append("quantity",s),l.append("nonce",bonelli_ajax.nonce),fetch(bonelli_ajax.ajax_url,{method:"POST",body:l}).then(e=>e.json()).then(s=>{if(s.success){if(u(),updateCartCount(s.data.cart_count),document.body.classList.contains("woocommerce-cart")||document.querySelector(".cart-page")){const e=s.data.cart_count||0;window.cartPage&&"function"==typeof window.cartPage.updateCartTotals?window.cartPage.updateCartTotals(s.data.subtotal,s.data.total,e):(document.querySelectorAll(".cart-page .summary-value").forEach(e=>{e.closest(".summary-row")&&!e.closest(".summary-row.total")&&(e.innerHTML=s.data.subtotal||"")}),document.querySelectorAll(".cart-page .total-value").forEach(e=>{e.innerHTML=s.data.total||""}),document.querySelectorAll(".cart-page .summary-label").forEach(i=>{i.textContent.includes(t("subtotal_label")||"Subtotale")&&(i.innerHTML=n(e))}),document.querySelectorAll("#cart-count").forEach(t=>{t.textContent=e}));const o=[".cart-page .page-header .cart-summary",".page-header .cart-summary",".cart-page header .cart-summary","header .cart-summary",".cart-page .container header .cart-summary"];let a=!1;for(const t of o){const n=document.querySelector(t);if(n){n.textContent=i(e),a=!0;break}}}}else{const n=document.querySelector(`[data-key="${e}"] .quantity-input`);if(n){var o=parseInt(n.getAttribute("data-original-quantity"));if(!o||isNaN(o)){var a=n.dataset.maxQty?parseInt(n.dataset.maxQty):null;o=a?Math.min(parseInt(n.value),a):Math.max(1,parseInt(n.value)-1)}n.value=o}const i="function"==typeof window.bonelliFriendlyCartMessage?window.bonelliFriendlyCartMessage(s.data||"","quantity"):s.data||t("qty_update_failed"),r=function(){document.querySelectorAll(".woocommerce-error, .woocommerce-notices-wrapper .woocommerce-error, .cart-offcanvas-notices .woocommerce-error, #cart-notices .woocommerce-error, #cart-offcanvas-notices .woocommerce-error, .woocommerce-message, .woocommerce-info").forEach(e
2=>{e.remove()}),document.querySelectorAll(".cart-offcanvas-notices, #cart-offcanvas-notices, #cart-notices, .woocommerce-notices-wrapper").forEach(e=>{e&&(e.innerHTML="")})};r(),setTimeout(r,100),setTimeout(r,500),window.showStockError?window.showStockError(null,i):window.showToast?window.showToast(i,"error"):alert(i),console.error("Errore aggiornamento quantità:",s.data)}}).catch(e=>{console.error("Errore AJAX:",e)})}):console.error("Product ID non trovato")},window.removeCartItem=function(e){const t=new FormData;t.append("action","remove_cart_item"),t.append("cart_key",e),t.append("nonce",bonelli_ajax.nonce),fetch(bonelli_ajax.ajax_url,{method:"POST",body:t}).then(e=>e.json()).then(e=>{e.success?(u(),updateCartCount(e.data.cart_count)):console.error("Errore rimozione prodotto:",e.data)}).catch(e=>{console.error("Errore AJAX:",e)})},window.updateCartCount=function(e){c&&(c.textContent=e,e>0?c.classList.remove("hidden"):c.classList.add("hidden"));const t=document.querySelector(".subtotal-row span:first-child");t&&(t.textContent=n(e));const s=document.querySelector(".cart-items-count");s&&(s.textContent=i(e))},window.handleQuantityChange(),window.handleRemoveItems(),e(document.body).on("added_to_cart",function(e,t,n){t.cart_count&&updateCartCount(t.cart_count),o.classList.contains("active")&&u()}),e(document.body).on("updated_wc_div",function(){u()}),e(document).on("submit","form.cart",function(n){n.preventDefault(),n.stopPropagation();var i=e(this),s=i.find('button[type="submit"]'),l=i.find('[name="add-to-cart"]').val(),c=i.find('[name="variation_id"]').val()||0,d=s.html();s.prop("disabled",!0).text("Aggiungendo..."),r(l,c,function(n,r,p,m){if(!n)return showStockError(r,m||t("quantity_unavailable",r)),void s.prop("disabled",!1).html(d);const h={action:"add_to_cart_ajax",product_id:l,variation_id:c,quantity:1,nonce:bonelli_ajax.nonce},f=i.find('input[name^="attribute_"]');f.length>0&&f.each(function(){const t=e(this).attr("name"),n=e(this).val();n&&(h[t]=n)}),e.ajax({url:bonelli_ajax.ajax_url,type:"POST",data:h,success:function(e){e.success?(e.data&&e.data.cart_count&&updateCartCount(e.data.cart_count),u(),o&&a&&(o.classList.add("active"),a.classList.add("active"),document.body.style.overflow="hidden")):showStockError(r,e.data||t("add_to_cart_failed"))},error:function(e,n,i){showStockError(r,t("add_to_cart_failed"))},complete:function(){s.prop("disabled",!1).html(d)}})})})}(),l(),setTimeout(function(){l()},500),e(window).on("load",function(){l()}),function(){const t=document.querySelectorAll(".variation-option"),n=document.querySelector('.btn-primary[type="submit"]'),i=document.querySelector(".cart");if(t.length>0){let o=null;function s(){const t=document.querySelectorAll('input[name^="attribute_"]');let s=!0;const a={};if(t.forEach(function(e){e.value?a[e.name]=e.value:s=!1}),n)if(s){n.disabled=!0,n.textContent="CARICAMENTO...";const t=document.querySelector('input[name="add-to-cart"]').value;window.bonelli_ajax?e.ajax({url:bonelli_ajax.ajax_url,type:"POST",data:{action:"get_variation_id",product_id:t,attributes:a,nonce:bonelli_ajax.nonce},success:function(e){e.success&&e.data.is_in_stock?(o||(o=document.createElement("input"),o.type="hidden",o.name="variation_id",i.appendChild(o)),o.value=e.data.variation_id,n.disabled=!1,n.textContent="AGGIUNGI AL CARRELLO"):(n.disabled=!0,n.textContent="VARIAZIONE NON DISPONIBILE")},error:function(e,t,i){n.disabled=!0,n.textContent="ERRORE"}}):(n.disabled=!0,n.textContent="ERRORE CONFIG")}else n.disabled=!0,n.textContent="SELEZIONA LE OPZIONI",o&&(o.remove(),o=null)}t.forEach(function(e){e.addEventListener("click",function(){if(this.disabled||this.classList.contains("disabled"))return;const e=this.getAttribute("data-attribute"),t=this.getAttribute("data-value"),n=document.getElementById("attribute_"+e);document.querySelectorAll('[data-attribute="'+e+'"]').forEach(function(e){e.classList.remove("selected")}),this.classList.add("selected"),n&&(n.value=t),s()})}),s()}}(),document.querySelectorAll(".add-to-cart-btn").length,setTimeout(function(){document.querySelector(".add-to-cart-btn")},1e3),e(document).on("click",".add-to-cart-btn",function(n){var i=e(this);if(!i.hasClass("in-arrivo")&&(!i.is("a")||i.data("product-id"))){n.preventDefault();var s=i.data("product-id");if(s){var o=i.find(".btn-text-desktop"),a=i.find(".btn-text-tablet-mobile"),l=o.length?o.text():i.text().trim(),c=a.length?a.text():l,d=function(e,t){o.length>0&&a.length>0?(o.text(e),a.text(t)):(i.empty(),i.html('<span class="btn-text-desktop">'+e+'</span><span class="btn-text-tablet-mobile">'+t+"</span>"))},u=function(){d(l,c)};i.prop("disabled",!0),d("Aggiungendo...","Aggiungendo..."),r(s,0,function(n,o,a,r){if(!n)return showStockError(o,r||t("quantity_unavailable",o)),i.prop("disabled",!1),void u();e.ajax({url:bonelli_ajax.ajax_url,type:"POST",data:{action:"add_to_cart_ajax",product_id:s,variation_id:0,quantity:1,nonce:bonelli_ajax.nonce},success:function(e){if(e.success){e.data&&e.data.cart_count&&updateCartCount(e.data.cart_count),refreshCartOffcanvas();const t=document.getElementById("cart-offcanvas"),n=document.getElementById("cart-overlay");t&&n?(t.classList.add("active"),n.classList.add("active"),document.body.style.overflow="hidden"):console.error("Elementi offcanvas non trovati!")}else showStockError(o,e.data||t("add_to_cart_failed"))},error:function(){showStockError(o,t("add_to_cart_failed"))},complete:function(){i.prop("disabled",!1),u()}})})}else console.error("ID prodotto non trovato")}}),document.querySelectorAll('a[href*="add-to-cart"]'),e(document).on("click",'a[href*="add-to-cart"]',function(n){n.preventDefault();var i=e(this),s=i.attr("href"),o=null,a=new URLSearchParams(s.split("?")[1]);a.has("add-to-cart")&&(o=a.get("add-to-cart")),o?(i.addClass("disabled").text("Aggiungendo..."),r(o,0,function(n,s,a,r){if(!n)return showStockError(s,r||t("quantity_unavailable",s)),void i.removeClass("disabled").text("AGGIUNGI AL CARRELLO");e.ajax({url:bonelli_ajax.ajax_url,type:"POST",data:{action:"add_to_cart_ajax",product_id:o,variation_id:0,quantity:1,nonce:bonelli_ajax.nonce},success:function(e){if(e.success){e.data&&e.data.cart_count&&updateCartCount(e.data.cart_count),refreshCartOffcanvas();const t=document.getElementById("cart-offcanvas"),n=document.getElementById("cart-overlay");t&&n&&(t.classList.add("active"),n.classList.add("active"),document.body.style.overflow="hidden")}else showStockError(s,e.data||t("add_to_cart_failed"))},error:function(){showStockError(s,t("add_to_cart_failed"))},complete:function(){i.removeClass("disabled").text("AGGIUNGI AL CARRELLO")}})})):console.error("ID prodotto non trovato nell'URL")}),window.checkStockBeforeAdd=function(t,n,i){e.ajax({url:bonelli_ajax.ajax_url,type:"POST",data:{action:"check_stock_before_add",product_id:t,variation_id:n,nonce:bonelli_ajax.nonce},success:function(e){if(e.success){var t=e.data,n=t.can_add,s=t.stock_quantity,o=t.cart_quantity,a=t.error_message;i(n,s,o,a)}else i(!1,0,0,"Errore nel controllo disponibilità")},error:function(){i(!1,0,0,"Errore nel controllo disponibilità")}})},window.refreshCartOffcanvas=function(){const e=new FormData;
2e.append("action","get_cart_contents"),e.append("nonce",bonelli_ajax.nonce),fetch(bonelli_ajax.ajax_url,{method:"POST",body:e}).then(e=>e.json()).then(e=>{if(e.success){const t=document.getElementById("cart-items");t?t.innerHTML=e.data.cart_html:console.error("Elemento cart-items non trovato!");const s=document.querySelector(".cart-items-count");s&&(s.textContent=i(e.data.cart_count));const o=document.querySelector(".subtotal-row span:first-child");o&&(o.textContent=n(e.data.cart_count));const a=document.querySelector(".subtotal-amount");a&&(a.textContent=e.data.subtotal);const r=document.querySelector(".total-amount");r&&(r.textContent=e.data.total),window.handleQuantityChange(),window.handleRemoveItems()}}).catch(e=>{})},window.showToast=function(t,n="error",i=5e3){e(".toast-notification").remove();var s='<div class="toast-notification '+n+'"><i class="toast-icon '+("error"===n?"fas fa-exclamation-triangle":"success"===n?"fas fa-check-circle":"warning"===n?"fas fa-exclamation-triangle":"fas fa-info-circle")+'"></i><span class="toast-message">'+t+'</span><button class="toast-close" onclick="window.hideToast(this)">&times;</button></div>';e("body").append(s),setTimeout(function(){e(".toast-notification").addClass("show")},100),i>0&&setTimeout(function(){window.hideToast(e(".toast-notification .toast-close"))},i)},window.hideToast=function(t){var n=e(t).closest(".toast-notification");n.removeClass("show"),setTimeout(function(){n.remove()},300)},window.showStockError=function(e,n){var i=n||t("max_quantity_reached",e)||"Hai già raggiunto la quantità massima disponibile ("+e+" pezzi)",s="function"==typeof window.bonelliFriendlyCartMessage?window.bonelliFriendlyCartMessage(i,"quantity"):i;window.showToast(s,"error",4e3)},window.checkStockBeforeUpdate=function(n,i,s,o){e.ajax({url:bonelli_ajax.ajax_url,type:"POST",data:{action:"check_stock_before_add",product_id:n,variation_id:i,nonce:bonelli_ajax.nonce},success:function(e){if(e.success){var n=e.data,i=n.stock_quantity,a=(n.cart_quantity,!1),r="";0===i||s<=i?a=!0:r=t("quantity_unavailable",i),o(a,i,r)}else o(!1,0,"Errore nel controllo disponibilità")},error:function(){o(!1,0,"Errore nel controllo disponibilità")}})}}),function(){function e(){if((e=window.location.pathname).includes("/cart")||e.includes("/carrello")||document.body.classList.contains("woocommerce-cart")){var e,t="",n="",i="",s=new URLSearchParams(window.location.search);if(s.has("esito")&&"KO"===s.get("esito")){i=s.get("esito"),t=s.get("messaggio")||"",n=s.get("codiceEsito")||"";try{t=decodeURIComponent(t)}catch(e){}}if(!i)for(var o=document.cookie.split(";"),a=0;a<o.length;a++){var r=o[a].trim();if(0===r.indexOf("nexi_payment_err_")){var l=r.split("=");if(l.length>=2)try{var c=JSON.parse(decodeURIComponent(l.slice(1).join("=")));if(c&&"KO"===c.esito){var d=c.timestamp||0;if(Date.now()/1e3-d<300){i=c.esito,t=c.messaggio||"",n=c.codiceEsito||"";var u=l[0];document.cookie=u+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";break}}}catch(e){}}}if("KO"===i){var p=bonelliMsg("payment_incomplete_title")||"Pagamento non completato";(function(e,t,n){if(!document.querySelector(".payment-error-message")){var i='<div class="payment-error-message" role="alert"><div class="payment-error-content"><svg class="payment-error-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="currentColor"><path d="M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24V296c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"/></svg><div class="payment-error-text"><strong class="payment-error-title">'+(n||bonelliMsg("payment_error"))+'</strong><p class="payment-error-description">'+e+"</p></div></div></div>",s=document.querySelector(".cart-page .page-header"),o=document.querySelector(".cart-page .container");if(o&&s){var a=document.createElement("div");a.innerHTML=i,o.insertBefore(a.firstElementChild,s.nextSibling)}else o&&o.insertAdjacentHTML("afterbegin",i)}})("400"==n||t&&-1!==t.toLowerCase().indexOf("denied")?bonelliMsg("payment_denied")||"Il pagamento è stato rifiutato dalla banca. Verifica i dati della carta o prova con un'altra carta di pagamento. Riceverai un'email con tutti i dettagli dell'operazione.":"401"==n||t&&-1!==t.toLowerCase().indexOf("unauthorized")?bonelliMsg("payment_unauthorized")||"Autorizzazione non riuscita. Controlla che la carta sia valida e che i fondi siano sufficienti. Riceverai un'email con tutti i dettagli dell'operazione.":t?bonelliMsg("payment_processing_error")||"Si è verificato un problema durante l'elaborazione del pagamento. Non ti preoccupare, non è stata addebitata alcuna somma. Riceverai un'email con tutti i dettagli dell'operazione. Puoi riprovare o contattare il supporto se il problema persiste.":bonelliMsg("payment_not_completed")||"Il pagamento non è stato completato. Non ti preoccupare, non è stata addebitata alcuna somma. Riceverai un'email con tutti i dettagli dell'operazione. Puoi riprovare o contattare il supporto se hai bisogno di assistenza.",0,p),s.has("esito")&&setTimeout(function(){var e=window.location.pathname,t=new URLSearchParams;
2s.forEach(function(e,n){["esito","messaggio","codiceEsito","codTrans","importo","divisa","xpay__lb__token","data","orario","codiceConvenzione","descrizione","nome","cognome","mail","nazionalita","regione","mac","codAut","tipoProdotto","selectedcard","alias","pan","brand","scadenza_pan","languageId","tipoTransazione","aliasEffettivo","TCONTAB","OPTION_CF","num_contratto","Note1","Note2","Note3","check"].includes(n)||t.append(n,e)});var n=t.toString(),i=e+(n?"?"+n:"");window.history.replaceState({},document.title,i)},1e3)}}}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e):e(),setTimeout(e,500)}(),window.addEventListener("error",function(e){}),jQuery(document).ready(function(e){function t(){var t=e("#billing_want_invoice"),n=e(".form-row").has(".bonelli-invoice-field"),i=e("#billing_codice_fiscale"),s=e("#billing_partita_iva");t.length&&n.length&&(t.is(":checked")?(n.slideDown(200),n.find(".bonelli-invoice-field").addClass("visible"),i.removeAttr("required"),s.removeAttr("required"),n.find(".woocommerce-error").remove(),n.removeClass("woocommerce-invalid"),n.removeClass("woocommerce-invalid-required-field")):(n.slideUp(200),n.find(".bonelli-invoice-field").removeClass("visible"),i.val("").removeAttr("required"),s.val("").removeAttr("required"),n.find(".woocommerce-error").remove(),n.removeClass("woocommerce-invalid"),n.removeClass("woocommerce-invalid-required-field")))}function n(){var t=e("#billing_want_invoice"),n=(e("#billing_codice_fiscale").val()||"").trim(),i=(e("#billing_partita_iva").val()||"").trim(),s=e("#billing_codice_fiscale").closest(".form-row"),o=e("#billing_partita_iva").closest(".form-row"),a=s.parent(),r=!0;if(a.find(".bonelli-invoice-error-message").remove(),s.find(".woocommerce-error").remove(),o.find(".woocommerce-error").remove(),s.removeClass("woocommerce-invalid woocommerce-invalid-required-field"),o.removeClass("woocommerce-invalid woocommerce-invalid-required-field"),t.is(":checked"))if(""===n&&""===i){if(r=!1,0===a.find(".bonelli-invoice-error-message").length){var l='<div class="bonelli-invoice-error-message" style="color: #e2401c; font-size: 14px; margin-top: 10px; clear: both;"><span class="woocommerce-error">'+(bonelliMsg("invoice_cf_or_vat_required")||"Inserisci almeno il Codice Fiscale o la Partita IVA")+"</span></div>";a.append(l)}s.addClass("woocommerce-invalid woocommerce-invalid-required-field"),o.addClass("woocommerce-invalid woocommerce-invalid-required-field")}else a.find(".bonelli-invoice-error-message").remove(),s.removeClass("woocommerce-invalid woocommerce-invalid-required-field"),o.removeClass("woocommerce-invalid woocommerce-invalid-required-field");return r}function i(){e("#billing_codice_fiscale, #billing_partita_iva").each(function(){var t=e(this).closest(".form-row").find("label");t.length&&(t.html(t.html().replace(/\s*\(facoltativo\)/gi,"")),t.html(t.html().replace(/\s*\(optional\)/gi,"")),t.find(".optional").remove())})}setTimeout(function(){t(),i()},100),e(document).on("change","#billing_want_invoice",function(){t(),n()}),e(document).on("input","#billing_codice_fiscale",function(){var t=e(this),n=t.val();n.length>16&&t.val(n.substring(0,16)),t.val(t.val().toUpperCase())}),e(document).on("input","#billing_partita_iva",function(){var t=e(this),n=t.val();n.length>11&&t.val(n.substring(0,11))}),e(document).on("blur change","#billing_codice_fiscale, #billing_partita_iva",function(){n()}),e(document).on("checkout_place_order",function(){return n()}),e(document).on("click",'.fc-step__next-step, button[name="woocommerce_checkout_place_order"]',function(t){if(!n())return t.preventDefault(),t.stopPropagation(),e("html, body").animate({scrollTop:e(".woocommerce-invalid").first().offset().top-100},500),!1}),e(document).on("fc_checkout_step_complete",function(){setTimeout(t,100)}),e(document).on("fc_checkout_step_changed",function(){setTimeout(t,100)}),e(document).on("updated_checkout",function(){setTimeout(function(){t(),i()},100)})}),jQuery(document).ready(function(e){function t(){var t=e('.bonelli-invoice-details-thankyou[data-move-to-customer-section="true"]'),n=e('.fc-order-details-section[data-section-id="customer_information"]');if(t.length&&n.length){var i=n.find("address");if(i.length>0){var s=i.last();t.detach().insertAfter(s.parent()),t.removeAttr("data-move-to-customer-section")}}}function n(){const e=document.getElementById("search-filters"),t=document.getElementById("searchform-header");if(!e||!t)return;"undefined"!=typeof jQuery&&jQuery(t).on("input",function(){if(jQuery(this).val().trim().length>0){var e=document.getElementById("relevanssi-live-ajax-search-spinner"),t=e?e.closest(".live-ajax-messages"):null,n=document.querySelector(".ajax-results");n&&n.innerHTML.trim().length>0&&(n.style.display="none"),e&&(e.style.display="block",e.style.visibility="visible",e.style.opacity="1"),t&&(t.style.display="block",t.style.visibility="visible")}});const n=e.querySelectorAll(".search-filter-btn");
2n.forEach(function(e){e.addEventListener("click",function(e){if(e.preventDefault(),e.stopPropagation(),this.getAttribute("data-post-type"),n.forEach(function(e){e.classList.remove("active")}),this.classList.add("active"),t&&t.value.trim().length>0){var i=document.querySelector(".ajax-results"),s=document.getElementById("relevanssi-live-ajax-search-spinner"),o=s?s.closest(".live-ajax-messages"):null;i&&(i.style.display="none"),s&&(s.style.display="block",s.style.visibility="visible",s.style.opacity="1"),o&&(o.style.display="block",o.style.visibility="visible"),"undefined"!=typeof jQuery&&jQuery(t).trigger("input")}})})}setTimeout(t,100),setTimeout(t,500),setTimeout(t,1e3),"undefined"!=typeof jQuery&&jQuery(document).ajaxComplete(function(e,t,n){if(n.url&&-1!==n.url.indexOf("admin-ajax.php")){var i=!1;if(n.data&&("string"==typeof n.data?i=-1!==n.data.indexOf("relevanssi")||-1!==n.data.indexOf("rlvlive"):n.data.action&&(i=-1!==n.data.action.indexOf("relevanssi"))),i){var s=document.querySelector(".ajax-results"),o=document.getElementById("relevanssi-live-ajax-search-spinner"),a=o?o.closest(".live-ajax-messages"):null;setTimeout(function(){o&&(o.style.display="none"),a&&(a.style.display="none"),s&&(s.style.display="block")},100)}}}),"undefined"!=typeof jQuery&&jQuery(document).ajaxSend(function(e,t,n){if(n.url&&-1!==n.url.indexOf("admin-ajax.php")){var i=!1;if(n.data&&("string"==typeof n.data?i=-1!==n.data.indexOf("relevanssi")||-1!==n.data.indexOf("rlvlive"):n.data.action&&(i=-1!==n.data.action.indexOf("relevanssi"))),i){var s=document.getElementById("relevanssi-live-ajax-search-spinner"),o=s?s.closest(".live-ajax-messages"):null,a=document.querySelector(".ajax-results");a&&(a.style.display="none"),s&&(s.style.display="block",s.style.visibility="visible",s.style.opacity="1"),o&&(o.style.display="block",o.style.visibility="visible");var r="all",l=document.querySelector(".search-filter-btn.active");l&&(r=l.getAttribute("data-post-type")||"all"),r&&"all"!==r?"string"==typeof n.data?(n.data=n.data.replace(/&?post_type=[^&]*/g,""),n.data+="&post_type="+encodeURIComponent(r)):"object"==typeof n.data&&(n.data.post_type=r):"string"==typeof n.data?n.data=n.data.replace(/&?post_type=[^&]*/g,""):"object"==typeof n.data&&delete n.data.post_type}}}),n(),jQuery(document).on("click",".search-toggle-btn, .search-icon",function(){setTimeout(n,100)})})},514:()=>{document.addEventListener("DOMContentLoaded",function(){const e=document.getElementById("showFilters");if(e){const t=document.querySelector(".products-grid");t?new IntersectionObserver(t=>{const n=t[0],i=n.isIntersecting,s=n.intersectionRatio;e.style.display=i||s>0?"flex":"none"},{threshold:0,rootMargin:"0px 0px -50px 0px"}).observe(t):e.style.display="flex"}})},647:()=>{document.addEventListener("DOMContentLoaded",function(){"undefined"!=typeof FLBuilder&&FLBuilder.addHook("didRenderNode",function(e){e.find(".accordion-faq-widget").length})})},656:()=>{function e(e,t=document){return t.querySelector(e)}function t(e){return`bonelli_home_overlay_last_seen__${e}`}function n(e){document.documentElement.classList.toggle("bonelli-overlay-lock",!!e),document.body.classList.toggle("bonelli-overlay-lock",!!e)}function i(t){t.classList.remove("is-open"),t.setAttribute("aria-hidden","true"),n(!1);const i=e("[data-bonelli-overlay-content]",t);t.classList.remove("bonelli-home-overlay--image","bonelli-home-overlay--wp_video","bonelli-home-overlay--youtube"),t.querySelectorAll("video").forEach(e=>{try{e.pause(),e.currentTime=0}catch(e){}}),i&&(i.innerHTML="")}document.addEventListener("DOMContentLoaded",()=>{const s=window.bonelliHomeOverlay;if(!s||!s.enabled)return;const o=e("#bonelli-home-overlay");if(!o)return;if(!function({campaignKey:e,frequencyHours:n}){if(!e)return!0;const i=t(e),s=function(e,t=null){try{return JSON.parse(e)}catch(e){return t}}(window.localStorage?.getItem(i),null);return!s||"number"!=typeof s||Date.now()-s>=3600*Math.max(1,Number(n||24))*1e3}(s))return;const a=e("[data-bonelli-overlay-content]",o);if(!a)return;a.innerHTML="",a.appendChild(function(e,t,n,i){const s=document.createElement("div");if(s.className="bonelli-home-overlay__media",!e||!e.type)return s;if("image"===e.type&&e.image&&e.image.url){s.classList.add("bonelli-home-overlay__media--image");const o=document.createElement("img");o.src=e.image.url,o.alt=t||"",o.loading="eager",o.decoding="async";const a=(n||"").trim();if(a){const e=document.createElement("a");e.href=a,e.className="bonelli-home-overlay__image-link",e.setAttribute("aria-label","Apri link"),i&&(e.target="_blank",e.rel="noopener noreferrer"),e.appendChild(o),s.appendChild(e)}else s.appendChild(o);return s}if("wp_video"===e.type&&e.wp_video&&e.wp_video.url){s.classList.add("bonelli-home-overlay__media--wp-video");const t=document.createElement("video");
2return t.src=e.wp_video.url,t.muted=!0,t.autoplay=!0,t.playsInline=!0,t.loop=!0,t.controls=!0,s.appendChild(t),s}if("youtube"===e.type&&e.youtube_id){s.classList.add("bonelli-home-overlay__media--youtube");const t=document.createElement("iframe"),n=e.youtube_id,i=new URLSearchParams({autoplay:"1",mute:"1",controls:"1",rel:"0",playsinline:"1",modestbranding:"1"});return t.src=`https://www.youtube-nocookie.com/embed/${encodeURIComponent(n)}?${i.toString()}`,t.title="YouTube video player",t.setAttribute("allow","autoplay; encrypted-media; picture-in-picture"),t.setAttribute("allowfullscreen",""),t.loading="lazy",s.appendChild(t),s}return s}(s.media,s.alt,s.imageLink,s.imageLinkBlank)),function({campaignKey:e}){if(!e)return;const n=t(e);try{window.localStorage?.setItem(n,JSON.stringify(Date.now()))}catch(e){}}(s);const r=s?.media?.type;"image"!==r&&"wp_video"!==r&&"youtube"!==r||o.classList.add(`bonelli-home-overlay--${r}`),function(e){e.classList.add("is-open"),e.setAttribute("aria-hidden","false"),n(!0)}(o),o.querySelectorAll("[data-bonelli-overlay-close]").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault(),i(o)})}),document.addEventListener("keydown",e=>{"Escape"===e.key&&o.classList.contains("is-open")&&i(o)});const l=Number(s.autoCloseSeconds||0);l>0&&window.setTimeout(()=>{o.classList.contains("is-open")&&i(o)},1e3*l)})}},t={};function n(i){var s=t[i];if(void 0!==s)return s.exports;var o=t[i]={exports:{}};return e[i](o,o.exports,n),o.exports}n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};n.r(e),n.d(e,{afterMain:()=>E,afterRead:()=>y,afterWrite:()=>T,applyStyles:()=>I,arrow:()=>J,auto:()=>r,basePlacements:()=>l,beforeMain:()=>w,beforeRead:()=>v,beforeWrite:()=>S,bottom:()=>s,clippingParents:()=>u,computeStyles:()=>ne,createPopper:()=>Me,createPopperBase:()=>Pe,createPopperLite:()=>Ie,detectOverflow:()=>ve,end:()=>d,eventListeners:()=>se,flip:()=>be,hide:()=>_e,left:()=>a,main:()=>_,modifierPhases:()=>C,offset:()=>Ee,placements:()=>g,popper:()=>m,popperGenerator:()=>Ae,popperOffsets:()=>Se,preventOverflow:()=>xe,read:()=>b,reference:()=>h,right:()=>o,start:()=>c,top:()=>i,variationPlacements:()=>f,viewport:()=>p,write:()=>x});var t={};n.r(t),n.d(t,{Alert:()=>Lt,Button:()=>At,Carousel:()=>dn,Collapse:()=>xn,Dropdown:()=>Un,Modal:()=>Pi,Offcanvas:()=>Yi,Popover:()=>ws,ScrollSpy:()=>Ms,Tab:()=>eo,Toast:()=>go,Tooltip:()=>fs});var i="top",s="bottom",o="right",a="left",r="auto",l=[i,s,o,a],c="start",d="end",u="clippingParents",p="viewport",m="popper",h="reference",f=l.reduce(function(e,t){return e.concat([t+"-"+c,t+"-"+d])},[]),g=[].concat(l,[r]).reduce(function(e,t){return e.concat([t,t+"-"+c,t+"-"+d])},[]),v="beforeRead",b="read",y="afterRead",w="beforeMain",_="main",E="afterMain",S="beforeWrite",x="write",T="afterWrite",C=[v,b,y,w,_,E,S,x,T];function L(e){return e?(e.nodeName||"").toLowerCase():null}function k(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function A(e){return e instanceof k(e).Element||e instanceof Element}function P(e){return e instanceof k(e).HTMLElement||e instanceof HTMLElement}function M(e){return"undefined"!=typeof ShadowRoot&&(e instanceof k(e).ShadowRoot||e instanceof ShadowRoot)}const I={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},s=t.elements[e];
vendor: 30,888 bytes, line 2
2P(s)&&L(s)&&(Object.assign(s.style,n),Object.keys(i).forEach(function(e){var t=i[e];!1===t?s.removeAttribute(e):s.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var i=t.elements[e],s=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});P(i)&&L(i)&&(Object.assign(i.style,o),Object.keys(s).forEach(function(e){i.removeAttribute(e)}))})}},requires:["computeStyles"]};function O(e){return e.split("-")[0]}var D=Math.max,N=Math.min,q=Math.round;function j(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function $(){return!/^((?!chrome|android).)*safari/i.test(j())}function B(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),s=1,o=1;t&&P(e)&&(s=e.offsetWidth>0&&q(i.width)/e.offsetWidth||1,o=e.offsetHeight>0&&q(i.height)/e.offsetHeight||1);var a=(A(e)?k(e):window).visualViewport,r=!$()&&n,l=(i.left+(r&&a?a.offsetLeft:0))/s,c=(i.top+(r&&a?a.offsetTop:0))/o,d=i.width/s,u=i.height/o;return{width:d,height:u,top:c,right:l+d,bottom:c+u,left:l,x:l,y:c}}function z(e){var t=B(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function H(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&M(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function F(e){return k(e).getComputedStyle(e)}function R(e){return["table","td","th"].indexOf(L(e))>=0}function V(e){return((A(e)?e.ownerDocument:e.document)||window.document).documentElement}function G(e){return"html"===L(e)?e:e.assignedSlot||e.parentNode||(M(e)?e.host:null)||V(e)}function W(e){return P(e)&&"fixed"!==F(e).position?e.offsetParent:null}function X(e){for(var t=k(e),n=W(e);n&&R(n)&&"static"===F(n).position;)n=W(n);return n&&("html"===L(n)||"body"===L(n)&&"static"===F(n).position)?t:n||function(e){var t=/firefox/i.test(j());if(/Trident/i.test(j())&&P(e)&&"fixed"===F(e).position)return null;var n=G(e);for(M(n)&&(n=n.host);P(n)&&["html","body"].indexOf(L(n))<0;){var i=F(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}function Y(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function U(e,t,n){return D(e,N(t,n))}function Q(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function K(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}const J={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,c=e.options,d=n.elements.arrow,u=n.modifiersData.popperOffsets,p=O(n.placement),m=Y(p),h=[a,o].indexOf(p)>=0?"height":"width";if(d&&u){var f=function(e,t){return Q("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:K(e,l))}(c.padding,n),g=z(d),v="y"===m?i:a,b="y"===m?s:o,y=n.rects.reference[h]+n.rects.reference[m]-u[m]-n.rects.popper[h],w=u[m]-n.rects.reference[m],_=X(d),E=_?"y"===m?_.clientHeight||0:_.clientWidth||0:0,S=y/2-w/2,x=f[v],T=E-g[h]-f[b],C=E/2-g[h]/2+S,L=U(x,C,T),k=m;n.modifiersData[r]=((t={})[k]=L,t.centerOffset=L-C,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&H(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Z(e){return e.split("-")[1]}var ee={top:"auto",right:"auto",bottom:"auto",left:"auto"};function te(e){var t,n=e.popper,r=e.popperRect,l=e.placement,c=e.variation,u=e.offsets,p=e.position,m=e.gpuAcceleration,h=e.adaptive,f=e.roundOffsets,g=e.isFixed,v=u.x,b=void 0===v?0:v,y=u.y,w=void 0===y?0:y,_="function"==typeof f?f({x:b,y:w}):{x:b,y:w};b=_.x,w=_.y;var E=u.hasOwnProperty("x"),S=u.hasOwnProperty("y"),x=a,T=i,C=window;if(h){var L=X(n),A="clientHeight",P="clientWidth";L===k(n)&&"static"!==F(L=V(n)).position&&"absolute"===p&&(A="scrollHeight",P="scrollWidth"),(l===i||(l===a||l===o)&&c===d)&&(T=s,w-=(g&&L===C&&C.visualViewport?C.visualViewport.height:L[A])-r.height,w*=m?1:-1),l!==a&&(l!==i&&l!==s||c!==d)||(x=o,b-=(g&&L===C&&C.visualViewport?C.visualViewport.width:L[P])-r.width,b*=m?1:-1)}var M,I=Object.assign({position:p},h&&ee),O=!0===f?function(e,t){var n=e.x,i=e.y,s=t.devicePixelRatio||1;return{x:q(n*s)/s||0,y:q(i*s)/s||0}}({x:b,y:w},k(n)):{x:b,y:w};return b=O.x,w=O.y,m?Object.assign({},I,((M={})[T]=S?"0":"",M[x]=E?"0":"",M.transform=(C.devicePixelRatio||1)<=1?"translate("+b+"px, "+w+"px)":"translate3d("+b+"px, "+w+"px, 0)",M)):Object.assign({},I,((t={})[T]=S?w+"px":"",t[x]=E?b+"px":"",t.transform="",t))}const ne={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,s=void 0===i||i,o=n.adaptive,a=void 0===o||o,r=n.roundOffsets,l=void 0===r||r,c={placement:O(t.placement),variation:Z(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,te(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,te(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var ie={passive:!0};const se={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,s=i.scroll,o=void 0===s||s,a=i.resize,r=void 0===a||a,l=k(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(e){e.addEventListener("scroll",n.update,ie)}),r&&l.addEventListener("resize",n.update,ie),function(){o&&c.forEach(function(e){e.removeEventListener("scroll",n.update,ie)}),r&&l.removeEventListener("resize",n.update,ie)}},data:{}};var oe={left:"right",right:"left",bottom:"top",top:"bottom"};function ae(e){return e.replace(/left|right|bottom|top/g,function(e){return oe[e]})}var re={start:"end",end:"start"};function le(e){return e.replace(/start|end/g,function(e){return re[e]})}function ce(e){var t=k(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function de(e){return B(V(e)).left+ce(e).scrollLeft}function ue(e){var t=F(e),n=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+i)}function pe(e){return["html","body","#document"].indexOf(L(e))>=0?e.ownerDocument.body:P(e)&&ue(e)?e:pe(G(e))}function me(e,t){var n;void 0===t&&(t=[]);var i=pe(e),s=i===(null==(n=e.ownerDocument)?void 0:n.body),o=k(i),a=s?[o].concat(o.visualViewport||[],ue(i)?i:[]):i,r=t.concat(a);return s?r:r.concat(me(G(a)))}function he(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function fe(e,t,n){return t===p?he(function(e,t){var n=k(e),i=V(e),s=n.visualViewport,o=i.clientWidth,a=i.clientHeight,r=0,l=0;if(s){o=s.width,a=s.height;var c=$();(c||!c&&"fixed"===t)&&(r=s.offsetLeft,l=s.offsetTop)}return{width:o,height:a,x:r+de(e),y:l}}(e,n)):A(t)?function(e,t){var n=B(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):he(function(e){var t,n=V(e),i=ce(e),s=null==(t=e.ownerDocument)?void 0:t.body,o=D(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),a=D(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),r=-i.scrollLeft+de(e),l=-i.scrollTop;return"rtl"===F(s||n).direction&&(r+=D(n.clientWidth,s?s.clientWidth:0)-o),{width:o,height:a,x:r,y:l}}(V(e)))}function ge(e){var t,n=e.reference,r=e.element,l=e.placement,u=l?O(l):null,p=l?Z(l):null,m=n.x+n.width/2-r.width/2,h=n.y+n.height/2-r.height/2;switch(u){case i:t={x:m,y:n.y-r.height};break;case s:t={x:m,y:n.y+n.height};break;case o:t={x:n.x+n.width,y:h};break;case a:t={x:n.x-r.width,y:h};break;default:t={x:n.x,y:n.y}}var f=u?Y(u):null;if(null!=f){var g="y"===f?"height":"width";switch(p){case c:t[f]=t[f]-(n[g]/2-r[g]/2);break;case d:t[f]=t[f]+(n[g]/2-r[g]/2)}}return t}function ve(e,t){void 0===t&&(t={});var n=t,a=n.placement,r=void 0===a?e.placement:a,c=n.strategy,d=void 0===c?e.strategy:c,f=n.boundary,g=void 0===f?u:f,v=n.rootBoundary,b=void 0===v?p:v,y=n.elementContext,w=void 0===y?m:y,_=n.altBoundary,E=void 0!==_&&_,S=n.padding,x=void 0===S?0:S,T=Q("number"!=typeof x?x:K(x,l)),C=w===m?h:m,k=e.rects.popper,M=e.elements[E?C:w],I=function(e,t,n,i){var s="clippingParents"===t?function(e){var t=me(G(e)),n=["absolute","fixed"].indexOf(F(e).position)>=0&&P(e)?X(e):e;return A(n)?t.filter(function(e){return A(e)&&H(e,n)&&"body"!==L(e)}):[]}(e):[].concat(t),o=[].concat(s,[n]),a=o[0],r=o.reduce(function(t,n){var s=fe(e,n,i);return t.top=D(s.top,t.top),t.right=N(s.right,t.right),t.bottom=N(s.bottom,t.bottom),t.left=D(s.left,t.left),t},fe(e,a,i));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}(A(M)?M:M.contextElement||V(e.elements.popper),g,b,d),O=B(e.elements.reference),q=ge({reference:O,element:k,strategy:"absolute",placement:r}),j=he(Object.assign({},k,q)),$=w===m?j:O,z={top:I.top-$.top+T.top,bottom:$.bottom-I.bottom+T.bottom,left:I.left-$.left+T.left,right:$.right-I.right+T.right},R=e.modifiersData.offset;if(w===m&&R){var W=R[r];Object.keys(z).forEach(function(e){var t=[o,s].indexOf(e)>=0?1:-1,n=[i,s].indexOf(e)>=0?"y":"x";z[e]+=W[n]*t})}return z}const be={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,d=e.name;if(!t.modifiersData[d]._skip){for(var u=n.mainAxis,p=void 0===u||u,m=n.altAxis,h=void 0===m||m,v=n.fallbackPlacements,b=n.padding,y=n.boundary,w=n.rootBoundary,_=n.altBoundary,E=n.flipVariations,S=void 0===E||E,x=n.allowedAutoPlacements,T=t.options.placement,C=O(T),L=v||(C!==T&&S?function(e){if(O(e)===r)return[];var t=ae(e);return[le(e),t,le(t)]}(T):[ae(T)]),k=[T].concat(L).reduce(function(e,n){return e.concat(O(n)===r?function(e,t){void 0===t&&(t={});var n=t,i=n.placement,s=n.boundary,o=n.rootBoundary,a=n.padding,r=n.flipVariations,c=n.allowedAutoPlacements,d=void 0===c?g:c,u=Z(i),p=u?r?f:f.filter(function(e){return Z(e)===u}):l,m=p.filter(function(e){return d.indexOf(e)>=0});0===m.length&&(m=p);var h=m.reduce(function(t,n){return t[n]=ve(e,{placement:n,boundary:s,rootBoundary:o,padding:a})[O(n)],t},{});return Object.keys(h).sort(function(e,t){return h[e]-h[t]})}(t,{placement:n,boundary:y,rootBoundary:w,padding:b,flipVariations:S,allowedAutoPlacements:x}):n)},[]),A=t.rects.reference,P=t.rects.popper,M=new Map,I=!0,D=k[0],N=0;N<k.length;N++){var q=k[N],j=O(q),$=Z(q)===c,B=[i,s].indexOf(j)>=0,z=B?"width":"height",H=ve(t,{placement:q,boundary:y,rootBoundary:w,altBoundary:_,padding:b}),F=B?$?o:a:$?s:i;A[z]>P[z]&&(F=ae(F));var R=ae(F),V=[];if(p&&V.push(H[j]<=0),h&&V.push(H[F]<=0,H[R]<=0),V.every(function(e){return e})){D=q,I=!1;break}M.set(q,V)}if(I)for(var G=function(e){var t=k.find(function(t){var n=M.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return D=t,"break"},W=S?3:1;W>0&&"break"!==G(W);W--);t.placement!==D&&(t.modifiersData[d]._skip=!0,t.placement=D,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ye(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function we(e){return[i,o,s,a].some(function(t){return e[t]>=0})}const _e={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,s=t.rects.popper,o=t.modifiersData.preventOverflow,a=ve(t,{elementContext:"reference"}),r=ve(t,{altBoundary:!0}),l=ye(a,i),c=ye(r,s,o),d=we(l),u=we(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}},Ee={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,s=e.name,r=n.offset,l=void 0===r?[0,0]:r,c=g.reduce(function(e,n){return e[n]=function(e,t,n){var s=O(e),r=[a,i].indexOf(s)>=0?-1:1,l="function"==typeof n?n(Object.assign({},t,{placement:e})):n,c=l[0],d=l[1];return c=c||0,d=(d||0)*r,[a,o].indexOf(s)>=0?{x:d,y:c}:{x:c,y:d}}(n,t.rects,l),e},{}),d=c[t.placement],u=d.x,p=d.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=p),t.modifiersData[s]=c}},Se={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=ge({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},xe={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,l=n.mainAxis,d=void 0===l||l,u=n.altAxis,p=void 0!==u&&u,m=n.boundary,h=n.rootBoundary,f=n.altBoundary,g=n.padding,v=n.tether,b=void 0===v||v,y=n.tetherOffset,w=void 0===y?0:y,_=ve(t,{boundary:m,rootBoundary:h,padding:g,altBoundary:f}),E=O(t.placement),S=Z(t.placement),x=!S,T=Y(E),C="x"===T?"y":"x",L=t.modifiersData.popperOffsets,k=t.rects.reference,A=t.rects.popper,P="function"==typeof w?w(Object.assign({},t.rects,{placement:t.placement})):w,M="number"==typeof P?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,q={x:0,y:0};if(L){if(d){var j,$="y"===T?i:a,B="y"===T?s:o,H="y"===T?"height":"width",F=L[T],R=F+_[$],V=F-_[B],G=b?-A[H]/2:0,W=S===c?k[H]:A[H],Q=S===c?-A[H]:-k[H],K=t.elements.arrow,J=b&&K?z(K):{width:0,height:0},ee=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},te=ee[$],ne=ee[B],ie=U(0,k[H],J[H]),se=x?k[H]/2-G-ie-te-M.mainAxis:W-ie-te-M.mainAxis,oe=x?-k[H]/2+G+ie+ne+M.mainAxis:Q+ie+ne+M.mainAxis,ae=t.elements.arrow&&X(t.elements.arrow),re=ae?"y"===T?ae.clientTop||0:ae.clientLeft||0:0,le=null!=(j=null==I?void 0:I[T])?j:0,ce=F+oe-le,de=U(b?N(R,F+se-le-re):R,F,b?D(V,ce):V);L[T]=de,q[T]=de-F}if(p){var ue,pe="x"===T?i:a,me="x"===T?s:o,he=L[C],fe="y"===C?"height":"width",ge=he+_[pe],be=he-_[me],ye=-1!==[i,a].indexOf(E),we=null!=(ue=null==I?void 0:I[C])?ue:0,_e=ye?ge:he-k[fe]-A[fe]-we+M.altAxis,Ee=ye?he+k[fe]+A[fe]-we-M.altAxis:be,Se=b&&ye?function(e,t,n){var i=U(e,t,n);return i>n?n:i}(_e,he,Ee):U(b?_e:ge,he,b?Ee:be);L[C]=Se,q[C]=Se-he}t.modifiersData[r]=q}},requiresIfExists:["offset"]};function Te(e,t,n){void 0===n&&(n=!1);var i,s,o=P(t),a=P(t)&&function(e){var t=e.getBoundingClientRect(),n=q(t.width)/e.offsetWidth||1,i=q(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),r=V(t),l=B(e,a,n),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(o||!o&&!n)&&(("body"!==L(t)||ue(r))&&(c=(i=t)!==k(i)&&P(i)?{scrollLeft:(s=i).scrollLeft,scrollTop:s.scrollTop}:ce(i)),P(t)?((d=B(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):r&&(d.x=de(r))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function Ce(e){var t=new Map,n=new Set,i=[];function s(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var i=t.get(e);i&&s(i)}}),i.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||s(e)}),i}var Le={placement:"bottom",modifiers:[],strategy:"absolute"};function ke(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function Ae(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,s=t.defaultOptions,o=void 0===s?Le:s;return function(e,t,n){void 0===n&&(n=o);var s,a,r={placement:"bottom",orderedModifiers:[],options:Object.assign({},Le,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,d={state:r,setOptions:function(n){var s="function"==typeof n?n(r.options):n;u(),r.options=Object.assign({},o,r.options,s),r.scrollParents={reference:A(e)?me(e):e.contextElement?me(e.contextElement):[],popper:me(t)};var a,c,p=function(e){var t=Ce(e);return C.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((a=[].concat(i,r.options.modifiers),c=a.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),Object.keys(c).map(function(e){return c[e]})));return r.orderedModifiers=p.filter(function(e){return e.enabled}),r.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,s=e.effect;if("function"==typeof s){var o=s({state:r,name:t,instance:d,options:i});l.push(o||function(){})}}),d.update()},forceUpdate:function(){if(!c){var e=r.elements,t=e.reference,n=e.popper;if(ke(t,n)){r.rects={reference:Te(t,X(n),"fixed"===r.options.strategy),popper:z(n)},r.reset=!1,r.placement=r.options.placement,r.orderedModifiers.forEach(function(e){return r.modifiersData[e.name]=Object.assign({},e.data)});for(var i=0;i<r.orderedModifiers.length;i++)if(!0!==r.reset){var s=r.orderedModifiers[i],o=s.fn,a=s.options,l=void 0===a?{}:a,u=s.name;"function"==typeof o&&(r=o({state:r,options:l,name:u,instance:d})||r)}else r.reset=!1,i=-1}}},update:(s=function(){return new Promise(function(e){d.forceUpdate(),e(r)})},function(){return a||(a=new Promise(function(e){Promise.resolve().then(function(){a=void 0,e(s())})})),a}),destroy:function(){u(),c=!0}};if(!ke(e,t))return d;function u(){l.forEach(function(e){return e()}),l=[]}return d.setOptions(n).then(function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)}),d}}var Pe=Ae(),Me=Ae({defaultModifiers:[se,Se,ne,I,Ee,be,xe,J,_e]}),Ie=Ae({defaultModifiers:[se,Se,ne,I]});const Oe=new Map,De={set(e,t,n){Oe.has(e)||Oe.set(e,new Map);const i=Oe.get(e);i.has(t)||0===i.size?i.set(t,n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(i.keys())[0]}.`)},get:(e,t)=>Oe.has(e)&&Oe.get(e).get(t)||null,remove(e,t){if(!Oe.has(e))return;const n=Oe.get(e);n.delete(t),0===n.size&&Oe.delete(e)}},Ne="transitionend",qe=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),e),je=e=>null==e?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),$e=e=>{e.dispatchEvent(new Event(Ne))},Be=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),ze=e=>Be(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(qe(e)):null,He=e=>{if(!Be(e)||0===e.getClientRects().length)return!1;const t="visible"===getComputedStyle(e).getPropertyValue("visibility"),n=e.closest("details:not([open])");if(!n)return t;if(n!==e){const t=e.closest("summary");if(t&&t.parentNode!==n)return!1;if(null===t)return!1}return t},Fe=e=>!e||e.nodeType!==Node.ELEMENT_NODE||!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")),Re=e=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?Re(e.parentNode):null},Ve=()=>{},Ge=e=>{e.offsetHeight},We=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Xe=[],Ye=()=>"rtl"===document.documentElement.dir,Ue=e=>{var t;t=()=>{const t=We();if(t){const n=e.NAME,i=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=i,e.jQueryInterface)}},"loading"===document.readyState?(Xe.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of Xe)e()}),Xe.push(t)):t()},Qe=(e,t=[],n=e)=>"function"==typeof e?e.call(...t):n,Ke=(e,t,n=!0)=>{if(!n)return void Qe(e);const i=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);const i=Number.parseFloat(t),s=Number.parseFloat(n);return i||s?(t=t.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(n))):0})(t)+5;let s=!1;const o=({target:n})=>{n===t&&(s=!0,t.removeEventListener(Ne,o),Qe(e))};t.addEventListener(Ne,o),setTimeout(()=>{s||$e(t)},i)},Je=(e,t,n,i)=>{const s=e.length;let o=e.indexOf(t);return-1===o?!n&&i?e[s-1]:e[0]:(o+=n?1:-1,i&&(o=(o+s)%s),e[Math.max(0,Math.min(o,s-1))])},Ze=/[^.]*(?=\..*)\.|.*/,et=/\..*/,tt=/::\d+$/,nt={};let it=1;const st={mouseenter:"mouseover",mouseleave:"mouseout"},ot=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function at(e,t){return t&&`${t}::${it++}`||e.uidEvent||it++}function rt(e){const t=at(e);return e.uidEvent=t,nt[t]=nt[t]||{},nt[t]}function lt(e,t,n=null){return Object.values(e).find(e=>e.callable===t&&e.delegationSelector===n)}function ct(e,t,n){const i="string"==typeof t,s=i?n:t||n;let o=mt(e);return ot.has(o)||(o=e),[i,s,o]}function dt(e,t,n,i,s){if("string"!=typeof t||!e)return;let[o,a,r]=ct(t,n,i);if(t in st){const e=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};a=e(a)}const l=rt(e),c=l[r]||(l[r]={}),d=lt(c,a,o?n:null);if(d)return void(d.oneOff=d.oneOff&&s);const u=at(a,t.replace(Ze,"")),p=o?function(e,t,n){return function i(s){const o=e.querySelectorAll(t);for(let{target:a}=s;a&&a!==this;a=a.parentNode)for(const r of o)if(r===a)return ft(s,{delegateTarget:a}),i.oneOff&&ht.off(e,s.type,t,n),n.apply(a,[s])}}(e,n,a):function(e,t){return function n(i){return ft(i,{delegateTarget:e}),n.oneOff&&ht.off(e,i.type,t),t.apply(e,[i])}}(e,a);p.delegationSelector=o?n:null,p.callable=a,p.oneOff=s,p.uidEvent=u,c[u]=p,e.addEventListener(r,p,o)}function ut(e,t,n,i,s){const o=lt(t[n],i,s);o&&(e.removeEventListener(n,o,Boolean(s)),delete t[n][o.uidEvent])}function pt(e,t,n,i){const s=t[n]||{};for(const[o,a]of Object.entries(s))o.includes(i)&&ut(e,t,n,a.callable,a.delegationSelector)}function mt(e){return e=e.replace(et,""),st[e]||e}const ht={on(e,t,n,i){dt(e,t,n,i,!1)},one(e,t,n,i){dt(e,t,n,i,!0)},off(e,t,n,i){if("string"!=typeof t||!e)return;const[s,o,a]=ct(t,n,i),r=a!==t,l=rt(e),c=l[a]||{},d=t.startsWith(".");if(void 0===o){if(d)for(const n of Object.keys(l))pt(e,l,n,t.slice(1));for(const[n,i]of Object.entries(c)){const s=n.replace(tt,"");r&&!t.includes(s)||ut(e,l,a,i.callable,i.delegationSelector)}}else{if(!Object.keys(c).length)return;ut(e,l,a,o,s?n:null)}},trigger(e,t,n){if("string"!=typeof t||!e)return null;const i=We();let s=null,o=!0,a=!0,r=!1;t!==mt(t)&&i&&(s=i.Event(t,n),i(e).trigger(s),o=!s.isPropagationStopped(),a=!s.isImmediatePropagationStopped(),r=s.isDefaultPrevented());const l=ft(new Event(t,{bubbles:o,cancelable:!0}),n);return r&&l.preventDefault(),a&&e.dispatchEvent(l),l.defaultPrevented&&s&&s.preventDefault(),l}};function ft(e,t={}){for(const[n,i]of Object.entries(t))try{e[n]=i}catch(t){Object.defineProperty(e,n,{configurable:!0,get:()=>i})}return e}function gt(e){if("true"===e)return!0;if("false"===e)return!1;if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch(t){return e}}function vt(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const bt={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${vt(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${vt(t)}`)},getDataAttributes(e){if(!e)return{};const t={},n=Object.keys(e.dataset).filter(e=>e.startsWith("bs")&&!e.startsWith("bsConfig"));for(const i of n){let n=i.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1),t[n]=gt(e.dataset[i])}return t},getDataAttribute:(e,t)=>gt(e.getAttribute(`data-bs-${vt(t)}`))};class yt{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const n=Be(t)?bt.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof n?n:{},...Be(t)?bt.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[n,i]of Object.entries(t)){const t=e[n],s=Be(t)?"element":je(t);if(!new RegExp(i).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${s}" but expected type "${i}".`)}}}class wt extends yt{constructor(e,t){super(),(e=ze(e))&&(this._element=e,this._config=this._getConfig(t),De.set(this._element,this.constructor.DATA_KEY,this))}dispose(){De.remove(this._element,this.constructor.DATA_KEY),ht.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,n=!0){Ke(e,t,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return De.get(ze(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.3.7"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const _t=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let n=e.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),t=n&&"#"!==n?n.trim():null}return t?t.split(",").map(e=>qe(e)).join(","):null},Et={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter(e=>e.matches(t)),parents(e,t){const n=[];let i=e.parentNode.closest(t);for(;i;)n.push(i),i=i.parentNode.closest(t);return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(e=>`${e}:not([tabindex^="-"])`).join(",");return this.find(t,e).filter(e=>!Fe(e)&&He(e))},getSelectorFromElement(e){const t=_t(e);return t&&Et.findOne(t)?t:null},getElementFromSelector(e){const t=_t(e);return t?Et.findOne(t):null},getMultipleElementsFromSelector(e){const t=_t(e);return t?Et.find(t):[]}},St=(e,t="hide")=>{const n=`click.dismiss${e.EVENT_KEY}`,i=e.NAME;ht.on(document,n,`[data-bs-dismiss="${i}"]`,function(n){if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),Fe(this))return;const s=Et.getElementFromSelector(this)||this.closest(`.${i}`);e.getOrCreateInstance(s)[t]()})},xt=".bs.alert",Tt=`close${xt}`,Ct=`closed${xt}`;class Lt extends wt{static get NAME(){return"alert"}close(){if(ht.trigger(this._element,Tt).defaultPrevented)return;this._element.classList.remove("show");const e=this._element.classList.contains("fade");this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),ht.trigger(this._element,Ct),this.dispose()}static jQueryInterface(e){return this.each(function(){const t=Lt.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}})}}St(Lt,"close"),Ue(Lt);const kt='[data-bs-toggle="button"]';class At extends wt{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each(function(){const t=At.getOrCreateInstance(this);"toggle"===e&&t[e]()})}}ht.on(document,"click.bs.button.data-api",kt,e=>{e.preventDefault();const t=e.target.closest(kt);At.getOrCreateInstance(t).toggle()}),Ue(At);const Pt=".bs.swipe",Mt=`touchstart${Pt}`,It=`touchmove${Pt}`,Ot=`touchend${Pt}`,Dt=`pointerdown${Pt}`,Nt=`pointerup${Pt}`,qt={endCallback:null,leftCallback:null,rightCallback:null},jt={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class $t extends yt{constructor(e,t){super(),this._element=e,e&&$t.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return qt}static get DefaultType(){return jt}static get NAME(){return"swipe"}dispose(){ht.off(this._element,Pt)}_start(e){this._supportPointerEvents?this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX):this._deltaX=e.touches[0].clientX}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),Qe(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=40)return;const t=e/this._deltaX;this._deltaX=0,t&&Qe(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(ht.on(this._element,Dt,e=>this._start(e)),ht.on(this._element,Nt,e=>this._end(e)),this._element.classList.add("pointer-event")):(ht.on(this._element,Mt,e=>this._start(e)),ht.on(this._element,It,e=>this._move(e)),ht.on(this._element,Ot,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&("pen"===e.pointerType||"touch"===e.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Bt=".bs.carousel",zt=".data-api",Ht="ArrowLeft",Ft="ArrowRight",Rt="next",Vt="prev",Gt="left",Wt="right",Xt=`slide${Bt}`,Yt=`slid${Bt}
2`,Ut=`keydown${Bt}`,Qt=`mouseenter${Bt}`,Kt=`mouseleave${Bt}`,Jt=`dragstart${Bt}`,Zt=`load${Bt}${zt}`,en=`click${Bt}${zt}`,tn="carousel",nn="active",sn=".active",on=".carousel-item",an=sn+on,rn={[Ht]:Wt,[Ft]:Gt},ln={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},cn={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class dn extends wt{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Et.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===tn&&this.cycle()}static get Default(){return ln}static get DefaultType(){return cn}static get NAME(){return"carousel"}next(){this._slide(Rt)}nextWhenVisible(){!document.hidden&&He(this._element)&&this.next()}prev(){this._slide(Vt)}pause(){this._isSliding&&$e(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?ht.one(this._element,Yt,()=>this.cycle()):this.cycle())}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding)return void ht.one(this._element,Yt,()=>this.to(e));const n=this._getItemIndex(this._getActive());if(n===e)return;const i=e>n?Rt:Vt;this._slide(i,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&ht.on(this._element,Ut,e=>this._keydown(e)),"hover"===this._config.pause&&(ht.on(this._element,Qt,()=>this.pause()),ht.on(this._element,Kt,()=>this._maybeEnableCycle())),this._config.touch&&$t.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const e of Et.find(".carousel-item img",this._element))ht.on(e,Jt,e=>e.preventDefault());const e={leftCallback:()=>this._slide(this._directionToOrder(Gt)),rightCallback:()=>this._slide(this._directionToOrder(Wt)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new $t(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=rn[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=Et.findOne(sn,this._indicatorsElement);t.classList.remove(nn),t.removeAttribute("aria-current");const n=Et.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(nn),n.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;const n=this._getActive(),i=e===Rt,s=t||Je(this._getItems(),n,i,this._config.wrap);if(s===n)return;const o=this._getItemIndex(s),a=t=>ht.trigger(this._element,t,{relatedTarget:s,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:o});if(a(Xt).defaultPrevented)return;if(!n||!s)return;const r=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=s;const l=i?"carousel-item-start":"carousel-item-end",c=i?"carousel-item-next":"carousel-item-prev";s.classList.add(c),Ge(s),n.classList.add(l),s.classList.add(l),this._queueCallback(()=>{s.classList.remove(l,c),s.classList.add(nn),n.classList.remove(nn,c,l),this._isSliding=!1,a(Yt)},n,this._isAnimated()),r&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return Et.findOne(an,this._element)}_getItems(){return Et.find(on,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return Ye()?e===Gt?Vt:Rt:e===Gt?Rt:Vt}_orderToDirection(e){return Ye()?e===Vt?Gt:Wt:e===Vt?Wt:Gt}static jQueryInterface(e){return this.each(function(){const t=dn.getOrCreateInstance(this,e);if("number"!=typeof e){if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method n
2amed "${e}"`);t[e]()}}else t.to(e)})}}ht.on(document,en,"[data-bs-slide], [data-bs-slide-to]",function(e){const t=Et.getElementFromSelector(this);if(!t||!t.classList.contains(tn))return;e.preventDefault();const n=dn.getOrCreateInstance(t),i=this.getAttribute("data-bs-slide-to");return i?(n.to(i),void n._maybeEnableCycle()):"next"===bt.getDataAttribute(this,"slide")?(n.next(),void n._maybeEnableCycle()):(n.prev(),void n._maybeEnableCycle())}),ht.on(window,Zt,()=>{const e=Et.find('[data-bs-ride="carousel"]');for(const t of e)dn.getOrCreateInstance(t)}),Ue(dn);const un=".bs.collapse",pn=`show${un}`,mn=`shown${un}`,hn=`hide${un}`,fn=`hidden${un}`,gn=`click${un}.data-api`,vn="show",bn="collapse",yn="collapsing",wn=`:scope .${bn} .${bn}`,_n='[data-bs-toggle="collapse"]',En={parent:null,toggle:!0},Sn={parent:"(null|element)",toggle:"boolean"};class xn extends wt{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const n=Et.find(_n);for(const e of n){const t=Et.getSelectorFromElement(e),n=Et.find(t).filter(e=>e===this._element);null!==t&&n.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return En}static get DefaultType(){return Sn}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];
vendor: 4,067 bytes, line 2
2if(this._config.parent&&(e=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter(e=>e!==this._element).map(e=>xn.getOrCreateInstance(e,{toggle:!1}))),e.length&&e[0]._isTransitioning)return;if(ht.trigger(this._element,pn).defaultPrevented)return;for(const t of e)t.hide();const t=this._getDimension();this._element.classList.remove(bn),this._element.classList.add(yn),this._element.style[t]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=`scroll${t[0].toUpperCase()+t.slice(1)}`;this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(yn),this._element.classList.add(bn,vn),this._element.style[t]="",ht.trigger(this._element,mn)},this._element,!0),this._element.style[t]=`${this._element[n]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(ht.trigger(this._element,hn).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,Ge(this._element),this._element.classList.add(yn),this._element.classList.remove(bn,vn);for(const e of this._triggerArray){const t=Et.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0,this._element.style[e]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(yn),this._element.classList.add(bn),ht.trigger(this._element,fn)},this._element,!0)}_isShown(e=this._element){return e.classList.contains(vn)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=ze(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(_n);for(const t of e){const e=Et.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){const t=Et.find(wn,this._config.parent);return Et.find(e,this._config.parent).filter(e=>!t.includes(e))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const n of e)n.classList.toggle("collapsed",!t),n.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1),this.each(function(){const n=xn.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e]()}})}}ht.on(document,gn,_n,function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();for(const e of Et.getMultipleElementsFromSelector(this))xn.getOrCreateInstance(e,{toggle:!1}).toggle()}),Ue(xn);const Tn="dropdown",Cn=".bs.dropdown",Ln=".data-api",kn="ArrowUp",An="ArrowDown",Pn=`hide${Cn}`,Mn=`hidden${Cn}`,In=`show${Cn}`,On=`shown${Cn}`,Dn=`click${Cn}${Ln}`,Nn=`keydown${Cn}${Ln}`,qn=`keyup${Cn}${Ln}`,jn="show",$n='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Bn=`${$n}.${jn}`,zn=".dropdown-menu",Hn=Ye()?"top-end":"top-start",Fn=Ye()?"top-start":"top-end",Rn=Ye()?"bottom-end":"bottom-start",Vn=Ye()?"bottom-start":"bottom-end",Gn=Ye()?"left-start":"right-start",Wn=Ye()?"right-start":"left-start",Xn={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Yn={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Un extends wt{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=Et.next(this._element,zn)[0]||Et.prev(this._element,zn)[0]||Et.findOne(zn,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Xn}static get DefaultType(){return Yn}static get NAME(){return Tn}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Fe(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!ht.trigger(this._element,In,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".
2navbar-nav"))for(const e of[].concat(...document.body.children))ht.on(e,"mouseover",Ve);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(jn),this._element.classList.add(jn),ht.trigger(this._element,On,e)}}hide(){if(Fe(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!ht.trigger(this._element,Pn,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))ht.off(e,"mouseover",Ve);this._popper&&this._popper.destroy(),this._menu.classList.remove(jn),this._element.classList.remove(jn),this._element.setAttribute("aria-expanded","false"),bt.removeDataAttribute(this._menu,"popper"),ht.trigger(this._element,Mn,e),this._element.focus()}}_getConfig(e){if("object"==typeof(e=super._getConfig(e)).reference&&!Be(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(`${Tn.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){let e=this._element;"parent"===this._config.reference?e=this._parent:Be(this._config.reference)?e=ze(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=Me(e,this._menu,t)}_isShown(){return this._menu.classList.contains(jn)}_getPlacement(){const e=this._parent;if(e.classList.contains("dropend"))return Gn;if(e.classList.contains("dropstart"))return Wn;if(e.classList.contains("dropup-center"))return"top";if(e.classList.contains("dropdown-center"))return"bottom";const t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains("dropup")?t?Fn:Hn:t?Vn:Rn}
vendor: 24,858 bytes, line 2
2_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map(e=>Number.parseInt(e,10)):"function"==typeof e?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(bt.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...Qe(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:t}){const n=Et.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(e=>He(e));n.length&&Je(n,t,e===An,!n.includes(t)).focus()}static jQueryInterface(e){return this.each(function(){const t=Un.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}})}static clearMenus(e){if(2===e.button||"keyup"===e.type&&"Tab"!==e.key)return;const t=Et.find(Bn);for(const n of t){const t=Un.getInstance(n);if(!t||!1===t._config.autoClose)continue;const i=e.composedPath(),s=i.includes(t._menu);if(i.includes(t._element)||"inside"===t._config.autoClose&&!s||"outside"===t._config.autoClose&&s)continue;if(t._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const o={relatedTarget:t._element};"click"===e.type&&(o.clickEvent=e),t._completeHide(o)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),n="Escape"===e.key,i=[kn,An].includes(e.key);if(!i&&!n)return;if(t&&!n)return;e.preventDefault();const s=this.matches($n)?this:Et.prev(this,$n)[0]||Et.next(this,$n)[0]||Et.findOne($n,e.delegateTarget.parentNode),o=Un.getOrCreateInstance(s);if(i)return e.stopPropagation(),o.show(),void o._selectMenuItem(e);o._isShown()&&(e.stopPropagation(),o.hide(),s.focus())}}ht.on(document,Nn,$n,Un.dataApiKeydownHandler),ht.on(document,Nn,zn,Un.dataApiKeydownHandler),ht.on(document,Dn,Un.clearMenus),ht.on(document,qn,Un.clearMenus),ht.on(document,Dn,$n,function(e){e.preventDefault(),Un.getOrCreateInstance(this).toggle()}),Ue(Un);const Qn="backdrop",Kn="show",Jn=`mousedown.bs.${Qn}`,Zn={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},ei={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class ti extends yt{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return Zn}static get DefaultType(){return ei}static get NAME(){return Qn}show(e){if(!this._config.isVisible)return void Qe(e);this._append();const t=this._getElement();this._config.isAnimated&&Ge(t),t.classList.add(Kn),this._emulateAnimation(()=>{Qe(e)})}hide(e){this._config.isVisible?(this._getElement().classList.remove(Kn),this._emulateAnimation(()=>{this.dispose(),Qe(e)})):Qe(e)}dispose(){this._isAppended&&(ht.off(this._element,Jn),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=ze(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),ht.on(e,Jn,()=>{Qe(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){Ke(e,this._getElement(),this._config.isAnimated)}}const ni=".bs.focustrap",ii=`focusin${ni}`,si=`keydown.tab${ni}`,oi="backward",ai={autofocus:!0,trapElement:null},ri={autofocus:"boolean",trapElement:"element"};class li extends yt{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return ai}static get DefaultType(){return ri}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),ht.off(document,ni),ht.on(document,ii,e=>this._handleFocusin(e)),ht.on(document,si,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,ht.off(document,ni))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const n=Et.focusableChildren(t);0===n.length?t.focus():this._lastTabNavDirection===oi?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?oi:"forward")}}const ci=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",di=".sticky-top",ui="padding-right",pi="margin-right";class mi{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,ui,t=>t+e),this._setElementAttributes(ci,ui,t=>t+e),this._setElementAttributes(di,pi,t=>t-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,ui),this._resetElementAttributes(ci,ui),this._resetElementAttributes(di,pi)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,n){const i=this.getWidth();this._applyManipulationCallback(e,e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+i)return;this._saveInitialAttribute(e,t);const s=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${n(Number.parseFloat(s))}px`)})}_saveInitialAttribute(e,t){const n=e.style.getPropertyValue(t);n&&bt.setDataAttribute(e,t,n)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,e=>{const n=bt.getDataAttribute(e,t);null!==n?(bt.removeDataAttribute(e,t),e.style.setProperty(t,n)):e.style.removeProperty(t)})}_applyManipulationCallback(e,t){if(Be(e))t(e);else for(const n of Et.find(e,this._element))t(n)}}const hi=".bs.modal",fi=`hide${hi}`,gi=`hidePrevented${hi}`,vi=`hidden${hi}`,bi=`show${hi}`,yi=`shown${hi}`,wi=`resize${hi}`,_i=`click.dismiss${hi}`,Ei=`mousedown.dismiss${hi}`,Si=`keydown.dismiss${hi}`,xi=`click${hi}.data-api`,Ti="modal-open",Ci="show",Li="modal-static",ki={backdrop:!0,focus:!0,keyboard:!0},Ai={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Pi extends wt{constructor(e,t){super(e,t),this._dialog=Et.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new mi,this._addEventListeners()}static get Default(){return ki}static get DefaultType(){return Ai}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||ht.trigger(this._element,bi,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Ti),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){this._isShown&&!this._isTransitioning&&(ht.trigger(this._element,fi).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Ci),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated())))}dispose(){ht.off(window,hi),ht.off(this._dialog,hi),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new ti({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new li({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const t=Et.findOne(".modal-body",this._dialog);t&&(t.scrollTop=0),Ge(this._element),this._element.classList.add(Ci),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,ht.trigger(this._element,yi,{relatedTarget:e})},this._dialog,this._isAnimated())}_addEventListeners(){ht.on(this._element,Si,e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),ht.on(window,wi,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),ht.on(this._element,Ei,e=>{ht.one(this._element,_i,t=>{this._element===e.target&&this._element===t.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Ti),this._resetAdjustments(),this._scrollBar.reset(),ht.trigger(this._element,vi)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(ht.trigger(this._element,gi).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;"hidden"===t||this._element.classList.contains(Li)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(Li),this._queueCallback(()=>{this._element.classList.remove(Li),this._queueCallback(()=>{this._element.style.overflowY=t},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),n=t>0;if(n&&!e){const e=Ye()?"paddingLeft":"paddingRight";this._element.style[e]=`${t}px`}if(!n&&e){const e=Ye()?"paddingRight":"paddingLeft";this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each(function(){const n=Pi.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e](t)}})}}ht.on(document,xi,'[data-bs-toggle="modal"]',function(e){const t=Et.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),ht.one(t,bi,e=>{e.defaultPrevented||ht.one(t,vi,()=>{He(this)&&this.focus()})});const n=Et.findOne(".modal.show");n&&Pi.getInstance(n).hide(),Pi.getOrCreateInstance(t).toggle(this)}),St(Pi),Ue(Pi);const Mi=".bs.offcanvas",Ii=".data-api",Oi=`load${Mi}${Ii}`,Di="show",Ni="showing",qi="hiding",ji=".offcanvas.show",$i=`show${Mi}`,Bi=`shown${Mi}`,zi=`hide${Mi}`,Hi=`hidePrevented${Mi}`,Fi=`hidden${Mi}`,Ri=`resize${Mi}`,Vi=`click${Mi}${Ii}`,Gi=`keydown.dismiss${Mi}`,Wi={backdrop:!0,keyboard:!0,scroll:!1},Xi={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Yi extends wt{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Wi}static get DefaultType(){return Xi}static get NAME(){return"offcanvas"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||ht.trigger(this._element,$i,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new mi).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Ni),this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Di),this._element.classList.remove(Ni),ht.trigger(this._element,Bi,{relatedTarget:e})},this._element,!0))}hide(){this._isShown&&(ht.trigger(this._element,zi).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(qi),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(Di,qi),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new mi).reset(),ht.trigger(this._element,Fi)},this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=Boolean(this._config.backdrop);return new ti({className:"offcanvas-backdrop",isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?()=>{"static"!==this._config.backdrop?this.hide():ht.trigger(this._element,Hi)}:null})}_initializeFocusTrap(){return new li({trapElement:this._element})}_addEventListeners(){ht.on(this._element,Gi,e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():ht.trigger(this._element,Hi))})}static jQueryInterface(e){return this.each(function(){const t=Yi.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}})}}ht.on(document,Vi,'[data-bs-toggle="offcanvas"]',function(e){const t=Et.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),Fe(this))return;ht.one(t,Fi,()=>{He(this)&&this.focus()});const n=Et.findOne(ji);n&&n!==t&&Yi.getInstance(n).hide(),Yi.getOrCreateInstance(t).toggle(this)}),ht.on(window,Oi,()=>{for(const e of Et.find(ji))Yi.getOrCreateInstance(e).show()}),ht.on(window,Ri,()=>{for(const e of Et.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(e).position&&Yi.getOrCreateInstance(e).hide()}),St(Yi),Ue(Yi);const Ui={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Qi=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Ki=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Ji=(e,t)=>{const n=e.nodeName.toLowerCase();return t.includes(n)?!Qi.has(n)||Boolean(Ki.test(e.nodeValue)):t.filter(e=>e instanceof RegExp).some(e=>e.test(n))},Zi={allowList:Ui,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},es={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},ts={entry:"(string|element|function|null)",selector:"(string|element)"};class ns extends yt{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return Zi}static get DefaultType(){return es}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[t,n]of Object.entries(this._config.content))this._setContent(e,n,t);const t=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&t.classList.add(...n.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,n]of Object.entries(e))super._typeCheckConfig({selector:t,entry:n},ts)}_setContent(e,t,n){const i=Et.findOne(n,e);i&&((t=this._resolvePossibleFunction(t))?Be(t)?this._putElementInTemplate(ze(t),i):this._config.html?i.innerHTML=this._maybeSanitize(t):i.textContent=t:i.remove())}_maybeSanitize(e){return this._config.sanitize?function(e,t,n){if(!e.length)return e;if(n&&"function"==typeof n)return n(e);const i=(new window.DOMParser).parseFromString(e,"text/html"),s=[].concat(...i.body.querySelectorAll("*"));for(const e of s){const n=e.nodeName.toLowerCase();if(!Object.keys(t).includes(n)){e.remove();continue}const i=[].concat(...e.attributes),s=[].concat(t["*"]||[],t[n]||[]);for(const t of i)Ji(t,s)||e.removeAttribute(t.nodeName)}return i.body.innerHTML}(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return Qe(e,[void 0,this])}_putElementInTemplate(e,t){if(this._config.html)return t.innerHTML="",void t.append(e);t.textContent=e.textContent}}const is=new Set(["sanitize","allowList","sanitizeFn"]),ss="fade",os="show",as=".tooltip-inner",rs=".modal",ls="hide.bs.modal",cs="hover",ds="focus",us="click",ps={AUTO:"auto",TOP:"top",RIGHT:Ye()?"left":"right",BOTTOM:"bottom",LEFT:Ye()?"right":"left"},ms={allowList:Ui,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},hs={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class fs extends wt{constructor(e,t){super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return ms}static get DefaultType(){return hs}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),ht.off(this._element.closest(rs),ls,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const e=ht.trigger(this._element,this.constructor.eventName("show")),t=(Re(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();const n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));const{container:i}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(i.append(n),ht.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(n),n.classList.add(os),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))ht.on(e,"mouseover",Ve);this._queueCallback(()=>{ht.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(this._isShown()&&!ht.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(os),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))ht.off(e,"mouseover",Ve);this._activeTrigger[us]=!1,this._activeTrigger[ds]=!1,this._activeTrigger[cs]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),ht.trigger(this._element,this.constructor.eventName("hidden")))},this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(ss,os),t.classList.add(`bs-${this.constructor.NAME}-auto`);const n=(e=>{do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e})(this.constructor.NAME).toString();return t.setAttribute("id",n),this._isAnimated()&&t.classList.add(ss),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new ns({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[as]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(ss)}_isShown(){return this.tip&&this.tip.classList.contains(os)}_createPopper(e){const t=Qe(this._config.placement,[this,e,this._element]),n=ps[t.toUpperCase()];return Me(this._element,e,this._getPopperConfig(n))}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map(e=>Number.parseInt(e,10)):"function"==typeof e?t=>e(t,this._element):e}_resolvePossibleFunction(e){return Qe(e,[this._element,this._element])}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:e=>{this._getTipElement().setAttribute("data-popper-placement",e.state.placement)}}]};return{...t,...Qe(this._config.popperConfig,[void 0,t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if("click"===t)ht.on(this._element,this.constructor.eventName("click"),this._config.selector,e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger[us]=!(t._isShown()&&t._activeTrigger[us]),t.toggle()});else if("manual"!==t){const e=t===cs?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),n=t===cs?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");ht.on(this._element,e,this._config.selector,e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusin"===e.type?ds:cs]=!0,t._enter()}),ht.on(this._element,n,this._config.selector,e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusout"===e.type?ds:cs]=t._element.contains(e.relatedTarget),t._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},ht.on(this._element.closest(rs),ls,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const t=bt.getDataAttributes(this._element);for(const e of Object.keys(t))is.has(e)&&delete t[e];return e={...t,..."object"==typeof e&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=!1===e.container?document.body:ze(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[t,n]of Object.entries(this._config))this.constructor.Default[t]!==n&&(e[t]=n);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const t=fs.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method n
2amed "${e}"`);t[e]()}})}}Ue(fs);const gs=".popover-header",vs=".popover-body",bs={...fs.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},ys={...fs.DefaultType,content:"(null|string|element|function)"};class ws extends fs{static get Default(){return bs}static get DefaultType(){return ys}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[gs]:this._getTitle(),[vs]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const t=ws.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}})}}Ue(ws);const _s=".bs.scrollspy",Es=`activate${_s}`,Ss=`click${_s}`,xs=`load${_s}.data-api`,Ts="active",Cs="[href]",Ls=".nav-link",ks=`${Ls}, .nav-item > ${Ls}, .list-group-item`,As={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Ps={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Ms extends wt{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return As}static get DefaultType(){return Ps}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=ze(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,"string"==typeof e.threshold&&(e.threshold=e.threshold.split(",").map(e=>Number.parseFloat(e))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(ht.off(this._config.target,Ss),ht.on(this._config.target,Ss,Cs,e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const n=this._rootElement||window,i=t.offsetTop-this._element.offsetTop;if(n.scrollTo)return void n.scrollTo({top:i,behavior:"smooth"});n.scrollTop=i}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(e=>this._observerCallback(e),e)}_observerCallback(e){const t=e=>this._targetLinks.get(`#${e.target.id}`),n=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},i=(this._rootElement||document.documentElement).scrollTop,s=i>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=i;for(const o of e){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(o));continue}const e=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(s&&e){if(n(o),!i)return}else s||e||n(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=Et.find(Cs,this._config.target);for(const t of e){if(!t.hash||Fe(t))continue;const e=Et.findOne(decodeURI(t.hash),this._element);He(e)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(Ts),this._activateParents(e),ht.trigger(this._element,Es,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item"))Et.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(Ts);else for(const t of Et.parents(e,".nav, .list-group"))for(const e of Et.prev(t,ks))e.classList.add(Ts)}_clearActiveClass(e){e.classList.remove(Ts);const t=Et.find(`${Cs}.${Ts}`,e);for(const e of t)e.classList.remove(Ts)}static jQueryInterface(e){return this.each(function(){const t=Ms.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method n
2amed "${e}"`);t[e]()}})}}ht.on(window,xs,()=>{for(const e of Et.find('[data-bs-spy="scroll"]'))Ms.getOrCreateInstance(e)}),Ue(Ms);const Is=".bs.tab",Os=`hide${Is}`,Ds=`hidden${Is}`,Ns=`show${Is}`,qs=`shown${Is}`,js=`click${Is}`,$s=`keydown${Is}`,Bs=`load${Is}`,zs="ArrowLeft",Hs="ArrowRight",Fs="ArrowUp",Rs="ArrowDown",Vs="Home",Gs="End",Ws="active",Xs="fade",Ys="show",Us=".dropdown-toggle",Qs=`:not(${Us})`,Ks='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Js=`.nav-link${Qs}, .list-group-item${Qs}, [role="tab"]${Qs}, ${Ks}`,Zs=`.${Ws}[data-bs-toggle="tab"], .${Ws}[data-bs-toggle="pill"], .${Ws}[data-bs-toggle="list"]`;class eo extends wt{constructor(e){super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),ht.on(this._element,$s,e=>this._keydown(e)))}static get NAME(){return"tab"}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),n=t?ht.trigger(t,Os,{relatedTarget:e}):null;ht.trigger(e,Ns,{relatedTarget:t}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){e&&(e.classList.add(Ws),this._activate(Et.getElementFromSelector(e)),this._queueCallback(()=>{"tab"===e.getAttribute("role")?(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),ht.trigger(e,qs,{relatedTarget:t})):e.classList.add(Ys)},e,e.classList.contains(Xs)))}_deactivate(e,t){e&&(e.classList.remove(Ws),e.blur(),this._deactivate(Et.getElementFromSelector(e)),this._queueCallback(()=>{"tab"===e.getAttribute("role")?(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),ht.trigger(e,Ds,{relatedTarget:t})):e.classList.remove(Ys)},e,e.classList.contains(Xs)))}_keydown(e){if(![zs,Hs,Fs,Rs,Vs,Gs].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=this._getChildren().filter(e=>!Fe(e));let n;if([Vs,Gs].includes(e.key))n=t[e.key===Vs?0:t.length-1];else{const i=[Hs,Rs].includes(e.key);n=Je(t,e.target,i,!0)}n&&(n.focus({preventScroll:!0}),eo.getOrCreateInstance(n).show())}_getChildren(){return Et.find(Js,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const e of t)this._setInitialAttributesOnChild(e)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute("aria-selected",t),n!==e&&this._setAttributeIfNotExists(n,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=Et.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const n=this._getOuterElement(e);if(!n.classList.contains("dropdown"))return;const i=(e,i)=>{const s=Et.findOne(e,n);s&&s.classList.toggle(i,t)};i(Us,Ws),i(".dropdown-menu",Ys),n.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,n){e.hasAttribute(t)||e.setAttribute(t,n)}_elemIsActive(e){return e.classList.contains(Ws)}_getInnerElement(e){return e.matches(Js)?e:Et.findOne(Js,e)}
2_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(e){return this.each(function(){const t=eo.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}})}}ht.on(document,js,Ks,function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),Fe(this)||eo.getOrCreateInstance(this).show()}),ht.on(window,Bs,()=>{for(const e of Et.find(Zs))eo.getOrCreateInstance(e)}),Ue(eo);const to=".bs.toast",no=`mouseover${to}`,io=`mouseout${to}`,so=`focusin${to}`,oo=`focusout${to}`,ao=`hide${to}`,ro=`hidden${to}`,lo=`show${to}`,co=`shown${to}`,uo="hide",po="show",mo="showing",ho={animation:"boolean",autohide:"boolean",delay:"number"},fo={animation:!0,autohide:!0,delay:5e3};class go extends wt{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return fo}static get DefaultType(){return ho}static get NAME(){return"toast"}show(){ht.trigger(this._element,lo).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(uo),Ge(this._element),this._element.classList.add(po,mo),this._queueCallback(()=>{this._element.classList.remove(mo),ht.trigger(this._element,co),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this.isShown()&&(ht.trigger(this._element,ao).defaultPrevented||(this._element.classList.add(mo),this._queueCallback(()=>{this._element.classList.add(uo),this._element.classList.remove(mo,po),ht.trigger(this._element,ro)},this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(po),super.dispose()}isShown(){return this._element.classList.contains(po)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)return void this._clearTimeout();const n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){ht.on(this._element,no,e=>this._onInteraction(e,!0)),ht.on(this._element,io,e=>this._onInteraction(e,!1)),ht.on(this._element,so,e=>this._onInteraction(e,!0)),ht.on(this._element,oo,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const t=go.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}})}}function vo(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function bo(e,t){void 0===e&&(e={}),void 0===t&&(t={});const n=["__proto__","constructor","prototype"];Object.keys(t).filter(e=>n.indexOf(e)<0).forEach(n=>{void 0===e[n]?e[n]=t[n]:vo(t[n])&&vo(e[n])&&Object.keys(t[n]).length>0&&bo(e[n],t[n])})}St(go),Ue(go),n(421);const yo={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function wo(){const e="undefined"!=typeof document?document:{};return bo(e,yo),e}const _o={document:yo,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function Eo(){const e="undefined"!=typeof window?window:{};return bo(e,_o),e}function So(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function xo(){return Date.now()}function To(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function Co(e){return"undefined"!=typeof window&&void 0!==window.HTMLElement?e instanceof HTMLElement:e&&(1===e.nodeType||11===e.nodeType)}function Lo(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let n=1;n<arguments.length;n+=1){const i=n<0||arguments.length<=n?void 0:arguments[n];if(null!=i&&!Co(i)){const n=Object.keys(Object(i)).filter(e=>t.indexOf(e)<0);for(let t=0,s=n.length;t<s;t+=1){const s=n[t],o=Object.getOwnPropertyDescriptor(i,s);void 0!==o&&o.enumerable&&(To(e[s])&&To(i[s])?i[s].__swiper__?e[s]=i[s]:Lo(e[s],i[s]):!To(e[s])&&To(i[s])?(e[s]={}
vendor: 8,837 bytes, line 2
2,i[s].__swiper__?e[s]=i[s]:Lo(e[s],i[s])):e[s]=i[s])}}}return e}function ko(e,t,n){e.style.setProperty(t,n)}function Ao(e){let{swiper:t,targetPosition:n,side:i}=e;const s=Eo(),o=-t.translate;let a,r=null;const l=t.params.speed;t.wrapperEl.style.scrollSnapType="none",s.cancelAnimationFrame(t.cssModeFrameID);const c=n>o?"next":"prev",d=(e,t)=>"next"===c&&e>=t||"prev"===c&&e<=t,u=()=>{a=(new Date).getTime(),null===r&&(r=a);const e=Math.max(Math.min((a-r)/l,1),0),c=.5-Math.cos(e*Math.PI)/2;let p=o+c*(n-o);if(d(p,n)&&(p=n),t.wrapperEl.scrollTo({[i]:p}),d(p,n))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[i]:p})}),void s.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=s.requestAnimationFrame(u)};u()}function Po(e,t){void 0===t&&(t="");const n=Eo(),i=[...e.children];return n.HTMLSlotElement&&e instanceof HTMLSlotElement&&i.push(...e.assignedElements()),t?i.filter(e=>e.matches(t)):i}function Mo(e){try{return void console.warn(e)}catch(e){}}function Io(e,t){void 0===t&&(t=[]);const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:function(e){return void 0===e&&(e=""),e.trim().split(" ").filter(e=>!!e.trim())}(t)),n}function Oo(e,t){return Eo().getComputedStyle(e,null).getPropertyValue(t)}function Do(e){let t,n=e;if(n){for(t=0;null!==(n=n.previousSibling);)1===n.nodeType&&(t+=1);return t}}function No(e,t){const n=[];let i=e.parentElement;for(;i;)t?i.matches(t)&&n.push(i):n.push(i),i=i.parentElement;return n}function qo(e,t){t&&e.addEventListener("transitionend",function n(i){i.target===e&&(t.call(e,i),e.removeEventListener("transitionend",n))})}function jo(e,t,n){const i=Eo();return n?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(i.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(i.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}function $o(e){return(Array.isArray(e)?e:[e]).filter(e=>!!e)}function Bo(e,t){void 0===t&&(t=""),"undefined"!=typeof trustedTypes?e.innerHTML=trustedTypes.createPolicy("html",{createHTML:e=>e}).createHTML(t):e.innerHTML=t}let zo,Ho,Fo;function Ro(){return zo||(zo=function(){const e=Eo(),t=wo();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),zo}function Vo(e){return void 0===e&&(e={}),Ho||(Ho=function(e){let{userAgent:t}=void 0===e?{}:e;const n=Ro(),i=Eo(),s=i.navigator.platform,o=t||i.navigator.userAgent,a={ios:!1,android:!1},r=i.screen.width,l=i.screen.height,c=o.match(/(Android);?[\s\/]+([\d.]+)?/);let d=o.match(/(iPad).*OS\s([\d_]+)/);const u=o.match(/(iPod)(.*OS\s([\d_]+))?/),p=!d&&o.match(/(iPhone\sOS|iOS)\s([\d_]+)/),m="Win32"===s;let h="MacIntel"===s;return!d&&h&&n.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${r}x${l}`)>=0&&(d=o.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),h=!1),c&&!m&&(a.os="android",a.android=!0),(d||p||u)&&(a.os="ios",a.ios=!0),a}(e)),Ho}function Go(){return Fo||(Fo=function(){const e=Eo(),t=Vo();let n=!1;function i(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(i()){const t=String(e.navigator.userAgent);if(t.includes("Version/")){const[e,i]=t.split("Version/")[1].split(" ")[0].split(".").map(e=>Number(e));n=e<16||16===e&&i<2}}const s=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),o=i();return{isSafari:n||o,needPerspectiveFix:n,need3dFix:o||s&&t.ios,isWebView:s}}()),Fo}var Wo={on(e,t,n){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof t)return i;const s=n?"unshift":"push";return e.split(" ").forEach(e=>{i.eventsListeners[e]||(i.eventsListeners[e]=[]),i.eventsListeners[e][s](t)}),i},once(e,t,n){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof t)return i;function s(){i.off(e,s),s.__emitterProxy&&delete s.__emitterProxy;for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];t.apply(i,o)}return s.__emitterProxy=t,i.on(e,s,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof e)return n;const i=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[i](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed?n:n.eventsListeners?(e.split(" ").forEach(e=>{void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach((i,s)=>{(i===t||i.__emitterProxy&&i.__emitterProxy===t)&&n.eventsListeners[e].splice(s,1)})}),n):n},emit(){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsListeners)return e;let t,n,i;for(var s=arguments.length,o=new Array(s),a=0;a<s;a++)o[a]=arguments[a];return"string"==typeof o[0]||Array.isArray(o[0])?(t=o[0],n=o.slice(1,o.length),i=e):(t=o[0].events,n=o[0].data,i=o[0].context||e),n.unshift(i),(Array.isArray(t)?t:t.split(" ")).forEach(t=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(e=>{e.apply(i,[t,...n])}),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach(e=>{e.apply(i,n)})}),e}};const Xo=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)},Yo=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)},Uo=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(n){let t=n.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(n.shadowRoot?t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),t&&t.remove())})),t&&t.remove()}},Qo=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},Ko=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const i="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),s=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const n=s,o=[n-t];return o.push(...Array.from({length:t}).map((e,t)=>n+i+t)),void e.slides.forEach((t,n)=>{o.includes(t.column)&&Qo(e,n)})}const o=s+i-1;if(e.params.rewind||e.params.loop)for(let i=s-t;i<=o+t;i+=1){const t=(i%n+n)%n;(t<s||t>o)&&Qo(e,t)}else for(let i=Math.max(s-t,0);i<=Math.min(o+t,n-1);i+=1)i!==s&&(i>o||i<s)&&Qo(e,i)};var Jo={updateSize:function(){const e=this;let t,n;const i=e.el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:i.clientWidth,n=void 0!==e.params.height&&null!==e.params.height?e.params.height:i.clientHeight,0===t&&e.isHorizontal()||0===n&&e.isVertical()||(t=t-parseInt(Oo(i,"padding-left")||0,10)-parseInt(Oo(i,"padding-right")||0,10),n=n-parseInt(Oo(i,"padding-top")||0,10)-parseInt(Oo(i,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))},updateSlides:function(){const e=this;function t(t,n){return parseFloat(t.getPropertyValue(e.getDirectionLabel(n))||0)}const n=e.params,{wrapperEl:i,slidesEl:s,size:o,rtlTranslate:a,wrongRTL:r}=e,l=e.virtual&&n.virtual.enabled,c=l?e.virtual.slides.length:e.slides.length,d=Po(s,`.${e.params.slideClass}, swiper-slide`),u=l?e.virtual.slides.length:d.length;let p=[];const m=[],h=[];let f=n.slidesOffsetBefore;"function"==typeof f&&(f=n.slidesOffsetBefore.call(e));let g=n.slidesOffsetAfter;"function"==typeof g&&(g=n.slidesOffsetAfter.call(e));const v=e.snapGrid.length,b=e.slidesGrid.length;let y=n.spaceBetween,w=-f,_=0,E=0;if(void 0===o)return;"string"==typeof y&&y.indexOf("%")>=0?y=parseFloat(y.replace("%",""))/100*o:"string"==typeof y&&(y=parseFloat(y)),e.virtualSize=-y,d.forEach(e=>{a?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(ko(i,"--swiper-centered-offset-before",""),ko(i,"--swiper-centered-offset-after",""));const S=n.grid&&n.grid.rows>1&&e.grid;let x;S?e.grid.initSlides(d):e.grid&&e.grid.unsetSlides();const T="auto"===n.slidesPerView&&n.breakpoints&&Object.keys(n.breakpoints).filter(e=>void 0!==n.breakpoints[e].slidesPerView).length>0;for(let i=0;i<u;i+=1){let s;if(x=0,d[i]&&(s=d[i]),S&&e.grid.updateSlide(i,s,d),!d[i]||"none"!==Oo(s,"dis
2play")){if("auto"===n.slidesPerView){T&&(d[i].style[e.getDirectionLabel("width")]="");const o=getComputedStyle(s),a=s.style.transform,r=s.style.webkitTransform;if(a&&(s.style.transform="none"),r&&(s.style.webkitTransform="none"),n.roundLengths)x=e.isHorizontal()?jo(s,"width",!0):jo(s,"height",!0);else{const e=t(o,"width"),n=t(o,"padding-left"),i=t(o,"padding-right"),a=t(o,"margin-left"),r=t(o,"margin-right"),l=o.getPropertyValue("box-sizing");if(l&&"border-box"===l)x=e+a+r;else{const{clientWidth:t,offsetWidth:o}=s;x=e+n+i+a+r+(o-t)}}a&&(s.style.transform=a),r&&(s.style.webkitTransform=r),n.roundLengths&&(x=Math.floor(x))}else x=(o-(n.slidesPerView-1)*y)/n.slidesPerView,n.roundLengths&&(x=Math.floor(x)),d[i]&&(d[i].style[e.getDirectionLabel("width")]=`${x}px`);d[i]&&(d[i].swiperSlideSize=x),h.push(x),n.centeredSlides?(w=w+x/2+_/2+y,0===_&&0!==i&&(w=w-o/2-y),0===i&&(w=w-o/2-y),Math.abs(w)<.001&&(w=0),n.roundLengths&&(w=Math.floor(w)),E%n.slidesPerGroup===0&&p.push(w),m.push(w)):(n.roundLengths&&(w=Math.floor(w)),(E-Math.min(e.params.slidesPerGroupSkip,E))%e.params.slidesPerGroup===0&&p.push(w),m.push(w),w=w+x+y),e.virtualSize+=x+y,_=x,E+=1}}if(e.virtualSize=Math.max(e.virtualSize,o)+g,a&&r&&("slide"===n.effect||"coverflow"===n.effect)&&(i.style.width=`${e.virtualSize+y}px`),n.setWrapperSize&&(i.style[e.getDirectionLabel("width")]=`${e.virtualSize+y}px`),S&&e.grid.updateWrapperSize(x,p),!n.centeredSlides){const t=[];for(let i=0;i<p.length;i+=1){let s=p[i];n.roundLengths&&(s=Math.floor(s)),p[i]<=e.virtualSize-o&&t.push(s)}p=t,Math.floor(e.virtualSize-o)-Math.floor(p[p.length-1])>1&&p.push(e.virtualSize-o)}if(l&&n.loop){const t=h[0]+y;if(n.slidesPerGroup>1){const i=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),s=t*n.slidesPerGroup;for(let e=0;e<i;e+=1)p.push(p[p.length-1]+s)}for(let i=0;i<e.virtual.slidesBefore+e.virtual.slidesAfter;i+=1)1===n.slidesPerGroup&&p.push(p[p.length-1]+t),m.push(m[m.length-1]+t),e.virtualSize+=t}if(0===p.length&&(p=[0]),0!==y){const t=e.isHorizontal()&&a?"marginLeft":e.getDirectionLabel("marginRight");d.filter((e,t)=>!(n.cssMode&&!n.loop)||t!==d.length-1).forEach(e=>{e.style[t]=`${y}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let e=0;h.forEach(t=>{e+=t+(y||0)}),e-=y;const t=e>o?e-o:0;p=p.map(e=>e<=0?-f:e>t?t+g:e)}if(n.centerInsufficientSlides){let e=0;h.forEach(t=>{e+=t+(y||0)}),e-=y;const t=(n.slidesOffsetBefore||0)+(n.slidesOffsetAfter||0);if(e+t<o){const n=(o-e-t)/2;p.forEach((e,t)=>{p[t]=e-n}),m.forEach((e,t)=>{m[t]=e+n})}}if(Object.assign(e,{slides:d,snapGrid:p,slidesGrid:m,slidesSizesGrid:h}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){ko(i,"--swiper-centered-offset-before",-p[0]+"px"),ko(i,"--swiper-centered-offset-after",e.size/2-h[h.length-1]/2+"px");const t=-e.snapGrid[0],n=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(e=>e+t),e.slidesGrid=e.slidesGrid.map(e=>e+n)}if(u!==c&&e.emit("slidesLengthChange"),p.length!==v&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),m.length!==b&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!(l||n.cssMode||"slide"!==n.effect&&"fade"!==n.effect)){const t=`${n.containerModifierClass}backface-hidden`,i=e.el.classList.contains(t);u<=n.maxBackfaceHiddenSlides?i||e.el.classList.add(t):i&&e.el.classList.remove(t)}},updateAutoHeight:function(e){const t=this,n=[],i=t.virtual&&t.params.virtual.enabled;let s,o=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const a=e=>i?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(e=>{n.push(e)});else for(s=0;s<Math.ceil(t.params.slidesPerView);s+=1){const e=t.activeIndex+s;if(e>t.slides.length&&!i)break;n.push(a(e))}else n.push(a(t.activeIndex));for(s=0;s<n.length;s+=1)if(void 0!==n[s]){const e=n[s].offsetHeight;o=e>o?e:o}(o||0===o)&&(t.wrapperEl.style.height=`${o}px`)},updateSlidesOffset:function(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let i=0;i<t.length;i+=1)t[i].swiperSlideOffset=(e.isHorizontal()?t[i].offsetLeft:t[i].offsetTop)-n-e.cssOverflowAdjustment()},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);const t=this,n=t.params,{slides:i,rtlTranslate:s,snapGrid:o}=t;if(0===i.length)return;void 0===i[0].swiperSlideOffset&&t.updateSlidesOffset();let a=-e;s&&(a=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let r=n.spaceBetween;"string"==typeof r&&r.indexOf("%")>=0?r=parseFloat(r.replace("%",""))/100*t.size:"string"==typeof r&&(r=parseFloat(r));for(let e=0;e<i.length;e+=1){const l=i[e];let c=l.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(c-=i[0].swiperSlideOffset);const d=(a+(n.centeredSlides?t.minTranslate():0)-c)/(l.swiperSlideSize+r),u=(a-o[0]+(n.centeredSlides?t.minTranslate():0)-c)/(l.swiperSlideSize+r),p=-(a-c),m=p+t.slidesSizesGrid[e],h=p>=0&&p<=t.size-t.slidesSizesGrid[e],f=p>=0&&p<t.size-1||m>1&&m<=t.size||p<=0&&m>=t.size;f&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(e)),Xo(l,f,n.slideVisibleClass),Xo(l,h,n.slideFullyVisibleClass),l.progress=s?-d:d,l.originalProgress=s?-u:u}},updateProgress:function(e){const t=this;if(void 0===e){const n=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*n||0}const n=t.params,i=t.maxTranslate()-t.minTranslate();let{progress:s,isBeginning:o,isEnd:a,progressLoop:r}=t;const l=o,c=a;if(0===i)s=0,o=!0,a=!0;else{s=(e-t.minTranslate())/i;const n=Math.abs(e-t.minTranslate())<1,r=Math.abs(e-t.maxTranslate())<1;o=n||s<=0,a=r||s>=1,n&&(s=0),r&&(s=1)}if(n.loop){const n=t.getSlideIndexByData(0),i=t.getSlideIndexByData(t.slides.length-1),s=t.slidesGrid[n],o=t.slidesGrid[i],a=t.slidesGrid[t.slidesGrid.length-1],l=Math.abs(e);r=l>=s?(l-s)/a:(l+a-o)/a,r>1&&(r-=1)}Object.assign(t,{progress:s,progressLoop:r,isBeginning:o,isEnd:a}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),o&&!l&&t.emit("reachBeginning toEdge"),a&&!c&&t.emit("reachEnd toEdge"),(l&&!o||c&&!a)&&t.emit("fromEdge"),t.emit("progress",s)},updateSlidesClasses:function(){const e=this,{slides:t,params:n,slidesEl:i,activeIndex:s}=e,o=e.virtual&&n.virtual.enabled,a=e.grid&&n.grid&&n.grid.rows>1,r=e=>Po(i,`.${n.slideClass}${e}, swiper-slide${e}`)[0];let l,c,d;if(o)if(n.loop){let t=s-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),l=r(`[data-swiper-slide-index="${t}"]`)}else l=r(`[data-swiper-slide-index="${s}"]`);else a?(l=t.find(e=>e.column===s),d=t.find(e=>e.column===s+1),c=t.find(e=>e.column===s-1)):l=t[s];l&&(a||(d=function(e,t){const n=[];for(;e.nextElementSibling;){const i=e.nextElementSibling;t?i.matches(t)&&n.push(i):n.push(i),e=i}return n}(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!d&&(d=t[0]),c=function(e,t){const n=[];for(;e.previousElementSibling;){const i=e.previousElementSibling;t?i.matches(t)&&n.push(i):n.push(i),e=i}return n}(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&0===!c&&(c=t[t.length-1]))),t.forEach(e
vendor: 10,485 bytes, line 2
2=>{Yo(e,e===l,n.slideActiveClass),Yo(e,e===d,n.slideNextClass),Yo(e,e===c,n.slidePrevClass)}),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:i,params:s,activeIndex:o,realIndex:a,snapIndex:r}=t;let l,c=e;const d=e=>{let n=e-t.virtual.slidesBefore;return n<0&&(n=t.virtual.slides.length+n),n>=t.virtual.slides.length&&(n-=t.virtual.slides.length),n};if(void 0===c&&(c=function(e){const{slidesGrid:t,params:n}=e,i=e.rtlTranslate?e.translate:-e.translate;let s;for(let e=0;e<t.length;e+=1)void 0!==t[e+1]?i>=t[e]&&i<t[e+1]-(t[e+1]-t[e])/2?s=e:i>=t[e]&&i<t[e+1]&&(s=e+1):i>=t[e]&&(s=e);return n.normalizeSlideIndex&&(s<0||void 0===s)&&(s=0),s}(t)),i.indexOf(n)>=0)l=i.indexOf(n);else{const e=Math.min(s.slidesPerGroupSkip,c);l=e+Math.floor((c-e)/s.slidesPerGroup)}if(l>=i.length&&(l=i.length-1),c===o&&!t.params.loop)return void(l!==r&&(t.snapIndex=l,t.emit("snapIndexChange")));if(c===o&&t.params.loop&&t.virtual&&t.params.virtual.enabled)return void(t.realIndex=d(c));const u=t.grid&&s.grid&&s.grid.rows>1;let p;if(t.virtual&&s.virtual.enabled&&s.loop)p=d(c);else if(u){const e=t.slides.find(e=>e.column===c);let n=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(n)&&(n=Math.max(t.slides.indexOf(e),0)),p=Math.floor(n/s.grid.rows)}else if(t.slides[c]){const e=t.slides[c].getAttribute("data-swiper-slide-index");p=e?parseInt(e,10):c}else p=c;Object.assign(t,{previousSnapIndex:r,snapIndex:l,previousRealIndex:a,realIndex:p,previousIndex:o,activeIndex:c}),t.initialized&&Ko(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(a!==p&&t.emit("realIndexChange"),t.emit("slideChange"))},updateClickedSlide:function(e,t){const n=this,i=n.params;let s=e.closest(`.${i.slideClass}, swiper-slide`);!s&&n.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(e=>{!s&&e.matches&&e.matches(`.${i.slideClass}, swiper-slide`)&&(s=e)});let o,a=!1;if(s)for(let e=0;e<n.slides.length;e+=1)if(n.slides[e]===s){a=!0,o=e;break}if(!s||!a)return n.clickedSlide=void 0,void(n.clickedIndex=void 0);n.clickedSlide=s,n.virtual&&n.params.virtual.enabled?n.clickedIndex=parseInt(s.getAttribute("data-swiper-slide-index"),10):n.clickedIndex=o,i.slideToClickedSlide&&void 0!==n.clickedIndex&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}};function Zo(e){let{swiper:t,runCallbacks:n,direction:i,step:s}=e;const{activeIndex:o,previousIndex:a}=t;let r=i;r||(r=o>a?"next":o<a?"prev":"reset"),t.emit(`transition${s}`),n&&"reset"===r?t.emit(`slideResetTransition${s}`):n&&o!==a&&(t.emit(`slideChangeTransition${s}`),"next"===r?t.emit(`slideNextTransition${s}`):t.emit(`slidePrevTransition${s}`))}var ea={slideTo:function(e,t,n,i,s){void 0===e&&(e=0),void 0===n&&(n=!0),"string"==typeof e&&(e=parseInt(e,10));const o=this;let a=e;a<0&&(a=0);const{params:r,snapGrid:l,slidesGrid:c,previousIndex:d,activeIndex:u,rtlTranslate:p,wrapperEl:m,enabled:h}=o;if(!h&&!i&&!s||o.destroyed||o.animating&&r.preventInteractionOnTransition)return!1;void 0===t&&(t=o.params.speed);const f=Math.min(o.params.slidesPerGroupSkip,a);let g=f+Math.floor((a-f)/o.params.slidesPerGroup);g>=l.length&&(g=l.length-1);const v=-l[g];if(r.normalizeSlideIndex)for(let e=0;e<c.length;e+=1){const t=-Math.floor(100*v),n=Math.floor(100*c[e]),i=Math.floor(100*c[e+1]);void 0!==c[e+1]?t>=n&&t<i-(i-n)/2?a=e:t>=n&&t<i&&(a=e+1):t>=n&&(a=e)}if(o.initialized&&a!==u){if(!o.allowSlideNext&&(p?v>o.translate&&v>o.minTranslate():v<o.translate&&v<o.minTranslate()))return!1;if(!o.allowSlidePrev&&v>o.translate&&v>o.maxTranslate()&&(u||0)!==a)return!1}let b;a!==(d||0)&&n&&o.emit("beforeSlideChangeStart"),o.updateProgress(v),b=a>u?"next":a<u?"prev":"reset";const y=o.virtual&&o.params.virtual.enabled;if((!y||!s)&&(p&&-v===o.translate||!p&&v===o.translate))return o.updateActiveIndex(a),r.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),"slide"!==r.effect&&o.setTranslate(v),"reset"!==b&&(o.transitionStart(n,b),o.transitionEnd(n,b)),!1;if(r.cssMode){const e=o.isHorizontal(),n=p?v:-v;if(0===t)y&&(o.wrapperEl.style.scrollSnapType="none",o._immediateVirtual=!0),y&&!o._cssModeVirtualInitialSet&&o.params.initialSlide>0?(o._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{m[e?"scrollLeft":"scrollTop"]=n})):m[e?"scrollLeft":"scrollTop"]=n,y&&requestAnimationFrame(()=>{o.wrapperEl.style.scrollSnapType="",o._immediateVirtual=!1});else{if(!o.support.smoothScroll)return Ao({swiper:o,targetPosition:n,side:e?"left":"top"}),!0;m.scrollTo({[e?"left":"top"]:n,behavior:"smooth"})}return!0}const w=Go().isSafari;return y&&!s&&w&&o.isElement&&o.virtual.update(!1,!1,a),o.setTransition(t),o.setTranslate(v),o.updateActiveIndex(a),o.updateSlidesClasses(),o.emit("beforeTransitionStart",t,i),o.transitionStart(n,b),0===t?o.transitionEnd(n,b):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(e){o&&!o.destroyed&&e.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(n,b))}),o.wrapperEl.addEventListener("transitionend",o.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,n,i){void 0===e&&(e=0),void 0===n&&(n=!0),"string"==typeof e&&(e=parseInt(e,10));const s=this;if(s.destroyed)return;void 0===t&&(t=s.params.speed);const o=s.grid&&s.params.grid&&s.params.grid.rows>1;let a=e;if(s.params.loop)if(s.virtual&&s.params.virtual.enabled)a+=s.virtual.slidesBefore;else{let e;if(o){const t=a*s.params.grid.rows;e=s.slides.find(e=>1*e.getAttribute("data-swiper-slide-index")===t).column}else e=s.getSlideIndexByData(a);const t=o?Math.ceil(s.slides.length/s.params.grid.rows):s.slides.length,{centeredSlides:n}=s.params;let r=s.params.slidesPerView;"auto"===r?r=s.slidesPerViewDynamic():(r=Math.ceil(parseFloat(s.params.slidesPerView,10)),n&&r%2==0&&(r+=1));let l=t-e<r;if(n&&(l=l||e<Math.ceil(r/2)),i&&n&&"auto"!==s.params.slidesPerView&&!o&&(l=!1),l){const i=n?e<s.activeIndex?"prev":"next":e-s.activeIndex-1<s.params.slidesPerView?"next":"prev";s.loopFix({direction:i,slideTo:!0,activeSlideIndex:"next"===i?e+1:e-t+1,slideRealIndex:"next"===i?s.realIndex:void 0})}if(o){const e=a*s.params.grid.rows;a=s.slides.find(t=>1*t.getAttribute("data-swiper-slide-index")===e).column}else a=s.getSlideIndexByData(a)}return requestAnimationFrame(()=>{s.slideTo(a,t,n,i)}),s},slideNext:function(e,t,n){void 0===t&&(t=!0);const i=this,{enabled:s,params:o,animating:a}=i;if(!s||i.destroyed)return i;void 0===e&&(e=i.params.speed);let r=o.slidesPerGroup;"auto"===o.slidesPerView&&1===o.slidesPerGroup&&o.slidesPerGroupAuto&&(r=Math.max(i.slidesPerViewDynamic("current",!0),1));const l=i.activeIndex<o.slidesPerGroupSkip?1:r,c=i.virtual&&o.virtual.enabled;if(o.loop){if(a&&!c&&o.loopPreventsSliding)return!1;if(i.loopFix({direction:"next"}),i._clientLeft=i.wrapperEl.clientLeft,i.activeIndex===i.slides.length-1&&o.cssMode)return requestAnimationFrame(()=>{i.slideTo(i.activeIndex+l,e,t,n)}),!0}return o.rewind&&i.isEnd?i.slideTo(0,e,t,n):i.slideTo(i.activeIndex+l,e,t,n)},slidePrev:function(e,t,n){void 0===t&&(t=!0);const i=this,{params:s,snapGrid:o,slidesGrid:a,rtlTranslate:r,enabled:l,animating:c}=i;if(!l||i.destroyed)return i;void 0===e&&(e=i.params.speed);const d=i.virtual&&s.virtual.enabled;if(s.loop){if(c&&!d&&s.loopPreventsSliding)return!1;i.loopFix({direction:"prev"}),i._clientLeft=i.wrapperEl.clientLeft}function u(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const p=u(r?i.translate:-i.translate),m=o.map(e=>u(e)),h=s.freeMode&&s.freeMode.enabled;let f=o[m.indexOf(p)-1];if(void 0===f&&(s.cssMode||h)){let e;o.forEach((t,n)=>{p>=t&&(e=n)}),void 0!==e&&(f=h?o[e]:o[e>0?e-1:e])}let g=0;if(void 0!==f&&(g=a.indexOf(f),g<0&&(g=i.activeIndex-1),"auto"===s.slidesPerView&&1===s.slidesPerGroup&&s.slidesPerGroupAuto&&(g=g-i.slidesPerViewDynamic("previous",!0)+1,g=Math.max(g,0))),s.rewind&&i.isBeginning){const s=i.params.virtual&&i.params.virtual.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1;return i.slideTo(s,e,t,n)}return s.loop&&0===i.activeIndex&&s.cssMode?(requestAnimationFrame(()=>{i.slideTo(g,e,t,n)}),!0):i.slideTo(g,e,t,n)},slideReset:function(e,t,n){void 0===t&&(t=!0);const i=this;if(!i.destroyed)return void 0===e&&(e=i.params.speed),i.slideTo(i.activeIndex,e,t,n)},slideToClosest:function(e,t,n,i){void 0===t&&(t=!0),void 0===i&&(i=.5);const s=this;if(s.destroyed)return;void 0===e&&(e=s.params.speed);let o=s.activeIndex;const a=Math.min(s.params.slidesPerGroupSkip,o),r=a+Math.floor((o-a)/s.params.slidesPerGroup),l=s.rtlTranslate?s.translate:-s.translate;if(l>=s.snapGrid[r]){const e=s.snapGrid[r];l-e>(s.snapGrid[r+1]-e)*i&&(o+=s.params.slidesPerGroup)}else{const e=s.snapGrid[r-1];l-e<=(s.snapGrid[r]-e)*i&&(o-=s.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,s.slidesGrid.length-1),s.slideTo(o,e,t,n)},slideToClickedSlide:function(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:n}=e,i="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let s,o=e.getSlideIndexWhenGrid(e.clickedIndex);const a=e.isElement?"swiper-slide":`.${t.slideClass}`,r=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;s=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?e.slideToLoop(s):o>(r?(e.slides.length-i)/2-(e.params.grid.rows-1):e.slides.length-i)?(e.loopFix(),o=e.getSlideIndex(Po(n,`${a}[data-swiper-slide-index="${s}"]`)[0]),So(()=>{e.slideTo(o)})):e.slideTo(o)}else e.slideTo(o)}},ta={loopCreate:function(e,t){const n=this,{params:i,slidesEl:s}=n;if(!i.loop||n.virtual&&n.params.virtual.enabled)return;const o=()=>{Po(s,`.${i.slideClass}, swiper-slide`).forEach((e,t)=>{e.setAttribute("data-swiper-slide-index",t)})},a=n.grid&&i.grid&&i.grid.rows>1;i.loopAddBlankSlides&&(i.slidesPerGroup>1||a)&&(()=>{const e=Po(s,`.${i.slideBlankClass}`);e.forEach(e=>{e.remove()}),e.length>0&&(n.recalcSlides(),n.updateSlides())})();const r=i.slidesPerGroup*(a?i.grid.rows:1),l=n.slides.length%r!==0,c=a&&n.slides.length%i.grid.rows!==0,d=e=>{for(let t=0;t<e;t+=1){const e=n.isElement?Io("swiper-slide",[i.slideBlankClass]):Io("div",[i.slideClass,i.slideBlankClass]);n.slidesEl.append(e)}};l?(i.loopAddBlankSlides?(d(r-n.slides.length%r),n.recalcSlides(),n.updateSlides()):Mo("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may 
2not function properly. You need to add more slides (or make duplicates, or empty slides)"),o()):c?(i.loopAddBlankSlides?(d(i.grid.rows-n.slides.length%i.grid.rows),n.recalcSlides(),n.updateSlides()):Mo("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)"),o()):o(),n.loopFix({slideRealIndex:e,direction:i.centeredSlides?void 0:"next",initial:t})},loopFix:function(e){let{slideRealIndex:t,slideTo:n=!0,direction:i,setTranslate:s,activeSlideIndex:o,initial:a,byController:r,byMousewheel:l}=void 0===e?{}:e;const c=this;if(!c.params.loop)return;c.emit("beforeLoopFix");const{slides:d,allowSlidePrev:u,allowSlideNext:p,slidesEl:m,params:h}=c,{centeredSlides:f,initialSlide:g}=h;if(c.allowSlidePrev=!0,c.allowSlideNext=!0,c.virtual&&h.virtual.enabled)return n&&(h.centeredSlides||0!==c.snapIndex?h.centeredSlides&&c.snapIndex<h.slidesPerView?c.slideTo(c.virtual.slides.length+c.snapIndex,0,!1,!0):c.snapIndex===c.snapGrid.length-1&&c.slideTo(c.virtual.slidesBefore,0,!1,!0):c.slideTo(c.virtual.slides.length,0,!1,!0)),c.allowSlidePrev=u,c.allowSlideNext=p,void c.emit("loopFix");let v=h.slidesPerView;"auto"===v?v=c.slidesPerViewDynamic():(v=Math.ceil(parseFloat(h.slidesPerView,10)),f&&v%2==0&&(v+=1));const b=h.slidesPerGroupAuto?v:h.slidesPerGroup;let y=f?Math.max(b,Math.ceil(v/2)):b;y%b!==0&&(y+=b-y%b),y+=h.loopAdditionalSlides,c.loopedSlides=y;const w=c.grid&&h.grid&&h.grid.rows>1;d.length<v+y||"cards"===c.params.effect&&d.length<v+2*y?Mo("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):w&&"row"===h.grid.fill&&Mo("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const _=[],E=[],S=w?Math.ceil(d.length/h.grid.rows):d.length,x=a&&S-g<v&&!f;let T=x?g:c.activeIndex;void 0===o?o=c.getSlideIndex(d.find(e=>e.classList.contains(h.slideActiveClass))):T=o;const C="next"===i||!i,L="prev"===i||!i;let k=0,A=0;const P=(w?d[o].column:o)+(f&&void 0===s?-v/2+.5:0);if(P<y){k=Math.max(y-P,b);for(let e=0;e<y-P;e+=1){const t=e-Math.floor(e/S)*S;if(w){const e=S-t-1;for(let t=d.length-1;t>=0;t-=1)d[t].column===e&&_.push(t)}else _.push(S-t-1)}}else if(P+v>S-y){A=Math.max(P-(S-2*y),b),x&&(A=Math.max(A,v-S+g+1));for(let e=0;e<A;e+=1){const t=e-Math.floor(e/S)*S;w?d.forEach((e,n)=>{e.column===t&&E.push(n)}):E.push(t)}}if(c.__preventObserver__=!0,requestAnimationFrame(()=>{c.__preventObserver__=!1}),"cards"===c.params.effect&&d.length<v+2*y&&(E.includes(o)&&E.splice(E.indexOf(o),1),_.includes(o)&&_.splice(_.indexOf(o),1)),L&&_.forEach(e=>{d[e].swiperLoopMoveDOM=!0,m.prepend(d[e]),d[e].swiperLoopMoveDOM=!1}),C&&E.forEach(e=>{d[e].swiperLoopMoveDOM=!0,m.append(d[e]),d[e].swiperLoopMoveDOM=!1}),c.recalcSlides(),"auto"===h.slidesPerView?c.updateSlides():w&&(_.length>0&&L||E.length>0&&C)&&c.slides.forEach((e,t)=>{c.grid.updateSlide(t,e,c.slides)}),h.watchSlidesProgress&&c.updateSlidesOffset(),n)if(_.length>0&&L){if(void 0===t){const e=c.slidesGrid[T],t=c.slidesGrid[T+k]-e;l?c.setTranslate(c.translate-t):(c.slideTo(T+Math.ceil(k),0,!1,!0),s&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-t,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-t))}else if(s){const e=w?_.length/h.grid.rows:_.length;c.slideTo(c.activeIndex+e,0,!1,!0),c.touchEventsData.currentTranslate=c.translate}}else if(E.length>0&&C)if(void 0===t){const e=c.slidesGrid[T],t=c.slidesGrid[T-A]-e;l?c.setTranslate(c.translate-t):(c.slideTo(T-A,0,!1,!0),s&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-t,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-t))}else{const e=w?E.length/h.grid.rows:E.length;c.slideTo(c.activeIndex-e,0,!1,!0)}if(c.allowSlidePrev=u,c.allowSlideNext=p,c.controller&&c.controller.control&&!r){const e={slideRealIndex:t,direction:i,setTranslate:s,activeSlideIndex:o,byController:!0};Array.isArray(c.controller.control)?c.controller.control.forEach(t=>{!t.destroyed&&t.params.loop&&t.loopFix({...e,slideTo:t.params.slidesPerView===h.slidesPerView&&n})}):c.controller.control instanceof c.constructor&&c.controller.control.params.loop&&c.controller.control.loopFix({...e,slideTo:c.controller.control.params.slidesPerView===h.slidesPerView&&n})}c.emit("loopFix")},loopDestroy:function(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||!n||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const i=[];
vendor: 5,993 bytes, line 2
2e.slides.forEach(e=>{const t=void 0===e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;i[t]=e}),e.slides.forEach(e=>{e.removeAttribute("data-swiper-slide-index")}),i.forEach(e=>{n.append(e)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}};function na(e,t,n){const i=Eo(),{params:s}=e,o=s.edgeSwipeDetection,a=s.edgeSwipeThreshold;return!o||!(n<=a||n>=i.innerWidth-a)||"prevent"===o&&(t.preventDefault(),!0)}function ia(e){const t=this,n=wo();let i=e;i.originalEvent&&(i=i.originalEvent);const s=t.touchEventsData;if("pointerdown"===i.type){if(null!==s.pointerId&&s.pointerId!==i.pointerId)return;s.pointerId=i.pointerId}else"touchstart"===i.type&&1===i.targetTouches.length&&(s.touchId=i.targetTouches[0].identifier);if("touchstart"===i.type)return void na(t,i,i.targetTouches[0].pageX);const{params:o,touches:a,enabled:r}=t;if(!r)return;if(!o.simulateTouch&&"mouse"===i.pointerType)return;if(t.animating&&o.preventInteractionOnTransition)return;!t.animating&&o.cssMode&&o.loop&&t.loopFix();let l=i.target;if("wrapper"===o.touchEventsTarget&&!function(e,t){const n=Eo();let i=t.contains(e);return!i&&n.HTMLSlotElement&&t instanceof HTMLSlotElement&&(i=[...t.assignedElements()].includes(e),i||(i=function(e,t){const n=[t];for(;n.length>0;){const t=n.shift();if(e===t)return!0;n.push(...t.children,...t.shadowRoot?t.shadowRoot.children:[],...t.assignedElements?t.assignedElements():[])}}(e,t))),i}(l,t.wrapperEl))return;if("which"in i&&3===i.which)return;if("button"in i&&i.button>0)return;if(s.isTouched&&s.isMoved)return;const c=!!o.noSwipingClass&&""!==o.noSwipingClass,d=i.composedPath?i.composedPath():i.path;c&&i.target&&i.target.shadowRoot&&d&&(l=d[0]);const u=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,p=!(!i.target||!i.target.shadowRoot);if(o.noSwiping&&(p?function(e,t){return void 0===t&&(t=this),function t(n){if(!n||n===wo()||n===Eo())return null;n.assignedSlot&&(n=n.assignedSlot);const i=n.closest(e);return i||n.getRootNode?i||t(n.getRootNode().host):null}(t)}(u,l):l.closest(u)))return void(t.allowClick=!0);if(o.swipeHandler&&!l.closest(o.swipeHandler))return;a.currentX=i.pageX,a.currentY=i.pageY;const m=a.currentX,h=a.currentY;if(!na(t,i,m))return;Object.assign(s,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=m,a.startY=h,s.touchStartTime=xo(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,o.threshold>0&&(s.allowThresholdMove=!1);let f=!0;l.matches(s.focusableElements)&&(f=!1,"SELECT"===l.nodeName&&(s.isTouched=!1)),n.activeElement&&n.activeElement.matches(s.focusableElements)&&n.activeElement!==l&&("mouse"===i.pointerType||"mouse"!==i.pointerType&&!l.matches(s.focusableElements))&&n.activeElement.blur();const g=f&&t.allowTouchMove&&o.touchStartPreventDefault;!o.touchStartForcePreventDefault&&!g||l.isContentEditable||i.preventDefault(),o.freeMode&&o.freeMode.enabled&&t.freeMode&&t.animating&&!o.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",i)}function sa(e){const t=wo(),n=this,i=n.touchEventsData,{params:s,touches:o,rtlTranslate:a,enabled:r}=n;if(!r)return;if(!s.simulateTouch&&"mouse"===e.pointerType)return;let l,c=e;if(c.originalEvent&&(c=c.originalEvent),"pointermove"===c.type){if(null!==i.touchId)return;if(c.pointerId!==i.pointerId)return}if("touchmove"===c.type){if(l=[...c.changedTouches].find(e=>e.identifier===i.touchId),!l||l.identifier!==i.touchId)return}else l=c;if(!i.isTouched)return void(i.startMoving&&i.isScrolling&&n.emit("touchMoveOpposite",c));const d=l.pageX,u=l.pageY;if(c.preventedByNestedSwiper)return o.startX=d,void(o.startY=u);if(!n.allowTouchMove)return c.target.matches(i.focusableElements)||(n.allowClick=!1),void(i.isTouched&&(Object.assign(o,{startX:d,startY:u,currentX:d,currentY:u}),i.touchStartTime=xo()));if(s.touchReleaseOnEdges&&!s.loop)if(n.isVertical()){if(u<o.startY&&n.translate<=n.maxTranslate()||u>o.startY&&n.translate>=n.minTranslate())return i.isTouched=!1,void(i.isMoved=!1)}else{if(a&&(d>o.startX&&-n.translate<=n.maxTranslate()||d<o.startX&&-n.translate>=n.minTranslate()))return;if(!a&&(d<o.startX&&n.translate<=n.maxTranslate()||d>o.startX&&n.translate>=n.minTranslate()))return}if(t.activeElement&&t.activeElement.matches(i.focusableElements)&&t.activeElement!==c.target&&"mouse"!==c.pointerType&&t.activeElement.blur(),t.activeElement&&c.target===t.activeElement&&c.target.matches(i.focusableElements))return i.isMoved=!0,void(n.allowClick=!1);i.allowTouchCallbacks&&n.emit("touchMove",c),o.previousX=o.currentX,o.previousY=o.currentY,o.currentX=d,o.currentY=u;const p=o.currentX-o.startX,m=o.currentY-o.startY;if(n.params.threshold&&Math.sqrt(p**2+m**2)<n.params.threshold)return;if(void 0===i.isScrolling){let e;n.isHorizontal()&&o.currentY===o.startY||n.isVertical()&&o.currentX===o.startX?i.isScrolling=!1:p*p+m*m>=25&&(e=180*Math.atan2(Math.abs(m),Math.abs(p))/Math.PI,i.isScrolling=n.isHorizontal()?e>s.touchAngle:90-e>s.touchAngle)}if(i.isScrolling&&n.emit("touchMoveOpposite",c),void 0===i.startMoving&&(o.currentX===o.startX&&o.currentY===o.startY||(i.startMoving=!0)),i.isScrolling||"touchmove"===c.type&&i.preventTouchMoveFromPointerMove)return void(i.isTouched=!1);if(!i.startMoving)return;n.allowClick=!1,!s.cssMode&&c.cancelable&&c.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&c.stopPropagation();let h=n.isHorizontal()?p:m,f=n.isHorizontal()?o.currentX-o.previousX:o.currentY-o.previousY;s.oneWayMovement&&(h=Math.abs(h)*(a?1:-1),f=Math.abs(f)*(a?1:-1)),o.diff=h,h*=s.touchRatio,a&&(h=-h,f=-f);const g=n.touchesDirection;n.swipeDirection=h>0?"prev":"next",n.touchesDirection=f>0?"prev":"next";const v=n.params.loop&&!s.cssMode,b="next"===n.touchesDirection&&n.allowSlideNext||"prev"===n.touchesDirection&&n.allowSlidePrev;if(!i.isMoved){if(v&&b&&n.loopFix({direction:n.swipeDirection}),i.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});
vendor: 2,162 bytes, line 2
2n.wrapperEl.dispatchEvent(e)}i.allowMomentumBounce=!1,!s.grabCursor||!0!==n.allowSlideNext&&!0!==n.allowSlidePrev||n.setGrabCursor(!0),n.emit("sliderFirstMove",c)}if((new Date).getTime(),!1!==s._loopSwapReset&&i.isMoved&&i.allowThresholdMove&&g!==n.touchesDirection&&v&&b&&Math.abs(h)>=1)return Object.assign(o,{startX:d,startY:u,currentX:d,currentY:u,startTranslate:i.currentTranslate}),i.loopSwapReset=!0,void(i.startTranslate=i.currentTranslate);n.emit("sliderMove",c),i.isMoved=!0,i.currentTranslate=h+i.startTranslate;let y=!0,w=s.resistanceRatio;if(s.touchReleaseOnEdges&&(w=0),h>0?(v&&b&&i.allowThresholdMove&&i.currentTranslate>(s.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]-("auto"!==s.slidesPerView&&n.slides.length-s.slidesPerView>=2?n.slidesSizesGrid[n.activeIndex+1]+n.params.spaceBetween:0)-n.params.spaceBetween:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),i.currentTranslate>n.minTranslate()&&(y=!1,s.resistance&&(i.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+i.startTranslate+h)**w))):h<0&&(v&&b&&i.allowThresholdMove&&i.currentTranslate<(s.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween+("auto"!==s.slidesPerView&&n.slides.length-s.slidesPerView>=2?n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween:0):n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-("auto"===s.slidesPerView?n.slidesPerViewDynamic():Math.ceil(parseFloat(s.slidesPerView,10)))}),i.currentTranslate<n.maxTranslate()&&(y=!1,s.resistance&&(i.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-i.startTranslate-h)**w))),y&&(c.preventedByNestedSwiper=!0),!n.allowSlideNext&&"next"===n.swipeDirection&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!n.allowSlidePrev&&"prev"===n.swipeDirection&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),n.allowSlidePrev||n.allowSlideNext||(i.currentTranslate=i.startTranslate),s.threshold>0){if(!(Math.abs(h)>s.threshold||i.allowThresholdMove))return void(i.currentTranslate=i.startTranslate);
vendor: 4,877 bytes, line 2
2if(!i.allowThresholdMove)return i.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,i.currentTranslate=i.startTranslate,void(o.diff=n.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY)}s.followFinger&&!s.cssMode&&((s.freeMode&&s.freeMode.enabled&&n.freeMode||s.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),s.freeMode&&s.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(i.currentTranslate),n.setTranslate(i.currentTranslate))}function oa(e){const t=this,n=t.touchEventsData;let i,s=e;if(s.originalEvent&&(s=s.originalEvent),"touchend"===s.type||"touchcancel"===s.type){if(i=[...s.changedTouches].find(e=>e.identifier===n.touchId),!i||i.identifier!==n.touchId)return}else{if(null!==n.touchId)return;if(s.pointerId!==n.pointerId)return;i=s}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(s.type)&&(!["pointercancel","contextmenu"].includes(s.type)||!t.browser.isSafari&&!t.browser.isWebView))return;n.pointerId=null,n.touchId=null;const{params:o,touches:a,rtlTranslate:r,slidesGrid:l,enabled:c}=t;if(!c)return;if(!o.simulateTouch&&"mouse"===s.pointerType)return;if(n.allowTouchCallbacks&&t.emit("touchEnd",s),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&o.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);o.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const d=xo(),u=d-n.touchStartTime;if(t.allowClick){const e=s.path||s.composedPath&&s.composedPath();t.updateClickedSlide(e&&e[0]||s.target,e),t.emit("tap click",s),u<300&&d-n.lastClickTime<300&&t.emit("doubleTap doubleClick",s)}if(n.lastClickTime=xo(),So(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||0===a.diff&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);let p;if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,p=o.followFinger?r?t.translate:-t.translate:-n.currentTranslate,o.cssMode)return;if(o.freeMode&&o.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:p});const m=p>=-t.maxTranslate()&&!t.params.loop;let h=0,f=t.slidesSizesGrid[0];for(let e=0;e<l.length;e+=e<o.slidesPerGroupSkip?1:o.slidesPerGroup){const t=e<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;void 0!==l[e+t]?(m||p>=l[e]&&p<l[e+t])&&(h=e,f=l[e+t]-l[e]):(m||p>=l[e])&&(h=e,f=l[l.length-1]-l[l.length-2])}let g=null,v=null;o.rewind&&(t.isBeginning?v=o.virtual&&o.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(g=0));const b=(p-l[h])/f,y=h<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;if(u>o.longSwipesMs){if(!o.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(b>=o.longSwipesRatio?t.slideTo(o.rewind&&t.isEnd?g:h+y):t.slideTo(h)),"prev"===t.swipeDirection&&(b>1-o.longSwipesRatio?t.slideTo(h+y):null!==v&&b<0&&Math.abs(b)>o.longSwipesRatio?t.slideTo(v):t.slideTo(h))}else{if(!o.shortSwipes)return void t.slideTo(t.activeIndex);!t.navigation||s.target!==t.navigation.nextEl&&s.target!==t.navigation.prevEl?("next"===t.swipeDirection&&t.slideTo(null!==g?g:h+y),"prev"===t.swipeDirection&&t.slideTo(null!==v?v:h)):s.target===t.navigation.nextEl?t.slideTo(h+y):t.slideTo(h)}}function aa(){const e=this,{params:t,el:n}=e;if(n&&0===n.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:i,allowSlidePrev:s,snapGrid:o}=e,a=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const r=a&&t.loop;!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||r?e.params.loop&&!a?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0):e.slideTo(e.slides.length-1,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=s,e.allowSlideNext=i,e.params.watchOverflow&&o!==e.snapGrid&&e.checkOverflow()}function ra(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function la(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:i}=e;if(!i)return;let s;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const o=e.maxTranslate()-e.minTranslate();s=0===o?0:(e.translate-e.minTranslate())/o,s!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function ca(e){const t=this;Uo(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update(
vendor: 5,913 bytes, line 2
2)}function da(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const ua=(e,t)=>{const n=wo(),{params:i,el:s,wrapperEl:o,device:a}=e,r=!!i.nested,l="on"===t?"addEventListener":"removeEventListener",c=t;s&&"string"!=typeof s&&(n[l]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:r}),s[l]("touchstart",e.onTouchStart,{passive:!1}),s[l]("pointerdown",e.onTouchStart,{passive:!1}),n[l]("touchmove",e.onTouchMove,{passive:!1,capture:r}),n[l]("pointermove",e.onTouchMove,{passive:!1,capture:r}),n[l]("touchend",e.onTouchEnd,{passive:!0}),n[l]("pointerup",e.onTouchEnd,{passive:!0}),n[l]("pointercancel",e.onTouchEnd,{passive:!0}),n[l]("touchcancel",e.onTouchEnd,{passive:!0}),n[l]("pointerout",e.onTouchEnd,{passive:!0}),n[l]("pointerleave",e.onTouchEnd,{passive:!0}),n[l]("contextmenu",e.onTouchEnd,{passive:!0}),(i.preventClicks||i.preventClicksPropagation)&&s[l]("click",e.onClick,!0),i.cssMode&&o[l]("scroll",e.onScroll),i.updateOnWindowResize?e[c](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",aa,!0):e[c]("observerUpdate",aa,!0),s[l]("load",e.onLoad,{capture:!0}))},pa=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var ma={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function ha(e,t){return function(n){void 0===n&&(n={});const i=Object.keys(n)[0],s=n[i];"object"==typeof s&&null!==s?(!0===e[i]&&(e[i]={enabled:!0}),"navigation"===i&&e[i]&&e[i].enabled&&!e[i].prevEl&&!e[i].nextEl&&(e[i].auto=!0),["pagination","scrollbar"].indexOf(i)>=0&&e[i]&&e[i].enabled&&!e[i].el&&(e[i].auto=!0),i in e&&"enabled"in s?("object"!=typeof e[i]||"enabled"in e[i]||(e[i].enabled=!0),e[i]||(e[i]={enabled:!1}),Lo(t,n)):Lo(t,n)):Lo(t,n)}}const fa={eventsEmitter:Wo,update:Jo,translate:{getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");const{params:t,rtlTranslate:n,translate:i,wrapperEl:s}=this;if(t.virtualTranslate)return n?-i:i;if(t.cssMode)return i;let o=function(e,t){void 0===t&&(t="x");const n=Eo();let i,s,o;const a=function(e){const t=Eo();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}(e);return n.WebKitCSSMatrix?(s=a.transform||a.webkitTransform,s.split(",").length>6&&(s=s.split(", ").map(e=>e.replace(",",".")).join(", ")),o=new n.WebKitCSSMatrix("none"===s?"":s)):(o=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=o.toString().split(",")),"x"===t&&(s=n.WebKitCSSMatrix?o.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===t&&(s=n.WebKitCSSMatrix?o.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),s||0}(s,e);return o+=this.cssOverflowAdjustment(),n&&(o=-o),o||0},setTranslate:function(e,t){const n=this,{rtlTranslate:i,params:s,wrapperEl:o,progress:a}=n;let r,l=0,c=0;n.isHorizontal()?l=i?-e:e:c=e,s.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?l:c,s.cssMode?o[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-l:-c:s.virtualTranslate||(n.isHorizontal()?l-=n.cssOverflowAdjustment():c-=n.cssOverflowAdjustment(),o.style.transform=`translate3d(${l}px, ${c}px, 0px)`);const d=n.maxTranslate()-n.minTranslate();r=0===d?0:(e-n.minTranslate())/d,r!==a&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e,t,n,i,s){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===n&&(n=!0),void 0===i&&(i=!0);const o=this,{params:a,wrapperEl:r}=o;if(o.animating&&a.preventInteractionOnTransition)return!1;const l=o.minTranslate(),c=o.maxTranslate();let d;if(d=i&&e>l?l:i&&e<c?c:e,o.updateProgress(d),a.cssMode){const e=o.isHorizontal();if(0===t)r[e?"scrollLeft":"scrollTop"]=-d;else{if(!o.support.smoothScroll)return Ao({swiper:o,targetPosition:-d,side:e?"left"
vendor: 4,249 bytes, line 2
2:"top"}),!0;r.scrollTo({[e?"left":"top"]:-d,behavior:"smooth"})}return!0}return 0===t?(o.setTransition(0),o.setTranslate(d),n&&(o.emit("beforeTransitionStart",t,s),o.emit("transitionEnd"))):(o.setTransition(t),o.setTranslate(d),n&&(o.emit("beforeTransitionStart",t,s),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(e){o&&!o.destroyed&&e.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.onTranslateToWrapperTransitionEnd=null,delete o.onTranslateToWrapperTransitionEnd,o.animating=!1,n&&o.emit("transitionEnd"))}),o.wrapperEl.addEventListener("transitionend",o.onTranslateToWrapperTransitionEnd))),!0}},transition:{setTransition:function(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`,n.wrapperEl.style.transitionDelay=0===e?"0ms":""),n.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);const n=this,{params:i}=n;i.cssMode||(i.autoHeight&&n.updateAutoHeight(),Zo({swiper:n,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e,t){void 0===e&&(e=!0);const n=this,{params:i}=n;n.animating=!1,i.cssMode||(n.setTransition(0),Zo({swiper:n,runCallbacks:e,direction:t,step:"End"}))}},slide:ea,loop:ta,grabCursor:{setGrabCursor:function(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})},unsetGrabCursor:function(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}},events:{attachEvents:function(){const e=this,{params:t}=e;e.onTouchStart=ia.bind(e),e.onTouchMove=sa.bind(e),e.onTouchEnd=oa.bind(e),e.onDocumentTouchStart=da.bind(e),t.cssMode&&(e.onScroll=la.bind(e)),e.onClick=ra.bind(e),e.onLoad=ca.bind(e),ua(e,"on")},detachEvents:function(){ua(this,"off")}},breakpoints:{setBreakpoint:function(){const e=this,{realIndex:t,initialized:n,params:i,el:s}=e,o=i.breakpoints;if(!o||o&&0===Object.keys(o).length)return;const a=wo(),r="window"!==i.breakpointsBase&&i.breakpointsBase?"container":i.breakpointsBase,l=["window","container"].includes(i.breakpointsBase)||!i.breakpointsBase?e.el:a.querySelector(i.breakpointsBase),c=e.getBreakpoint(o,r,l);if(!c||e.currentBreakpoint===c)return;const d=(c in o?o[c]:void 0)||e.originalParams,u=pa(e,i),p=pa(e,d),m=e.params.grabCursor,h=d.grabCursor,f=i.enabled;u&&!p?(s.classList.remove(`${i.containerModifierClass}grid`,`${i.containerModifierClass}grid-column`),e.emitContainerClasses()):!u&&p&&(s.classList.add(`${i.containerModifierClass}grid`),(d.grid.fill&&"column"===d.grid.fill||!d.grid.fill&&"column"===i.grid.fill)&&s.classList.add(`${i.containerModifierClass}grid-column`),e.emitContainerClasses()),m&&!h?e.unsetGrabCursor():!m&&h&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(t=>{if(void 0===d[t])return;const n=i[t]&&i[t].enabled,s=d[t]&&d[t].enabled;n&&!s&&e[t].disable(),!n&&s&&e[t].enable()});const g=d.direction&&d.direction!==i.direction,v=i.loop&&(d.slidesPerView!==i.slidesPerView||g),b=i.loop;g&&n&&e.changeDirection(),Lo(e.params,d);const y=e.params.enabled,w=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),f&&!y?e.disable():!f&&y&&e.enable(),e.currentBreakpoint=c,e.emit("_beforeBreakpoint",d),n&&(v?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!b&&w?(e.loopCreate(t),e.updateSlides()):b&&!w&&e.loopDestroy()),e.emit("breakpoint",d)},getBreakpoint:function(e,t,n){if(void 0===t&&(t="window"),!e||"container"===t&&!n)return;let i=!1;const s=Eo(),o="window"===t?s.innerHeight:n.clientHeight,a=Object.keys(e).map(e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:o*t,point:e}}return{value:e,point:e}});a.sort((e,t)=>
vendor: 2,367 bytes, line 2
2parseInt(e.value,10)-parseInt(t.value,10));for(let e=0;e<a.length;e+=1){const{point:o,value:r}=a[e];"window"===t?s.matchMedia(`(min-width: ${r}px)`).matches&&(i=o):r<=n.clientWidth&&(i=o)}return i||"max"}},checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:i}=n;if(i){const t=e.slides.length-1,n=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*i;e.isLocked=e.size>n}else e.isLocked=1===e.snapGrid.length;!0===n.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===n.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:{addClasses:function(){const e=this,{classNames:t,params:n,rtl:i,el:s,device:o}=e,a=function(e,t){const n=[];return e.forEach(e=>{"object"==typeof e?Object.keys(e).forEach(i=>{e[i]&&n.push(t+i)}):"string"==typeof e&&n.push(t+e)}),n}(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:i},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&"column"===n.grid.fill},{android:o.android},{ios:o.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...a),s.classList.add(...t),e.emitContainerClasses()},removeClasses:function(){const{el:e,classNames:t}=this;e&&"string"!=typeof e&&(e.classList.remove(...t),this.emitContainerClasses())}}},ga={};class va{constructor(){let e,t;for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];1===i.length&&i[0].constructor&&"Object"===Object.prototype.toString.call(i[0]).slice(8,-1)?t=i[0]:[e,t]=i,t||(t={}),t=Lo({},t),e&&!t.el&&(t.el=e);const o=wo();if(t.el&&"string"==typeof t.el&&o.querySelectorAll(t.el).length>1){const e=[];return o.querySelectorAll(t.el).forEach(n=>{const i=Lo({},t,{el:n});e.push(new va(i))}),e}const a=this;a.__swiper__=!0,a.support=Ro(),a.device=Vo({userAgent:t.userAgent}),a.browser=Go(),a.eventsListeners={},a.eventsAnyListeners=[],a.modules=[...a.__modules__],t.modules&&Array.isArray(t.modules)&&a.modules.push(...t.modules);const r={};a.modules.forEach(e=>{e({params:t,swiper:a,extendParams:ha(t,r),on:a.on.bind(a),once:a.once.bind(a),off:a.off.bind(a),emit:a.emit.bind(a)})});const l=Lo({},ma,r);return a.params=Lo({},l,ga,t),a.originalParams=Lo({},a.params),a.passedParams=Lo({}
vendor: 4,839 bytes, line 2
2,t),a.params&&a.params.on&&Object.keys(a.params.on).forEach(e=>{a.on(e,a.params.on[e])}),a.params&&a.params.onAny&&a.onAny(a.params.onAny),Object.assign(a,{enabled:a.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===a.params.direction,isVertical:()=>"vertical"===a.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:a.params.allowSlideNext,allowSlidePrev:a.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:a.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:a.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),a.emit("_swiper"),a.params.init&&a.init(),a}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:t,params:n}=this,i=Do(Po(t,`.${n.slideClass}, swiper-slide`)[0]);return Do(e)-i}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(t=>1*t.getAttribute("data-swiper-slide-index")===e))}getSlideIndexWhenGrid(e){return this.grid&&this.params.grid&&this.params.grid.rows>1&&("column"===this.params.grid.fill?e=Math.floor(e/this.params.grid.rows):"row"===this.params.grid.fill&&(e%=Math.ceil(this.slides.length/this.params.grid.rows))),e}recalcSlides(){const{slidesEl:e,params:t}=this;this.slides=Po(e,`.${t.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const n=this;e=Math.min(Math.max(e,0),1);const i=n.minTranslate(),s=(n.maxTranslate()-i)*e+i;n.translateTo(s,void 0===t?0:t),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter(t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter(e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.forEach(n=>{const i=e.getSlideClasses(n);t.push({slideEl:n,classNames:i}),e.emit("_slideClass",n,i)}),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);const{params:n,slides:i,slidesGrid:s,slidesSizesGrid:o,size:a,activeIndex:r}=this;let l=1;if("number"==typeof n.slidesPerView)return n.slidesPerView;if(n.centeredSlides){let e,t=i[r]?Math.ceil(i[r].swiperSlideSize):0;for(let n=r+1;n<i.length;n+=1)i[n]&&!e&&(t+=Math.ceil(i[n].swiperSlideSize),l+=1,t>a&&(e=!0));for(let n=r-1;n>=0;n-=1)i[n]&&!e&&(t+=i[n].swiperSlideSize,l+=1,t>a&&(e=!0))}else if("current"===e)for(let e=r+1;e<i.length;e+=1)(t?s[e]+o[e]-s[r]<a:s[e]-s[r]<a)&&(l+=1);else for(let e=r-1;e>=0;e-=1)s[r]-s[e]<a&&(l+=1);return l}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:n}=e;function i(){const t=e.rtlTranslate?-1*e.translate:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}let s;if(n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(t=>{t.complete&&Uo(e,t)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),n.freeMode&&n.freeMode.enabled&&!n.cssMode)i(),n.autoHeight&&e.updateAutoHeight();else{if(("auto"===n.slidesPerView||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){const t=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;s=e.slideTo(t.length-1,0,!1,!0)}else s=e.slideTo(e.activeIndex,0,!1,!0);s||i()}n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t){void 0===t&&(t=!0);const n=this,i=n.params.direction;return e||(e="horizontal"===i?"vertical":"horizontal"),e===i||"horizontal"!==e&&"vertical"!==e||(n.el.classList.remove(`${n.params.containerModifierClass}${i}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEac
vendor: 1,356 bytes, line 2
2h(t=>{"vertical"===e?t.style.width="":t.style.height=""}),n.emit("changeDirection"),t&&n.update()),n}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;let n=e||t.params.el;if("string"==typeof n&&(n=document.querySelector(n)),!n)return!1;n.swiper=t,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);const i=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let s=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(i()):Po(n,i())[0];return!s&&t.params.createElements&&(s=Io("div",t.params.wrapperClass),n.append(s),Po(n,`.${t.params.slideClass}`).forEach(e=>{s.append(e)})),Object.assign(t,{el:n,wrapperEl:s,slidesEl:t.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:s,hostEl:t.isElement?n.parentNode.host:n,mounted:!0,rtl:"rtl"===n.dir.toLowerCase()||"rtl"===Oo(n,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===n.dir.toLowerCase()||"rtl"===Oo(n,"direction")),wrongRTL:"-webkit-box"===Oo(s,"dis
2play")}),!0}init(e){const t=this;if(t.initialized)return t;if(!1===t.mount(e))return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(void 0,!0),t.attachEvents();const n=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&n.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),n.forEach(e=>{e.complete?Uo(t,e):e.addEventListener("load",e=>{Uo(t,e.target)})}),Ko(t),t.initialized=!0,Ko(t),t.emit("init"),t.emit("afterInit"),t}destroy(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);const n=this,{params:i,el:s,wrapperEl:o,slides:a}=n;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),i.loop&&n.loopDestroy(),t&&(n.removeClasses(),s&&"string"!=typeof s&&s.removeAttribute("style"),o&&o.removeAttribute("style"),a&&a.length&&a.forEach(e=>{e.classList.remove(i.slideVisibleClass,i.slideFullyVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")})),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(e=>{n.off(e)}),!1!==e&&(n.el&&"string"!=typeof n.el&&(n.el.swiper=null),function(e){const t=e;Object.keys(t).forEach(e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}})}(n)),n.destroyed=!0),null}static extendDefaults(e){Lo(ga,e)}static get extendedDefaults(){return ga}static get defaults(){return ma}static installModule(e){va.prototype.__modules__||(va.prototype.__modules__=[]);const t=va.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach(e=>va.installModule(e)),va):(va.installModule(e),va)}}function ba(e,t,n,i){return e.params.createElements&&Object.keys(i).forEac
vendor: 1,869 bytes, line 2
2h(s=>{if(!n[s]&&!0===n.auto){let o=Po(e.el,`.${i[s]}`)[0];o||(o=Io("div",i[s]),o.className=i[s],e.el.append(o)),n[s]=o,t[s]=o}}),n}function ya(e){let{swiper:t,extendParams:n,on:i,emit:s}=e;function o(e){let n;return e&&"string"==typeof e&&t.isElement&&(n=t.el.querySelector(e)||t.hostEl.querySelector(e),n)?n:(e&&("string"==typeof e&&(n=[...document.querySelectorAll(e)]),t.params.uniqueNavElements&&"string"==typeof e&&n&&n.length>1&&1===t.el.querySelectorAll(e).length?n=t.el.querySelector(e):n&&1===n.length&&(n=n[0])),e&&!n?e:n)}function a(e,n){const i=t.params.navigation;(e=$o(e)).forEach(e=>{e&&(e.classList[n?"add":"remove"](...i.disabledClass.split(" ")),"BUTTON"===e.tagName&&(e.disabled=n),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](i.lockClass))})}function r(){const{nextEl:e,prevEl:n}=t.navigation;if(t.params.loop)return a(n,!1),void a(e,!1);a(n,t.isBeginning&&!t.params.rewind),a(e,t.isEnd&&!t.params.rewind)}function l(e){e.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&(t.slidePrev(),s("navigationPrev"))}function c(e){e.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&(t.slideNext(),s("navigationNext"))}function d(){const e=t.params.navigation;if(t.params.navigation=ba(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!e.nextEl&&!e.prevEl)return;let n=o(e.nextEl),i=o(e.prevEl);Object.assign(t.navigation,{nextEl:n,prevEl:i}),n=$o(n),i=$o(i);const s=(n,i)=>{n&&n.addEventListener("click","next"===i?c:l),!t.enabled&&n&&n.classList.add(...e.lockClass.split(" "))};n.forEach(e=>s(e,"next")),i.forEach(e=>s(e,"prev"))}function u(){let{nextEl:e,prevEl:n}=t.navigation;e=$o(e),n=$o(n);const i=(e,n)=>{e.removeEventListener("click","next"===n?c:l),e.classList.remove(...t.params.navigation.disabledClass.split(" "))};e.forEach(e=>
2i(e,"next")),n.forEach(e=>i(e,"prev"))}n({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,prevEl:null},i("init",()=>{!1===t.params.navigation.enabled?p():(d(),r())}),i("toEdge fromEdge lock unlock",()=>{r()}),i("destroy",()=>{u()}),i("enable disable",()=>{let{nextEl:e,prevEl:n}=t.navigation;e=$o(e),n=$o(n),t.enabled?r():[...e,...n].filter(e=>!!e).forEach(e=>e.classList.add(t.params.navigation.lockClass))}),i("click",(e,n)=>{let{nextEl:i,prevEl:o}=t.navigation;i=$o(i),o=$o(o);const a=n.target;let r=o.includes(a)||i.includes(a);if(t.isElement&&!r){const e=n.path||n.composedPath&&n.composedPath();e&&(r=e.find(e=>i.includes(e)||o.includes(e)))}if(t.params.navigation.hideOnClick&&!r){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===a||t.pagination.el.contains(a)))return;let e;i.length?e=i[0].classList.contains(t.params.navigation.hiddenClass):o.length&&(e=o[0].classList.contains(t.params.navigation.hiddenClass)),s(!0===e?"navigationShow":"navigationHide"),[...i,...o].filter(e=>!!e).forEach(e=>e.classList.toggle(t.params.navigation.hiddenClass))}});const p=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" ")),u()};Object.assign(t.navigation,{enable:()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" ")),d(),r()},disable:p,update:r,init:d,destroy:u})}function wa(e){return void 0===e&&(e=""),`.${e.trim().replace(/([\.:!+\/()[\]])/g,"\\$1").replace(/ /g,".")}`}function _a(e){let{swiper:t,extendParams:n,on:i,emit:s}=e;const o="swiper-pagination";let a;n({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${o}-bullet`,bulletActiveClass:`${o}-bullet-active`,modifierClass:`${o}-`,currentClass:`${o}-current`,totalClass:`${o}-total`,hiddenClass:`${o}-hidden`,progressbarFillClass:`${o}-progressbar-fill`,progressbarOppositeClass:`${o}-progressbar-opposite`,clickableClass:`${o}-clickable`,lockClass:`${o}-lock`,horizontalClass:`${o}-horizontal`,verticalClass:`${o}-vertical`,paginationDisabledClass:`${o}-disabled`}}),t.pagination={el:null,bullets:[]};let r=0;function l(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&0===t.pagination.el.length}function c(e,n){const{bulletActiveClass:i}=t.params.pagination;e&&(e=e[("prev"===n?"previous":"next")+"ElementSibling"])&&(e.classList.add(`${i}-${n}`),(e=e[("prev"===n?"previous":"next")+"ElementSibling"])&&e.classList.add(`${i}-${n}-${n}`))}function d(e){const n=e.target.closest(wa(t.params.pagination.bulletClass));if(!n)return;e.preventDefault();const i=Do(n)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===i)return;const e=(s=t.realIndex,o=i,(o%=a=t.slides.length)===1+(s%=a)?"next":o===s-1?"previous":void 0);"next"===e?t.slideNext():"previous"===e?t.slidePrev():t.slideToLoop(i)}else t.slideTo(i);var s,o,a}function u(){const e=t.rtl,n=t.params.pagination;if(l())return;let i,o,d=t.pagination.el;d=$o(d);const u=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,p=t.params.loop?Math.ceil(u/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(o=t.previousRealIndex||0,i=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):void 0!==t.snapIndex?(i=t.snapIndex,o=t.previousSnapIndex):(o=t.previousIndex||0,i=t.activeIndex||0),"bullets"===n.type&&t.pagination.bullets&&t.pagination.bullets.length>0){const s=t.pagination.bullets;let l,u,p;if(n.dynamicBullets&&(a=jo(s[0],t.isHorizontal()?"width":"height",!0),d.forEach(e=>{e.style[t.isHorizontal()?"width":"height"]=a*(n.dynamicMainBullets+4)+"px"}),n.dynamicMainBullets>1&&void 0!==o&&(r+=i-(o||0),r>n.dynamicMainBullets-1?r=n.dynamicMainBullets-1:r<0&&(r=0)),l=Math.max(i-r,0),u=l+(Math.min(s.length,n.dynamicMainBullets)-1),p=(u+l)/2),s.forEac
2h(e=>{const t=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(e=>`${n.bulletActiveClass}${e}`)].map(e=>"string"==typeof e&&e.includes(" ")?e.split(" "):e).flat();e.classList.remove(...t)}),d.length>1)s.forEach(e=>{const s=Do(e);s===i?e.classList.add(...n.bulletActiveClass.split(" ")):t.isElement&&e.setAttribute("part","bullet"),n.dynamicBullets&&(s>=l&&s<=u&&e.classList.add(...`${n.bulletActiveClass}-main`.split(" ")),s===l&&c(e,"prev"),s===u&&c(e,"next"))});else{const e=s[i];if(e&&e.classList.add(...n.bulletActiveClass.split(" ")),t.isElement&&s.forEach((e,t)=>{e.setAttribute("part",t===i?"bullet-active":"bullet")}),n.dynamicBullets){const e=s[l],t=s[u];for(let e=l;e<=u;e+=1)s[e]&&s[e].classList.add(...`${n.bulletActiveClass}-main`.split(" "));c(e,"prev"),c(t,"next")}}if(n.dynamicBullets){const i=Math.min(s.length,n.dynamicMainBullets+4),o=(a*i-a)/2-p*a,r=e?"right":"left";s.forEach(e=>{e.style[t.isHorizontal()?r:"top"]=`${o}px`})}}d.forEach((e,o)=>{if("fraction"===n.type&&(e.querySelectorAll(wa(n.currentClass)).forEach(e=>{e.textContent=n.formatFractionCurrent(i+1)}),e.querySelectorAll(wa(n.totalClass)).forEach(e=>{e.textContent=n.formatFractionTotal(p)})),"progressbar"===n.type){let s;s=n.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";const o=(i+1)/p;let a=1,r=1;"horizontal"===s?a=o:r=o,e.querySelectorAll(wa(n.progressbarFillClass)).forEach(e=>{e.style.transform=`translate3d(0,0,0) scaleX(${a}) scaleY(${r})`,e.style.transitionDuration=`${t.params.speed}ms`})}"custom"===n.type&&n.renderCustom?(Bo(e,n.renderCustom(t,i+1,p)),0===o&&s("paginationRender",e)):(0===o&&s("paginationRender",e),s("paginationUpdate",e)),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](n.lockClass)})}function p(){const e=t.params.pagination;if(l())return;const n=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.grid&&t.params.grid.rows>1?t.slides.length/Math.ceil(t.params.grid.rows):t.slides.length;let i=t.pagination.el;i=$o(i);let o="";if("bullets"===e.type){let i=t.params.loop?Math.ceil(n/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&i>n&&(i=n);for(let n=0;n<i;n+=1)e.renderBullet?o+=e.renderBullet.call(t,n,e.bulletClass):o+=`<${e.bulletElement} ${t.isElement?'part="bullet"':""} class="${e.bulletClass}"></${e.bulletElement}>`}"fraction"===e.type&&(o=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):`<span class="${e.currentClass}"></span> / <span class="${e.totalClass}"></span>`),"progressbar"===e.type&&(o=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):`<span class="${e.progressbarFillClass}"></span>`),t.pagination.bullets=[],i.forEach(n=>{"custom"!==e.type&&Bo(n,o||""),"bullets"===e.type&&t.pagination.bullets.push(...n.querySelectorAll(wa(e.bulletClass)))}),"custom"!==e.type&&s("paginationRender",i[0])}function m(){t.params.pagination=ba(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const e=t.params.pagination;if(!e.el)return;let n;"string"==typeof e.el&&t.isElement&&(n=t.el.querySelector(e.el)),n||"string"!=typeof e.el||(n=[...document.querySelectorAll(e.el)]),n||(n=e.el),n&&0!==n.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&Array.isArray(n)&&n.length>1&&(n=[...t.el.querySelectorAll(e.el)],n.length>1&&(n=n.find(e=>No(e,".swiper")[0]===t.el))),Array.isArray(n)&&1===n.length&&(n=n[0]),Object.assign(t.pagination,{el:n}
2),n=$o(n),n.forEach(n=>{"bullets"===e.type&&e.clickable&&n.classList.add(...(e.clickableClass||"").split(" ")),n.classList.add(e.modifierClass+e.type),n.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass),"bullets"===e.type&&e.dynamicBullets&&(n.classList.add(`${e.modifierClass}${e.type}-dynamic`),r=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&n.classList.add(e.progressbarOppositeClass),e.clickable&&n.addEventListener("click",d),t.enabled||n.classList.add(e.lockClass)}))}function h(){const e=t.params.pagination;if(l())return;let n=t.pagination.el;n&&(n=$o(n),n.forEach(n=>{n.classList.remove(e.hiddenClass),n.classList.remove(e.modifierClass+e.type),n.classList.remove(t.isHorizontal()?e.horizontalClass:e.verticalClass),e.clickable&&(n.classList.remove(...(e.clickableClass||"").split(" ")),n.removeEventListener("click",d))})),t.pagination.bullets&&t.pagination.bullets.forEach(t=>t.classList.remove(...e.bulletActiveClass.split(" ")))}i("changeDirection",()=>{if(!t.pagination||!t.pagination.el)return;const e=t.params.pagination;let{el:n}=t.pagination;
2n=$o(n),n.forEach(n=>{n.classList.remove(e.horizontalClass,e.verticalClass),n.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass)})}),i("init",()=>{!1===t.params.pagination.enabled?f():(m(),p(),u())}),i("activeIndexChange",()=>{void 0===t.snapIndex&&u()}),i("snapIndexChange",()=>{u()}),i("snapGridLengthChange",()=>{p(),u()}),i("destroy",()=>{h()}),i("enable disable",()=>{let{el:e}=t.pagination;e&&(e=$o(e),e.forEach(e=>e.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass)))}),i("lock unlock",()=>{u()}),i("click",(e,n)=>{const i=n.target,o=$o(t.pagination.el);if(t.params.pagination.el&&t.params.pagination.hideOnClick&&o&&o.length>0&&!i.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&i===t.navigation.nextEl||t.navigation.prevEl&&i===t.navigation.prevEl))return;const e=o[0].classList.contains(t.params.pagination.hiddenClass);s(!0===e?"paginationShow":"paginationHide"),o.forEach(e=>e.classList.toggle(t.params.pagination.hiddenClass))}});const f=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=$o(e),e.forEach(e=>e.classList.add(t.params.pagination.paginationDisabledClass))),h()};Object.assign(t.pagination,{enable:()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=$o(e),e.forEach(e=>e.classList.remove(t.params.pagination.paginationDisabledClass))),m(),p(),u()},disable:f,render:p,update:u,init:m,destroy:h})}function Ea(e){let t,n,{swiper:i,extendParams:s,on:o,emit:a,params:r}=e;i.autoplay={running:!1,paused:!1,timeLeft:0},s({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let l,c,d,u,p,m,h,f,g=r&&r.autoplay?r.autoplay.delay:3e3,v=r&&r.autoplay?r.autoplay.delay:3e3,b=(new Date).getTime();function y(e){i&&!i.destroyed&&i.wrapperEl&&e.target===i.wrapperEl&&(i.wrapperEl.removeEventListener("transitionend",y),f||e.detail&&e.detail.bySwiperTouchMove||T())}const w=()=>{if(i.destroyed||!i.autoplay.running)return;i.autoplay.paused?c=!0:c&&(v=l,c=!1);const e=i.autoplay.paused?l:b+v-(new Date).getTime();i.autoplay.timeLeft=e,a("autoplayTimeLeft",e,e/g),n=requestAnimationFrame(()=>{w()})},_=e=>{if(i.destroyed||!i.autoplay.running)return;cancelAnimationFrame(n),w();let s=void 0===e?i.params.autoplay.delay:e;g=i.params.autoplay.delay,v=i.params.autoplay.delay;const o=(()=>{let e;if(e=i.virtual&&i.params.virtual.enabled?i.slides.find(e=>e.classList.contains("swiper-slide-active")):i.slides[i.activeIndex],e)return parseInt(e.getAttribute("data-swiper-autoplay"),10)})();!Number.isNaN(o)&&o>0&&void 0===e&&(s=o,g=o,v=o),l=s;const r=i.params.speed,c=()=>{i&&!i.destroyed&&(i.params.autoplay.reverseDirection?!i.isBeginning||i.params.loop||i.params.rewind?(i.slidePrev(r,!0,!0),a("autoplay")):i.params.autoplay.stopOnLastSlide||(i.slideTo(i.slides.length-1,r,!0,!0),a("autoplay")):!i.isEnd||i.params.loop||i.params.rewind?(i.slideNext(r,!0,!0),a("autoplay")):i.params.autoplay.stopOnLastSlide||(i.slideTo(0,r,!0,!0),a("autoplay")),i.params.cssMode&&(b=(new Date).getTime(),requestAnimationFrame(()=>{_()})))};return s>0?(clearTimeout(t),t=setTimeout(()=>{c()},s)):requestAnimationFrame(()=>{c()}),s},E=()=>{b=(new Date).getTime(),i.autoplay.running=!0,_(),a("autoplayStart")},S=()=>{i.autoplay.running=!1,clearTimeout(t),cancelAnimationFrame(n),a("autoplayStop")},x=(e,n)=>{if(i.destroyed||!i.autoplay.running)return;clearTimeout(t),e||(h=!0);const s=()=>{a("autoplayPause"),i.params.autoplay.waitForTransition?i.wrapperEl.addEventListener("transitionend",y):T()};if(i.autoplay.paused=!0,n)return m&&(l=i.params.autoplay.delay),m=!1,void s();const o=l||i.params.autoplay.delay;l=o-((new Date).getTime()-b),i.isEnd&&l<0&&!i.params.loop||(l<0&&(l=0),s())},T=()=>{i.isEnd&&l<0&&!i.params.loop||i.destroyed||!i.autoplay.running||(b=(new Date).getTime(),h?(h=!1,_(l)):_(),i.autoplay.paused=!1,a("autoplayResume"))},C=()=>{if(i.destroyed||!i.autoplay.running)return;const e=wo();"hidden"===e.visibilityState&&(h=!0,x(!0)),"visible"===e.visibilityState&&T()},L=e=>{"mouse"===e.pointerType&&(h=!0,f=!0,i.animating||i.autoplay.paused||x(!0))},k=e=>{"mouse"===e.pointerType&&(f=!1,i.autoplay.paused&&T())};o("init",()=>{i.params.autoplay.enabled&&(i.params.autoplay.pauseOnMouseEnter&&(i.el.addEventListener("pointerenter",L
2),i.el.addEventListener("pointerleave",k)),wo().addEventListener("visibilitychange",C),E())}),o("destroy",()=>{i.el&&"string"!=typeof i.el&&(i.el.removeEventListener("pointerenter",L),i.el.removeEventListener("pointerleave",k)),wo().removeEventListener("visibilitychange",C),i.autoplay.running&&S()}),o("_freeModeStaticRelease",()=>{(u||h)&&T()}),o("_freeModeNoMomentumRelease",()=>{i.params.autoplay.disableOnInteraction?S():x(!0,!0)}),o("beforeTransitionStart",(e,t,n)=>{!i.destroyed&&i.autoplay.running&&(n||!i.params.autoplay.disableOnInteraction?x(!0,!0):S())}),o("sliderFirstMove",()=>{!i.destroyed&&i.autoplay.running&&(i.params.autoplay.disableOnInteraction?S():(d=!0,u=!1,h=!1,p=setTimeout(()=>{h=!0,u=!0,x(!0)},200)))}),o("touchEnd",()=>{if(!i.destroyed&&i.autoplay.running&&d){if(clearTimeout(p),clearTimeout(t),i.params.autoplay.disableOnInteraction)return u=!1,void(d=!1);u&&i.params.cssMode&&T(),u=!1,d=!1}}),o("slideChange",()=>{!i.destroyed&&i.autoplay.running&&(m=!0)}),Object.assign(i.autoplay,{start:E,stop:S,pause:x,resume:T})}function Sa(e){let{swiper:t,extendParams:n,on:i}=e;n({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let s=!1,o=!1;function a(){const e=t.thumbs.swiper;if(!e||e.destroyed)return;const n=e.clickedIndex,i=e.clickedSlide;if(i&&i.classList.contains(t.params.thumbs.slideThumbActiveClass))return;if(null==n)return;let s;s=e.params.loop?parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10):n,t.params.loop?t.slideToLoop(s):t.slideTo(s)}function r(){const{thumbs:e}=t.params;if(s)return!1;s=!0;const n=t.constructor;if(e.swiper instanceof n){if(e.swiper.destroyed)return s=!1,!1;t.thumbs.swiper=e.swiper,Object.assign(t.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(t.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper.update()}else if(To(e.swiper)){const i=Object.assign({},e.swiper);Object.assign(i,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper=new n(i),o=!0}return t.thumbs.swiper.el.classList.add(t.params.thumbs.thumbsContainerClass),t.thumbs.swiper.on("tap",a),!0}function l(e){const n=t.thumbs.swiper;if(!n||n.destroyed)return;const i="auto"===n.params.slidesPerView?n.slidesPerViewDynamic():n.params.slidesPerView;let s=1;const o=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(s=t.params.slidesPerView),t.params.thumbs.multipleActiveThumbs||(s=1),s=Math.floor(s),n.slides.forEach(e=>e.classList.remove(o)),n.params.loop||n.params.virtual&&n.params.virtual.enabled)for(let e=0;e<s;e+=1)Po(n.slidesEl,`[data-swiper-slide-index="${t.realIndex+e}"]`).forEach(e=>{e.classList.add(o)});else for(let e=0;e<s;e+=1)n.slides[t.realIndex+e]&&n.slides[t.realIndex+e].classList.add(o);const a=t.params.thumbs.autoScrollOffset,r=a&&!n.params.loop;if(t.realIndex!==n.realIndex||r){const s=n.activeIndex;let o,l;if(n.params.loop){const e=n.slides.find(e=>e.getAttribute("data-swiper-slide-index")===`${t.realIndex}`);o=n.slides.indexOf(e),l=t.activeIndex>t.previousIndex?"next":"prev"}else o=t.realIndex,l=o>t.previousIndex?"next":"prev";r&&(o+="next"===l?a:-1*a),n.visibleSlidesIndexes&&n.visibleSlidesIndexes.indexOf(o)<0&&(n.params.centeredSlides?o=o>s?o-Math.floor(i/2)+1:o+Math.floor(i/2)-1:o>s&&n.params.slidesPerGroup,n.slideTo(o,e?0:void 0))}}t.thumbs={swiper:null},i("beforeInit",()=>{const{thumbs:e}=t.params;if(e&&e.swiper)if("string"==typeof e.swiper||e.swiper instanceof HTMLElement){const n=wo(),i=()=>{const i="string"==typeof e.swiper?n.querySelector(e.swiper):e.swiper;if(i&&i.swiper)e.swiper=i.swiper,r(),l(!0);else if(i){const n=`${t.params.eventsPrefix}init`,s=o=>{e.swiper=o.detail[0],i.removeEventListener(n,s),r(),l(!0),e.swiper.update(),t.update()};i.addEventListener(n,s)}return i},s=()=>{t.destroyed||i()||requestAnimationFrame(s)};requestAnimationFrame(s)}else r(),l(!0)}),i("slideChange update resize observerUpdate",()=>{l()}),i("setTransition",(e,n)=>{const i=t.thumbs.swiper;i&&!i.destroyed&&i.setTransition(n)}),i("beforeDestroy",()=>{const e=t.thumbs.swiper;e&&!e.destroyed&&o&&e.destroy()}),Object.assign(t.thumbs,{init:r,update:l})}function xa(e){let{swiper:t,extendParams:n,emit:i,once:s}=e;n({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(t,{freeMode:{onTouchStart:function(){if(t.params.cssMode)return;const e=t.getTranslate();t.setTranslate(e),t.setTransition(0),t.touchEventsData.velocities.length=0,t.freeMode.onTouchEnd({currentPos:t.rtl?t.translate:-t.translate})},onTouchMove:function(){if(t.params.cssMode)return;const{touchEventsData:e,touches:n}=t;0===e.velocities.length&&e.velocities.push({position:n[t.isHorizontal()?"startX":"startY"],time:e.touchStartTime}),e.velocities.push({position:n[t.isHorizontal()?"currentX":"currentY"],time:xo()})},onTouchEnd:function(e){let{currentPos:n}=e;if(t.params.cssMode)return;const{params:o,wrapperEl:a,rtlTranslate:r,snapGrid:l,touchEventsData:c}=t,d=xo()-c.touchStartTime;if(n<-t.minTranslate())t.slideTo(t.activeIndex);else if(n>-t.maxTranslate())t.slides.length<l.length?t.slideTo(l.length-1):t.slideTo(t.slides.length-1);else{if(o.freeMode.momentum){if(c.velocities.length>1){const e=c.velocities.pop(),n=c.velocities.pop(),i=e.position-n.position,s=e.time-n.time;t.velocity=i/s,t.velocity/=2,Math.abs(t.velocity)<o.freeMode.minimumVelocity&&(t.velocity=0),(s>150||xo()-e.time>300)&&(t.velocity=0)}else t.velocity=0;
2t.velocity*=o.freeMode.momentumVelocityRatio,c.velocities.length=0;let e=1e3*o.freeMode.momentumRatio;const n=t.velocity*e;let d=t.translate+n;r&&(d=-d);let u,p=!1;const m=20*Math.abs(t.velocity)*o.freeMode.momentumBounceRatio;let h;if(d<t.maxTranslate())o.freeMode.momentumBounce?(d+t.maxTranslate()<-m&&(d=t.maxTranslate()-m),u=t.maxTranslate(),p=!0,c.allowMomentumBounce=!0):d=t.maxTranslate(),o.loop&&o.centeredSlides&&(h=!0);else if(d>t.minTranslate())o.freeMode.momentumBounce?(d-t.minTranslate()>m&&(d=t.minTranslate()+m),u=t.minTranslate(),p=!0,c.allowMomentumBounce=!0):d=t.minTranslate(),o.loop&&o.centeredSlides&&(h=!0);else if(o.freeMode.sticky){let e;for(let t=0;t<l.length;t+=1)if(l[t]>-d){e=t;break}d=Math.abs(l[e]-d)<Math.abs(l[e-1]-d)||"next"===t.swipeDirection?l[e]:l[e-1],d=-d}if(h&&s("transitionEnd",()=>{t.loopFix()}),0!==t.velocity){if(e=r?Math.abs((-d-t.translate)/t.velocity):Math.abs((d-t.translate)/t.velocity),o.freeMode.sticky){const n=Math.abs((r?-d:d)-t.translate),i=t.slidesSizesGrid[t.activeIndex];e=n<i?o.speed:n<2*i?1.5*o.speed:2.5*o.speed}}else if(o.freeMode.sticky)return void t.slideToClosest();o.freeMode.momentumBounce&&p?(t.updateProgress(u),t.setTransition(e),t.setTranslate(d),t.transitionStart(!0,t.swipeDirection),t.animating=!0,qo(a,()=>{t&&!t.destroyed&&c.allowMomentumBounce&&(i("momentumBounce"),t.setTransition(o.speed),setTimeout(()=>{t.setTranslate(u),qo(a,()=>{t&&!t.destroyed&&t.transitionEnd()})},0))})):t.velocity?(i("_freeModeNoMomentumRelease"),t.updateProgress(d),t.setTransition(e),t.setTranslate(d),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,qo(a,()=>{t&&!t.destroyed&&t.transitionEnd()}))):t.updateProgress(d),t.updateActiveIndex(),t.updateSlidesClasses()}else{if(o.freeMode.sticky)return void t.slideToClosest();o.freeMode&&i("_freeModeNoMomentumRelease")}(!o.freeMode.momentum||d>=o.longSwipesMs)&&(i("_freeModeStaticRelease"),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}}}})}function Ta(){const e=document.getElementById("top-banner-swiper");if(!e)return;const t=document.querySelector(".top-banner__arrow--prev"),n=document.querySelector(".top-banner__arrow--next");if(e.querySelectorAll(".swiper-slide").length<=1)return;const i=new va(e,{modules:[ya,Ea],loop:!0,autoplay:{delay:5e3,disableOnInteraction:!1,pauseOnMouseEnter:!0},speed:600,navigation:{prevEl:t,nextEl:n},watchOverflow:!0,allowTouchMove:!1});document.addEventListener("visibilitychange",function(){document.hidden?i.autoplay.stop():i.autoplay.start()})}function Ca(e,...t){return"function"==typeof window.bonelliI18n?window.bonelliI18n(e,...t):""}Object.keys(fa).forEach(e=>{Object.keys(fa[e]).forEach(t=>{va.prototype[t]=fa[e][t]})}),va.use([function(e){let{swiper:t,on:n,emit:i}=e;const s=Eo();let o=null,a=null;const r=()=>{t&&!t.destroyed&&t.initialized&&(i("beforeResize"),i("resize"))},l=()=>{t&&!t.destroyed&&t.initialized&&i("orientationchange")};n("init",()=>{t.params.resizeObserver&&void 0!==s.ResizeObserver?t&&!t.destroyed&&t.initialized&&(o=new ResizeObserver(e=>{a=s.requestAnimationFrame(()=>{const{width:n,height:i}=t;let s=n,o=i;e.forEach(e=>{let{contentBoxSize:n,contentRect:i,target:a}=e;a&&a!==t.el||(s=i?i.width:(n[0]||n).inlineSize,o=i?i.height:(n[0]||n).blockSize)}),s===n&&o===i||r()})}),o.observe(t.el)):(s.addEventListener("resize",r),s.addEventListener("orientationchange",l))}),n("destroy",()=>{a&&s.cancelAnimationFrame(a),o&&o.unobserve&&t.el&&(o.unobserve(t.el),o=null),s.removeEventListener("resize",r),s.removeEventListener("orientationchange",l)})},function(e){let{swiper:t,extendParams:n,on:i,emit:s}=e;const o=[],a=Eo(),r=function(e,n){void 0===n&&(n={});const i=new(a.MutationObserver||a.WebkitMutationObserver)(e=>{if(t.__preventObserver__)return;if(1===e.length)return void s("observerUpdate",e[0]);const n=function(){s("observerUpdate",e[0])};a.requestAnimationFrame?a.requestAnimationFrame(n):a.setTimeout(n,0)});i.observe(e,{attributes:void 0===n.attributes||n.attributes,childList:t.isElement||(void 0===n.childList||n).childList,characterData:void 0===n.characterData||n.characterData}),o.push(i)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),i("init",()=>{if(t.params.observer){if(t.params.observeParents){const e=No(t.hostEl);for(let t=0;t<e.length;t+=1)r(e[t])}r(t.hostEl,{childList:t.params.observeSlideChildren}),r(t.wrapperEl,{attributes:!1})}}),i("destroy",()=>
2{o.forEach(e=>{e.disconnect()}),o.splice(0,o.length)})}]),window.Swiper=va,document.addEventListener("DOMContentLoaded",function(){!function(){const e=document.querySelector(".main-image-container"),t=document.querySelector(".product-main-swiper"),n=document.querySelector(".product-thumbs-swiper");if(e&&t)if(window.innerWidth<992){new va(t,{spaceBetween:0,modules:[_a],pagination:{el:".swiper-pagination",clickable:!0}});const i=t.querySelector(".swiper-pagination");i&&(i.style.display="block")}else{if(!n)return;function s(){const t=e.getBoundingClientRect().height;t&&t>0&&(n.style.height=`${t}px`)}s(),window.addEventListener("resize",s);const o=new va(n,{direction:"vertical",slidesPerView:4,spaceBetween:20,freeMode:!0,watchSlidesProgress:!0,modules:[ya,xa],navigation:{nextEl:".thumbs-button-next",prevEl:".thumbs-button-prev"},breakpoints:{320:{slidesPerView:3,spaceBetween:15},768:{slidesPerView:4,spaceBetween:20}}});new va(t,{spaceBetween:0,modules:[Sa],thumbs:{swiper:o}})}}(),function(){const e=document.querySelectorAll(".articoli-swiper");0!==e.length&&e.forEach(function(e){e.swiper&&e.swiper.destroy(!0,!0),new va(e,{slidesPerView:1.5,spaceBetween:20,loop:!1,freeMode:!1,breakpoints:{0:{slidesPerView:1.5,spaceBetween:20},480:{slidesPerView:1.5,spaceBetween:20},768:{slidesPerView:2,spaceBetween:20},1024:{slidesPerView:3,spaceBetween:20},1200:{slidesPerView:4,spaceBetween:20}},speed:600})})}(),function(){const e=document.querySelectorAll(".tutti-prodotti-swiper");0!==e.length&&e.forEach(function(e){e.swiper&&e.swiper.destroy(!0,!0),new va(e,{slidesPerView:1.5,spaceBetween:20,loop:!1,freeMode:!1,breakpoints:{0:{slidesPerView:1.5,spaceBetween:20},480:{slidesPerView:1.5,spaceBetween:20},768:{slidesPerView:2,spaceBetween:20},1024:{slidesPerView:3,spaceBetween:20},1200:{slidesPerView:4,spaceBetween:20}},speed:600})})}(),function(){const e=document.querySelectorAll(".card-categorie-swiper");0!==e.length&&e.forEach(function(e){e.swiper&&e.swiper.destroy(!0,!0),new va(e,{slidesPerView:1.5,spaceBetween:20,loop:!1,freeMode:!1,breakpoints:{0:{slidesPerView:1.5,spaceBetween:20},480:{slidesPerView:1.5,spaceBetween:20},768:{slidesPerView:2,spaceBetween:20},1024:{slidesPerView:3,spaceBetween:20}},speed:600})})}()}),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",Ta):Ta(),n(109),n(647),n(134),n(514),n(656),window.bootstrap=t,document.addEventListener("DOMContentLoaded",function(){!function(){const e=document.getElementById("sortSelect");if(!e)return;const t=document.createElement("div");t.className="custom-select-wrapper";const n=document.createElement("div");n.className="custom-select-display";const i=document.createElement("ul");i.className="custom-select-list";const s=Array.from(e.options);let o=s.find(e=>e.selected)?.text||s[0]?.text||"",a="";s.forEach(e=>{e.text.length>a.length&&(a=e.text)}),n.textContent=o,n.innerHTML+='<i class="fas fa-angle-down custom-select-arrow"></i>';const r=document.createElement("div");r.style.position="absolute",r.style.visibility="hidden",r.style.whiteSpace="nowrap",r.style.fontFamily="Bebas Neue",r.style.fontSize="24px",r.style.fontWeight="400",r.style.padding="18px 24px",r.textContent=a+" ▼",document.body.appendChild(r);const l=r.offsetWidth+20;document.body.removeChild(r),t.style.width=l+"px",s.forEach((s,o)=>{const a=document.createElement("li");a.className="custom-select-option",a.textContent=s.text,a.dataset.value=s.value,s.selected&&a.classList.add("selected"),a.addEventListener("click",function(){e.value=s.value,n.innerHTML=s.text+'<i class="fas fa-angle-down custom-select-arrow"></i>',i.querySelectorAll(".custom-select-option").forEach(e=>e.classList.remove("selected")),this.classList.add("selected"),t.classList.remove("open"),e.dispatchEvent(new Event("change"))}),i.appendChild(a)}),n.addEventListener("click",function(e){e.stopPropagation(),t.classList.toggle("open")}),document.addEventListener("click",function(e){t.contains(e.target)||t.classList.remove("open")}),t.appendChild(n),t.appendChild(i),e.style.display="none",e.parentNode.insertBefore(t,e.nextSibling)}
2(),document.querySelectorAll(".add-to-cart-btn").forEach(e=>{e.addEventListener("click",function(t){if(this.classList.contains("in-arrivo"))return;if("A"===this.tagName&&!this.getAttribute("data-product-id"))return;t.preventDefault();const n=this.getAttribute("data-product-id"),i=e.querySelector(".btn-text-desktop"),s=e.querySelector(".btn-text-tablet-mobile"),o=i?i.textContent:e.textContent.trim(),a=s?s.textContent:o,r=function(t,n){i&&s?(i.textContent=t,s.textContent=n):e.innerHTML='<span class="btn-text-desktop">'+t+'</span><span class="btn-text-tablet-mobile">'+n+"</span>"},l=function(){r(o,a)};r(Ca("adding"),Ca("adding")),e.disabled=!0,function(e,t,n){const i=new FormData;i.append("action","check_stock_before_add"),i.append("product_id",e),i.append("variation_id",0),i.append("nonce",window.bonelli_ajax?window.bonelli_ajax.nonce:""),fetch(window.bonelli_ajax?window.bonelli_ajax.ajax_url:"/wp-admin/admin-ajax.php",{method:"POST",body:i}).then(e=>e.json()).then(e=>{if(e.success){const t=e.data.can_add,i=e.data.stock_quantity,s=(e.data.cart_quantity,e.data.error_message);n(t,i,0,s)}else n(!1,0,0,Ca("stock_check_error"))}).catch(e=>{n(!1,0,0,Ca("stock_check_error"))})}(n,0,function(t,i,s,o){if(!t)return l(),e.disabled=!1,void function(e,t){const n=t||Ca("max_quantity_reached",e);window.showToast?window.showToast(n,"error",4e3):alert(n)}(i,o||Ca("quantity_unavailable",i));const a=new FormData;a.append("action","add_to_cart_ajax"),a.append("product_id",n),a.append("variation_id",0),a.append("quantity",1),a.append("nonce",window.bonelli_ajax?window.bonelli_ajax.nonce:""),fetch(window.bonelli_ajax?window.bonelli_ajax.ajax_url:"/wp-admin/admin-ajax.php",{method:"POST",body:a}).then(e=>e.json()).then(t=>{if(t.success){if(r(Ca("added"),Ca("added")),e.classList.add("btn-success"),void 0!==t.data.cart_count){const e=document.querySelector(".cart-count");e&&(e.textContent=t.data.cart_count)}const n=document.getElementById("cart-offcanvas"),i=document.getElementById("cart-overlay");n&&i&&(n.classList.add("active"),i.classList.add("active"),document.body.style.overflow="hidden",window.refreshCartOffcanvas&&window.refreshCartOffcanvas()),setTimeout(()=>{l(),e.disabled=!1,e.classList.remove("btn-success")},2e3)}else l(),e.disabled=!1,alert(Ca("add_to_cart_error",t.data||Ca("unknown_error")))}).catch(t=>{l(),e.disabled=!1,alert(Ca("connection_error")),console.error("Error:",t)})})})});const e=document.getElementById("sortSelect");e&&e.addEventListener("change",function(){const e=this.value;if(!e)return;const t=new URL(window.location.href);t.pathname=t.pathname.replace(/\/page\/\d+\/?$/,"/"),t.searchParams.delete("paged"),t.pathname.includes("/prossimamente")||t.pathname.endsWith("/prossimamente/")||e&&"latest"!==e?t.searchParams.set("orderby",e):t.searchParams.delete("orderby"),window.location.href=t.toString()});const t=document.getElementById("showFilters"),n=document.getElementById("filters-offcanvas"),i=document.getElementById("filters-overlay"),s=document.getElementById("close-filters"),o=document.getElementById("reset-filters-top");function a(){n&&i&&(n.classList.remove("active"),i.classList.remove("active"),document.body.style.overflow="")}t&&t.addEventListener("click",function(){n&&i&&(n.classList.add("active"),i.classList.add("active"),document.body.style.overflow="hidden")}),s&&s.addEventListener("click",a),i&&i.addEventListener("click",a),o&&o.addEventListener("click",function(e){e.preventDefault();const t=new URL(window.location.href),n=new URLSearchParams(t.search),i=[];for(const e of n.keys())(e.startsWith("filter_")||"numero_from"===e||"numero_to"===e||"date_from"===e||"date_to"===e||"disponibile"===e)&&i.push(e);i.forEach(e=>n.delete(e)),n.delete("paged");let s=t.pathname;s=s.replace(/\/page\/\d+\/?$/,"");const o=t.origin+s,a=n.toString(),r=a?o+"?"+a:o;window.location.href=r}),document.addEventListener("keydown",function(e){"Escape"===e.key&&n&&n.classList.contains("active")&&a()});const r=document.querySelectorAll("[data-filter-toggle]");r.forEach(e=>{e.addEventListener("click",function(){const e=this.nextElementSibling,t=this.classList.contains("active");
2r.forEach(e=>{e!==this&&(e.classList.remove("active"),e.nextElementSibling.classList.remove("active"))}),t?(this.classList.remove("active"),e.classList.remove("active")):(this.classList.add("active"),e.classList.add("active"))})}),document.querySelectorAll("[data-filter-remove]").forEach(e=>{e.addEventListener("click",function(){const e=this.getAttribute("data-filter-type"),t=this.getAttribute("data-filter-value");if(e.startsWith("range-")){const t=e.replace("range-",""),n=document.querySelector(`input[name="${t}_from"]`),i=document.querySelector(`input[name="${t}_to"]`);n&&(n.value="",n.value&&""!==n.value.trim()||n.removeAttribute("name")),i&&(i.value="",i.value&&""!==i.value.trim()||i.removeAttribute("name"))}else if(e.startsWith("date-")){const e=document.querySelector('input[name="date_from"]'),t=document.querySelector('input[name="date_to"]');e&&(e.value="",e.value&&""!==e.value.trim()||e.removeAttribute("name")),t&&(t.value="",t.value&&""!==t.value.trim()||t.removeAttribute("name"))}else if(e.startsWith("toggle-")){const t=e.replace("toggle-",""),n=document.querySelector(`input[name="${t}"]`);n&&(n.checked=!1,n.checked||n.removeAttribute("name"))}else{const n=document.querySelector(`input[name="filter_${e}[]"][value="${t}"]`);n&&(n.checked=!1)}const n=document.getElementById("filters-form");if(n){const e=new Event("submit",{bubbles:!0,cancelable:!0});n.dispatchEvent(e)}})});const l=document.getElementById("filters-form");l&&l.addEventListener("submit",function(e){e.preventDefault(),this.querySelectorAll('input[type="number"], input[type="date"], input[type="text"]').forEach(e=>{e.value&&""!==e.value.trim()||e.removeAttribute("name")}),this.querySelectorAll('input[type="checkbox"]').forEach(e=>{e.checked||e.removeAttribute("name")});const t=new FormData(this),n=new URLSearchParams;for(const[e,i]of t.entries()){const t=i?i.toString().trim():"";""!==t&&"null"!==t&&"undefined"!==t&&n.append(e,i)}for(const[e,t]of n.entries())t&&""!==t.toString().trim()&&"null"!==t&&"undefined"!==t||n.delete(e);const i=new URL(window.location.href);let s=i.pathname;s=s.replace(/\/page\/\d+\/?$/,"");const o=new Set;for(const[e,n]of t.entries())if(e.startsWith("filter_personaggio")){const e=n?n.toString().trim():"";""!==e&&"null"!==e&&"undefined"!==e&&o.add(e)}if(o.size>0&&s.startsWith("/categoria-prodotto/")){const e=s.split("/").filter(e=>e);if(e.length>=3&&"categoria-prodotto"===e[0]){const t=e[e.length-1];o.has(t)&&(e.pop(),s="/"+e.join("/"),e.length>1&&(s+="/"),"//"===s&&(s="/"))}}const a=new URLSearchParams(i.search);for(const[e,t]of a.entries())t&&""!==t.trim()&&"null"!==t&&"undefined"!==t||a.delete(e);const r=i.origin+s,l=n.toString(),c=l?r+"?"+l:r;window.location.href=c}),document.getElementById("search-toggle");const c=document.getElementById("search-section"),d=document.querySelector(".search-form-input"),u=document.querySelectorAll(".search-toggle");if(u.length&&c){const e=function(e){c.classList.toggle("active",e),c.setAttribute("aria-hidden",e?"false":"true"),u.forEach(function(t){t.setAttribute("aria-expanded",e?"true":"false")}),document.body.style.overflow=e?"hidden":"",e&&d&&setTimeout(function(){d.focus()},300)};u.forEach(t=>{t.addEventListener("click",function(t){t.preventDefault(),e(!c.classList.contains("active"))})}),document.addEventListener("keydown",function(t){"Escape"===t.key&&c.classList.contains("active")&&e(!1)})}!function(){const e=document.querySelector(".search-form");if(!e)return;e.addEventListener("submit",function(e){e.preventDefault()});const t=e.querySelector(".search-form-input");t&&t.addEventListener("keydown",function(e){"Enter"===e.key&&e.preventDefault()});const n=e.querySelector(".search-form-submit");n&&n.addEventListener("click",function(e){e.preventDefault()})}()})})()})();

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.