vendor: 11,552 bytes, line 1
1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[996,927],{4927:(e,t,i)=>{i.r(t),i.d(t,{default:()=>ge});var n=i(6826),s=i(4692),o=i.n(s);function r(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function a(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach((i=>{void 0===e[i]?e[i]=t[i]:r(t[i])&&r(e[i])&&Object.keys(t[i]).length>0&&a(e[i],t[i])}))}const l={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 c(){const e="undefined"!=typeof document?document:{};return a(e,l),e}const d={document:l,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 u(){const e="undefined"!=typeof window?window:{};return a(e,d),e}function h(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function f(){return Date.now()}function p(e,t){void 0===t&&(t="x");const i=u();let n,s,o;const r=function(e){const t=u();let i;return t.getComputedStyle&&(i=t.getComputedStyle(e,null)),!i&&e.currentStyle&&(i=e.currentStyle),i||(i=e.style),i}(e);return i.WebKitCSSMatrix?(s=r.transform||r.webkitTransform,s.split(",").length>6&&(s=s.split(", ").map((e=>e.replace(",","."))).join(", ")),o=new i.WebKitCSSMatrix("none"===s?"":s)):(o=r.MozTransform||r.OTransform||r.MsTransform||r.msTransform||r.transform||r.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=o.toString().split(",")),"x"===t&&(s=i.WebKitCSSMatrix?o.m41:16===n.length?parseFloat(n[12]):parseFloat(n[4])),"y"===t&&(s=i.WebKitCSSMatrix?o.m42:16===n.length?parseFloat(n[13]):parseFloat(n[5])),s||0}function m(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function g(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let n=1;n<arguments.length;n+=1){const s=n<0||arguments.length<=n?void 0:arguments[n];if(null!=s&&(i=s,!("undefined"!=typeof window&&void 0!==window.HTMLElement?i instanceof HTMLElement:i&&(1===i.nodeType||11===i.nodeType)))){const i=Object.keys(Object(s)).filter((e=>t.indexOf(e)<0));for(let t=0,n=i.length;t<n;t+=1){const n=i[t],o=Object.getOwnPropertyDescriptor(s,n);void 0!==o&&o.enumerable&&(m(e[n])&&m(s[n])?s[n].__swiper__?e[n]=s[n]:g(e[n],s[n]):!m(e[n])&&m(s[n])?(e[n]={},s[n].__swiper__?e[n]=s[n]:g(e[n],s[n])):e[n]=s[n])}}}var i;return e}function v(e,t,i){e.style.setProperty(t,i)}function b(e){let{swiper:t,targetPosition:i,side:n}=e;const s=u(),o=-t.translate;let r,a=null;const l=t.params.speed;t.wrapperEl.style.scrollSnapType="none",s.cancelAnimationFrame(t.cssModeFrameID);const c=i>o?"next":"prev",d=(e,t)=>"next"===c&&e>=t||"prev"===c&&e<=t,h=()=>{r=(new Date).getTime(),null===a&&(a=r);const e=Math.max(Math.min((r-a)/l,1),0),c=.5-Math.cos(e*Math.PI)/2;let u=o+c*(i-o);if(d(u,i)&&(u=i),t.wrapperEl.scrollTo({[n]:u}),d(u,i))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout((()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[n]:u})})),void s.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=s.requestAnimationFrame(h)};h()}function y(e,t){return void 0===t&&(t=""),[...e.children].filter((e=>e.matches(t)))}function w(e){try{return void console.warn(e)}catch(e){}}function S(e,t){void 0===t&&(t=[]);const i=document.createElement(e);return i.classList.add(...Array.isArray(t)?t:function(e){return void 0===e&&(e=""),e.trim().split(" ").filter((e=>!!e.trim()))}(t)),i}function x(e,t){return u().getComputedStyle(e,null).getPropertyValue(t)}function E(e){let t,i=e;if(i){for(t=0;null!==(i=i.previousSibling);)1===i.nodeType&&(t+=1);return t}}function T(e,t,i){const n=u();return i?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(n.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(n.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}function M(e){return(Array.isArray(e)?e:[e]).filter((e=>!!e))}let C,P,O;function A(){return C||(C=function(){const e=u(),t=c();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),C}function k(e){return void 0===e&&(e={}),P||(P=function(e){let{userAgent:t}=void 0===e?{}:e;const i=A(),n=u(),s=n.navigator.platform,o=t||n.navigator.userAgent,r={ios:!1,android:!1},a=n.screen.width,l=n.screen.height,c=o.match(/(Android);?[\s\/]+([\d.]+)?/);let d=o.match(/(iPad).*OS\s([\d_]+)/);const h=o.match(/(iPod)(.*OS\s([\d_]+))?/),f=!d&&o.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p="Win32"===s;let m="MacIntel"===s;return!d&&m&&i.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${a}x${l}`)>=0&&(d=o.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),m=!1),c&&!p&&(r.os="android",r.android=!0),(d||f||h)&&(r.os="ios",r.ios=!0),r}(e)),P}function I(){return O||(O=function(){const e=u(),t=k();let i=!1;function n(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(n()){const t=String(e.navigator.userAgent);if(t.includes("Version/")){const[e,n]=t.split("Version/")[1].split(" ")[0].split(".").map((e=>Number(e)));i=e<16||16===e&&n<2}}const s=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),o=n();return{isSafari:i||o,needPerspectiveFix:i,need3dFix:o||s&&t.ios,isWebView:s}}()),O}var L={on(e,t,i){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof t)return n;const s=i?"unshift":"push";return e.split(" ").forEach((e=>{n.eventsListeners[e]||(n.eventsListeners[e]=[]),n.eventsListeners[e][s](t)})),n},once(e,t,i){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof t)return n;function s(){n.off(e,s),s.__emitterProxy&&delete s.__emitterProxy;for(var i=arguments.length,o=new Array(i),r=0;r<i;r++)o[r]=arguments[r];t.apply(n,o)}return s.__emitterProxy=t,n.on(e,s,i)},onAny(e,t){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof e)return i;const n=t?"unshift":"push";return i.eventsAnyListeners.indexOf(e)<0&&i.eventsAnyListeners[n](e),i},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const i=t.eventsAnyListeners.indexOf(e);return i>=0&&t.eventsAnyListeners.splice(i,1),t},off(e,t){const i=this;return!i.eventsListeners||i.destroyed?i:i.eventsListeners?(e.split(" ").forEach((e=>{void 0===t?i.eventsListeners[e]=[]:i.eventsListeners[e]&&i.eventsListeners[e].forEach(((n,s)=>{(n===t||n.__emitterProxy&&n.__emitterProxy===t)&&i.eventsListeners[e].splice(s,1)}))})),i):i},emit(){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsListeners)return e;let t,i,n;for(var s=arguments.length,o=new Array(s),r=0;r<s;r++)o[r]=arguments[r];"string"==typeof o[0]||Array.isArray(o[0])?(t=o[0],i=o.slice(1,o.length),n=e):(t=o[0].events,i=o[0].data,n=o[0].context||e),i.unshift(n);return(Array.isArray(t)?t:t.split(" ")).forEach((t=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach((e=>{e.apply(n,[t,...i])})),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach((e=>{e.apply(n,i)}))})),e}};const F=(e,t,i)=>{t&&!e.classList.contains(i)?e.classList.add(i):!t&&e.classList.contains(i)&&e.classList.remove(i)};const z=(e,t)=>{if(!e||e.destroyed||!e.params)return;const i=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(i){let t=i.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(i.shadowRoot?t=i.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame((()=>{i.shadowRoot&&(t=i.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),t&&t.remove())}))),t&&t.remove()}},D=(e,t)=>{if(!e.slides[t])return;const i=e.slides[t].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},R=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const i=e.slides.length;if(!i||!t||t<0)return;t=Math.min(t,i);const n="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),s=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const i=s,o=[i-t];return o.push(...Array.from({length:t}).map(((e,t)=>i+n+t))),void e.slides.forEach(((t,i)=>{o.includes(t.column)&&D(e,i)}))}const o=s+n-1;if(e.params.rewind||e.params.loop)for(let n=s-t;n<=o+t;n+=1){const t=(n%i+i)%i;(t<s||t>o)&&D(e,t)}else for(let n=Math.max(s-t,0);n<=Math.min(o+t,i-1);n+=1)n!==s&&(n>o||n<s)&&D(e,n)};var j={updateSize:function(){const e=this;let t,i;const n=e.el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:n.clientWidth,i=void 0!==e.params.height&&null!==e.params.height?e.params.height:n.clientHeight,0===t&&e.isHorizontal()||0===i&&e.isVertical()||(t=t-parseInt(x(n,"padding-left")||0,10)-parseInt(x(n,"padding-right")||0,10),i=i-parseInt(x(n,"padding-top")||0,10)-parseInt(x(n,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(i)&&(i=0),Object.assign(e,{width:t,height:i,size:e.isHorizontal()?t:i}))},updateSlides:function(){const e=this;function t(t,i){return parseFloat(t.getPropertyValue(e.getDirectionLabel(i))||0)}const i=e.params,{wrapperEl:n,slidesEl:s,size:o,rtlTranslate:r,wrongRTL:a}=e,l=e.virtual&&i.virtual.enabled,c=l?e.virtual.slides.length:e.slides.length,d=y(s,`.${e.params.slideClass}, swiper-slide`),u=l?e.virtual.slides.length:d.length;let h=[];const f=[],p=[];let m=i.slidesOffsetBefore;"function"==typeof m&&(m=i.slidesOffsetBefore.call(e));let g=i.slidesOffsetAfter;"function"==typeof g&&(g=i.slidesOffsetAfter.call(e));const b=e.snapGrid.length,w=e.slidesGrid.length;let S=i.spaceBetween,E=-m,M=0,C=0;if(void 0===o)return;"string"==typeof S&&S.indexOf("%")>=0?S=parseFloat(S.replace("%",""))/100*o:"string"==typeof S&&(S=parseFloat(S)),e.virtualSize=-S,d.forEach((e=>{r?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""})),i.centeredSlides&&i.cssMode&&(v(n,"--swiper-centered-offset-before",""),v(n,"--swiper-centered-offset-after",""));const P=i.grid&&i.grid.rows>1&&e.grid;let O;P?e.grid.initSlides(d):e.grid&&e.grid.unsetSlides();const A="auto"===i.slidesPerView&&i.breakpoints&&Object.keys(i.breakpoints).filter((e=>void 0!==i.breakpoints[e].slidesPerView)).length>0;for(let n=0;n<u;n+=1){let s;if(O=0,d[n]&&(s=d[n]),P&&e.grid.updateSlide(n,s,d),!d[n]||"none"!==x(s,"display")){if("auto"===i.slidesPerView){A&&(d[n].style[e.getDirectionLabel("width")]="");const o=getComputedStyle(s),r=s.style.transform,a=s.style.webkitTransform;if(r&&(s.style.transform="none"),a&&(s.style.webkitTransform="none"),i.roun
vendor: 8,815 bytes, line 1
1dLengths)O=e.isHorizontal()?T(s,"width",!0):T(s,"height",!0);else{const e=t(o,"width"),i=t(o,"padding-left"),n=t(o,"padding-right"),r=t(o,"margin-left"),a=t(o,"margin-right"),l=o.getPropertyValue("box-sizing");if(l&&"border-box"===l)O=e+r+a;else{const{clientWidth:t,offsetWidth:o}=s;O=e+i+n+r+a+(o-t)}}r&&(s.style.transform=r),a&&(s.style.webkitTransform=a),i.roundLengths&&(O=Math.floor(O))}else O=(o-(i.slidesPerView-1)*S)/i.slidesPerView,i.roundLengths&&(O=Math.floor(O)),d[n]&&(d[n].style[e.getDirectionLabel("width")]=`${O}px`);d[n]&&(d[n].swiperSlideSize=O),p.push(O),i.centeredSlides?(E=E+O/2+M/2+S,0===M&&0!==n&&(E=E-o/2-S),0===n&&(E=E-o/2-S),Math.abs(E)<.001&&(E=0),i.roundLengths&&(E=Math.floor(E)),C%i.slidesPerGroup==0&&h.push(E),f.push(E)):(i.roundLengths&&(E=Math.floor(E)),(C-Math.min(e.params.slidesPerGroupSkip,C))%e.params.slidesPerGroup==0&&h.push(E),f.push(E),E=E+O+S),e.virtualSize+=O+S,M=O,C+=1}}if(e.virtualSize=Math.max(e.virtualSize,o)+g,r&&a&&("slide"===i.effect||"coverflow"===i.effect)&&(n.style.width=`${e.virtualSize+S}px`),i.setWrapperSize&&(n.style[e.getDirectionLabel("width")]=`${e.virtualSize+S}px`),P&&e.grid.updateWrapperSize(O,h),!i.centeredSlides){const t=[];for(let n=0;n<h.length;n+=1){let s=h[n];i.roundLengths&&(s=Math.floor(s)),h[n]<=e.virtualSize-o&&t.push(s)}h=t,Math.floor(e.virtualSize-o)-Math.floor(h[h.length-1])>1&&h.push(e.virtualSize-o)}if(l&&i.loop){const t=p[0]+S;if(i.slidesPerGroup>1){const n=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/i.slidesPerGroup),s=t*i.slidesPerGroup;for(let e=0;e<n;e+=1)h.push(h[h.length-1]+s)}for(let n=0;n<e.virtual.slidesBefore+e.virtual.slidesAfter;n+=1)1===i.slidesPerGroup&&h.push(h[h.length-1]+t),f.push(f[f.length-1]+t),e.virtualSize+=t}if(0===h.length&&(h=[0]),0!==S){const t=e.isHorizontal()&&r?"marginLeft":e.getDirectionLabel("marginRight");d.filter(((e,t)=>!(i.cssMode&&!i.loop)||t!==d.length-1)).forEach((e=>{e.style[t]=`${S}px`}))}if(i.centeredSlides&&i.centeredSlidesBounds){let e=0;p.forEach((t=>{e+=t+(S||0)})),e-=S;const t=e-o;h=h.map((e=>e<=0?-m:e>t?t+g:e))}if(i.centerInsufficientSlides){let e=0;if(p.forEach((t=>{e+=t+(S||0)})),e-=S,e<o){const t=(o-e)/2;h.forEach(((e,i)=>{h[i]=e-t})),f.forEach(((e,i)=>{f[i]=e+t}))}}if(Object.assign(e,{slides:d,snapGrid:h,slidesGrid:f,slidesSizesGrid:p}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){v(n,"--swiper-centered-offset-before",-h[0]+"px"),v(n,"--swiper-centered-offset-after",e.size/2-p[p.length-1]/2+"px");const t=-e.snapGrid[0],i=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((e=>e+t)),e.slidesGrid=e.slidesGrid.map((e=>e+i))}if(u!==c&&e.emit("slidesLengthChange"),h.length!==b&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),f.length!==w&&e.emit("slidesGridLengthChange"),i.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!(l||i.cssMode||"slide"!==i.effect&&"fade"!==i.effect)){const t=`${i.containerModifierClass}backface-hidden`,n=e.el.classList.contains(t);u<=i.maxBackfaceHiddenSlides?n||e.el.classList.add(t):n&&e.el.classList.remove(t)}},updateAutoHeight:function(e){const t=this,i=[],n=t.virtual&&t.params.virtual.enabled;let s,o=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const r=e=>n?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=>{i.push(e)}));else for(s=0;s<Math.ceil(t.params.slidesPerView);s+=1){const e=t.activeIndex+s;if(e>t.slides.length&&!n)break;i.push(r(e))}else i.push(r(t.activeIndex));for(s=0;s<i.length;s+=1)if(void 0!==i[s]){const e=i[s].offsetHeight;o=e>o?e:o}(o||0===o)&&(t.wrapperEl.style.height=`${o}px`)},updateSlidesOffset:function(){const e=this,t=e.slides,i=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let n=0;n<t.length;n+=1)t[n].swiperSlideOffset=(e.isHorizontal()?t[n].offsetLeft:t[n].offsetTop)-i-e.cssOverflowAdjustment()},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);const t=this,i=t.params,{slides:n,rtlTranslate:s,snapGrid:o}=t;if(0===n.length)return;void 0===n[0].swiperSlideOffset&&t.updateSlidesOffset();let r=-e;s&&(r=e),n.forEach((e=>{e.classList.remove(i.slideVisibleClass,i.slideFullyVisibleClass)})),t.visibleSlidesIndexes=[],t.visibleSlides=[];let a=i.spaceBetween;"string"==typeof a&&a.indexOf("%")>=0?a=parseFloat(a.replace("%",""))/100*t.size:"string"==typeof a&&(a=parseFloat(a));for(let e=0;e<n.length;e+=1){const l=n[e];let c=l.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(c-=n[0].swiperSlideOffset);const d=(r+(i.centeredSlides?t.minTranslate():0)-c)/(l.swiperSlideSize+a),u=(r-o[0]+(i.centeredSlides?t.minTranslate():0)-c)/(l.swiperSlideSize+a),h=-(r-c),f=h+t.slidesSizesGrid[e],p=h>=0&&h<=t.size-t.slidesSizesGrid[e];(h>=0&&h<t.size-1||f>1&&f<=t.size||h<=0&&f>=t.size)&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(e),n[e].classList.add(i.slideVisibleClass)),p&&n[e].classList.add(i.slideFullyVisibleClass),l.progress=s?-d:d,l.originalProgress=s?-u:u}},updateProgress:function(e){const t=this;if(void 0===e){const i=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*i||0}const i=t.params,n=t.maxTranslate()-t.minTranslate();let{progress:s,isBeginning:o,isEnd:r,progressLoop:a}=t;const l=o,c=r;if(0===n)s=0,o=!0,r=!0;else{s=(e-t.minTranslate())/n;const i=Math.abs(e-t.minTranslate())<1,a=Math.abs(e-t.maxTranslate())<1;o=i||s<=0,r=a||s>=1,i&&(s=0),a&&(s=1)}if(i.loop){const i=t.getSlideIndexByData(0),n=t.getSlideIndexByData(t.slides.length-1),s=t.slidesGrid[i],o=t.slidesGrid[n],r=t.slidesGrid[t.slidesGrid.length-1],l=Math.abs(e);a=l>=s?(l-s)/r:(l+r-o)/r,a>1&&(a-=1)}Object.assign(t,{progress:s,progressLoop:a,isBeginning:o,isEnd:r}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&t.updateSlidesProgress(e),o&&!l&&t.emit("reachBeginning toEdge"),r&&!c&&t.emit("reachEnd toEdge"),(l&&!o||c&&!r)&&t.emit("fromEdge"),t.emit("progress",s)},updateSlidesClasses:function(){const e=this,{slides:t,params:i,slidesEl:n,activeIndex:s}=e,o=e.virtual&&i.virtual.enabled,r=e.grid&&i.grid&&i.grid.rows>1,a=e=>y(n,`.${i.slideClass}${e}, swiper-slide${e}`)[0];let l,c,d;if(o)if(i.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=a(`[data-swiper-slide-index="${t}"]`)}else l=a(`[data-swiper-slide-index="${s}"]`);else r?(l=t.filter((e=>e.column===s))[0],d=t.filter((e=>e.column===s+1))[0],c=t.filter((e=>e.column===s-1))[0]):l=t[s];l&&(r||(d=function(e,t){const i=[];for(;e.nextElementSibling;){const n=e.nextElementSibling;t?n.matches(t)&&i.push(n):i.push(n),e=n}return i}(l,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!d&&(d=t[0]),c=function(e,t){const i=[];for(;e.previousElementSibling;){const n=e.previousElementSibling;t?n.matches(t)&&i.push(n):i.push(n),e=n}return i}(l,`.${i.slideClass}, swiper-slide`)[0],i.loop&&0===!c&&(c=t[t.length-1]))),t.forEach((e=>{F(e,e===l,i.slideActiveClass),F(e,e===d,i.slideNextClass),F(e,e===c,i.slidePrevClass)})),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,i=t.rtlTranslate?t.translate:-t.translate,{snapGrid:n,params:s,activeIndex:o,realIndex:r,snapIndex:a}=t;let l,c=e;const d=e=>{let i=e-t.virtual.slidesBefore;return i<0&&(i=t.virtual.slides.length+i),i>=t.virtual.slides.length&&(i-=t.virtual.slides.length),i};if(void 0===c&&(c=function(e){const{slidesGrid:t,params:i}=e,n=e.rtlTranslate?e.translate:-e.translate;let s;for(let e=0;e<t.length;e+=1)void 0!==t[e+1]?n>=t[e]&&n<t[e+1]-(t[e+1]-t[e])/2?s=e:n>=t[e]&&n<t[e+1]&&(s=e+1):n>=t[e]&&(s=e);return i.normalizeSlideIndex&&(s<0||void 0===s)&&(s=0),s}(t)),n.indexOf(i)>=0)l=n.indexOf(i);else{const e=Math.min(s.slidesPerGroupSkip,c);l=e+Math.floor((c-e)/s.slidesPerGroup)}if(l>=n.length&&(l=n.length-1),c===o&&!t.params.loop)return void(l!==a&&(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 h;if(t.virtual&&s.virtual.enabled&&s.loop)h=d(c);else if(u){const e=t.slides.filter((e=>e.column===c))[0];let i=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(i)&&(i=Math.max(t.slides.indexOf(e),0)),h=Math.floor(i/s.grid.rows)}else if(t.slides[c]){const e=t.slides[c].getAttribute("data-swiper-slide-index");h=e?parseInt(e,10):c}else h=c;Object.assign(t,{previousSnapIndex:a,snapIndex:l,previousRealIndex:r,realIndex:h,previousIndex:o,activeIndex:c}),t.initialized&&R(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(r!==h&&t.emit("realIndexChange"),t.emit("slideChange"))},updateClickedSlide:function(e,t){const i=this,n=i.params;let s=e.closest(`.${n.slideClass}, swiper-slide`);!s&&i.isElement&&t&&t.length>
vendor: 10,632 bytes, line 1
11&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach((e=>{!s&&e.matches&&e.matches(`.${n.slideClass}, swiper-slide`)&&(s=e)}));let o,r=!1;if(s)for(let e=0;e<i.slides.length;e+=1)if(i.slides[e]===s){r=!0,o=e;break}if(!s||!r)return i.clickedSlide=void 0,void(i.clickedIndex=void 0);i.clickedSlide=s,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(s.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=o,n.slideToClickedSlide&&void 0!==i.clickedIndex&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}};var _={getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");const{params:t,rtlTranslate:i,translate:n,wrapperEl:s}=this;if(t.virtualTranslate)return i?-n:n;if(t.cssMode)return n;let o=p(s,e);return o+=this.cssOverflowAdjustment(),i&&(o=-o),o||0},setTranslate:function(e,t){const i=this,{rtlTranslate:n,params:s,wrapperEl:o,progress:r}=i;let a,l=0,c=0;i.isHorizontal()?l=n?-e:e:c=e,s.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?l:c,s.cssMode?o[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-l:-c:s.virtualTranslate||(i.isHorizontal()?l-=i.cssOverflowAdjustment():c-=i.cssOverflowAdjustment(),o.style.transform=`translate3d(${l}px, ${c}px, 0px)`);const d=i.maxTranslate()-i.minTranslate();a=0===d?0:(e-i.minTranslate())/d,a!==r&&i.updateProgress(e),i.emit("setTranslate",i.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e,t,i,n,s){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0),void 0===n&&(n=!0);const o=this,{params:r,wrapperEl:a}=o;if(o.animating&&r.preventInteractionOnTransition)return!1;const l=o.minTranslate(),c=o.maxTranslate();let d;if(d=n&&e>l?l:n&&e<c?c:e,o.updateProgress(d),r.cssMode){const e=o.isHorizontal();if(0===t)a[e?"scrollLeft":"scrollTop"]=-d;else{if(!o.support.smoothScroll)return b({swiper:o,targetPosition:-d,side:e?"left":"top"}),!0;a.scrollTo({[e?"left":"top"]:-d,behavior:"smooth"})}return!0}return 0===t?(o.setTransition(0),o.setTranslate(d),i&&(o.emit("beforeTransitionStart",t,s),o.emit("transitionEnd"))):(o.setTransition(t),o.setTranslate(d),i&&(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,i&&o.emit("transitionEnd"))}),o.wrapperEl.addEventListener("transitionend",o.onTranslateToWrapperTransitionEnd))),!0}};function $(e){let{swiper:t,runCallbacks:i,direction:n,step:s}=e;const{activeIndex:o,previousIndex:r}=t;let a=n;if(a||(a=o>r?"next":o<r?"prev":"reset"),t.emit(`transition${s}`),i&&o!==r){if("reset"===a)return void t.emit(`slideResetTransition${s}`);t.emit(`slideChangeTransition${s}`),"next"===a?t.emit(`slideNextTransition${s}`):t.emit(`slidePrevTransition${s}`)}}var N={slideTo:function(e,t,i,n,s){void 0===e&&(e=0),void 0===i&&(i=!0),"string"==typeof e&&(e=parseInt(e,10));const o=this;let r=e;r<0&&(r=0);const{params:a,snapGrid:l,slidesGrid:c,previousIndex:d,activeIndex:u,rtlTranslate:h,wrapperEl:f,enabled:p}=o;if(!p&&!n&&!s||o.destroyed||o.animating&&a.preventInteractionOnTransition)return!1;void 0===t&&(t=o.params.speed);const m=Math.min(o.params.slidesPerGroupSkip,r);let g=m+Math.floor((r-m)/o.params.slidesPerGroup);g>=l.length&&(g=l.length-1);const v=-l[g];if(a.normalizeSlideIndex)for(let e=0;e<c.length;e+=1){const t=-Math.floor(100*v),i=Math.floor(100*c[e]),n=Math.floor(100*c[e+1]);void 0!==c[e+1]?t>=i&&t<n-(n-i)/2?r=e:t>=i&&t<n&&(r=e+1):t>=i&&(r=e)}if(o.initialized&&r!==u){if(!o.allowSlideNext&&(h?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)!==r)return!1}let y;if(r!==(d||0)&&i&&o.emit("beforeSlideChangeStart"),o.updateProgress(v),y=r>u?"next":r<u?"prev":"reset",h&&-v===o.translate||!h&&v===o.translate)return o.updateActiveIndex(r),a.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),"slide"!==a.effect&&o.setTranslate(v),"reset"!==y&&(o.transitionStart(i,y),o.transitionEnd(i,y)),!1;if(a.cssMode){const e=o.isHorizontal(),i=h?v:-v;if(0===t){const t=o.virtual&&o.params.virtual.enabled;t&&(o.wrapperEl.style.scrollSnapType="none",o._immediateVirtual=!0),t&&!o._cssModeVirtualInitialSet&&o.params.initialSlide>0?(o._cssModeVirtualInitialSet=!0,requestAnimationFrame((()=>{f[e?"scrollLeft":"scrollTop"]=i}))):f[e?"scrollLeft":"scrollTop"]=i,t&&requestAnimationFrame((()=>{o.wrapperEl.style.scrollSnapType="",o._immediateVirtual=!1}))}else{if(!o.support.smoothScroll)return b({swiper:o,targetPosition:i,side:e?"left":"top"}),!0;f.scrollTo({[e?"left":"top"]:i,behavior:"smooth"})}return!0}return o.setTransition(t),o.setTranslate(v),o.updateActiveIndex(r),o.updateSlidesClasses(),o.emit("beforeTransitionStart",t,n),o.transitionStart(i,y),0===t?o.transitionEnd(i,y):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(i,y))}),o.wrapperEl.addEventListener("transitionend",o.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,i,n){if(void 0===e&&(e=0),void 0===i&&(i=!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 r=e;if(s.params.loop)if(s.virtual&&s.params.virtual.enabled)r+=s.virtual.slidesBefore;else{let e;if(o){const t=r*s.params.grid.rows;e=s.slides.filter((e=>1*e.getAttribute("data-swiper-slide-index")===t))[0].column}else e=s.getSlideIndexByData(r);const t=o?Math.ceil(s.slides.length/s.params.grid.rows):s.slides.length,{centeredSlides:i}=s.params;let a=s.params.slidesPerView;"auto"===a?a=s.slidesPerViewDynamic():(a=Math.ceil(parseFloat(s.params.slidesPerView,10)),i&&a%2==0&&(a+=1));let l=t-e<a;if(i&&(l=l||e<Math.ceil(a/2)),n&&i&&"auto"!==s.params.slidesPerView&&!o&&(l=!1),l){const n=i?e<s.activeIndex?"prev":"next":e-s.activeIndex-1<s.params.slidesPerView?"next":"prev";s.loopFix({direction:n,slideTo:!0,activeSlideIndex:"next"===n?e+1:e-t+1,slideRealIndex:"next"===n?s.realIndex:void 0})}if(o){const e=r*s.params.grid.rows;r=s.slides.filter((t=>1*t.getAttribute("data-swiper-slide-index")===e))[0].column}else r=s.getSlideIndexByData(r)}return requestAnimationFrame((()=>{s.slideTo(r,t,i,n)})),s},slideNext:function(e,t,i){void 0===t&&(t=!0);const n=this,{enabled:s,params:o,animating:r}=n;if(!s||n.destroyed)return n;void 0===e&&(e=n.params.speed);let a=o.slidesPerGroup;"auto"===o.slidesPerView&&1===o.slidesPerGroup&&o.slidesPerGroupAuto&&(a=Math.max(n.slidesPerViewDynamic("current",!0),1));const l=n.activeIndex<o.slidesPerGroupSkip?1:a,c=n.virtual&&o.virtual.enabled;if(o.loop){if(r&&!c&&o.loopPreventsSliding)return!1;if(n.loopFix({direction:"next"}),n._clientLeft=n.wrapperEl.clientLeft,n.activeIndex===n.slides.length-1&&o.cssMode)return requestAnimationFrame((()=>{n.slideTo(n.activeIndex+l,e,t,i)})),!0}return o.rewind&&n.isEnd?n.slideTo(0,e,t,i):n.slideTo(n.activeIndex+l,e,t,i)},slidePrev:function(e,t,i){void 0===t&&(t=!0);const n=this,{params:s,snapGrid:o,slidesGrid:r,rtlTranslate:a,enabled:l,animating:c}=n;if(!l||n.destroyed)return n;void 0===e&&(e=n.params.speed);const d=n.virtual&&s.virtual.enabled;if(s.loop){if(c&&!d&&s.loopPreventsSliding)return!1;n.loopFix({direction:"prev"}),n._clientLeft=n.wrapperEl.clientLeft}function u(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const h=u(a?n.translate:-n.translate),f=o.map((e=>u(e)));let p=o[f.indexOf(h)-1];if(void 0===p&&s.cssMode){let e;o.forEach(((t,i)=>{h>=t&&(e=i)})),void 0!==e&&(p=o[e>0?e-1:e])}let m=0;if(void 0!==p&&(m=r.indexOf(p),m<0&&(m=n.activeIndex-1),"auto"===s.slidesPerView&&1===s.slidesPerGroup&&s.slidesPerGroupAuto&&(m=m-n.slidesPerViewDynamic("previous",!0)+1,m=Math.max(m,0))),s.rewind&&n.isBeginning){const s=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1;return n.slideTo(s,e,t,i)}return s.loop&&0===n.activeIndex&&s.cssMode?(requestAnimationFrame((()=>{n.slideTo(m,e,t,i)})),!0):n.slideTo(m,e,t,i)},slideReset:function(e,t,i){void 0===t&&(t=!0);const n=this;if(!n.destroyed)return void 0===e&&(e=n.params.speed),n.slideTo(n.activeIndex,e,t,i)},slideToClosest:function(e,t,i,n){void 0===t&&(t=!0),void 0===n&&(n=.5);const s=this;if(s.destroyed)return;void 0===e&&(e=s.params.speed);let o=s.activeIndex;const r=Math.min(s.params.slidesPerGroupSkip,o),a=r+Math.floor((o-r)/s.params.slidesPerGroup),l=s.rtlTranslate?s.translate:-s.translate;if(l>=s.snapGrid[a]){const e=s.snapGrid[a];l-e>(s.snapGrid[a+1]-e)*n&&(o+=s.params.slidesPerGroup)}else{const e=s.snapGrid[a-1];l-e<=(s.snapGrid[a]-e)*n&&(o-=s.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,s.slidesGrid.length-1),s.slideTo(o,e,t,i)},slideToClickedSlide:function(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:i}=e,n="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let s,o=e.clickedIndex;const r=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;s=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?o<e.loopedSlides-n/2||o>e.slides.length-e.loopedSlides+n/2?(e.loopFix(),o=e.getSlideIndex(y(i,`${r}[data-swiper-slide-index="${s}"]`)[0]),h((()=>{e.slideTo(o)}))):e.slideTo(o):o>e.slides.length-n?(e.loopFix(),o=e.getSlideIndex(y(i,`${r}[data-swiper-slide-index="${s}"]`)[0]),h((()=>{e.slideTo(o)}))):e.slideTo(o)}else e.slideTo(o)}};var B={loopCreate:function(e){const t=this,{params:i,slidesEl:n}=t;if(!i.loop||t.virtual&&t.params.virtual.enabled)return;const s=()=>{y(n,`.${i.slideClass}, swiper-slide`).forEach(((e,t)=>{e.setAttribute("data-swiper-slide-index",t)}))},o=t.grid&&i.grid&&i.grid.rows>1,r=i.slidesPerGroup*(o?i.grid.rows:1),a=t.slides.length%r!=0,l=o&&t.slides.length%i.grid.rows!=0,c=e=>{for(let n=0;n<e;n+=1){const e=t.isElement?S("swiper-slide",[i.slideBlankClass]):S("div",[i.slideClass,i.slideBlankClass]);t.slidesEl.append(e)}};if(a){if(i.loopAddBlankSlides){c(r-t.slides.length%r),t.recalcSlides(),t.updateSlides()}else w("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may
1not function properly. You need to add more slides (or make duplicates, or empty slides)");s()}else if(l){if(i.loopAddBlankSlides){c(i.grid.rows-t.slides.length%i.grid.rows),t.recalcSlides(),t.updateSlides()}else w("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)");s()}else s();t.loopFix({slideRealIndex:e,direction:i.centeredSlides?void 0:"next"})},loopFix:function(e){let{slideRealIndex:t,slideTo:i=!0,direction:n,setTranslate:s,activeSlideIndex:o,byController:r,byMousewheel:a}=void 0===e?{}:e;const l=this;if(!l.params.loop)return;l.emit("beforeLoopFix");const{slides:c,allowSlidePrev:d,allowSlideNext:u,slidesEl:h,params:f}=l,{centeredSlides:p}=f;if(l.allowSlidePrev=!0,l.allowSlideNext=!0,l.virtual&&f.virtual.enabled)return i&&(f.centeredSlides||0!==l.snapIndex?f.centeredSlides&&l.snapIndex<f.slidesPerView?l.slideTo(l.virtual.slides.length+l.snapIndex,0,!1,!0):l.snapIndex===l.snapGrid.length-1&&l.slideTo(l.virtual.slidesBefore,0,!1,!0):l.slideTo(l.virtual.slides.length,0,!1,!0)),l.allowSlidePrev=d,l.allowSlideNext=u,void l.emit("loopFix");let m=f.slidesPerView;"auto"===m?m=l.slidesPerViewDynamic():(m=Math.ceil(parseFloat(f.slidesPerView,10)),p&&m%2==0&&(m+=1));const g=f.slidesPerGroupAuto?m:f.slidesPerGroup;let v=g;v%g!=0&&(v+=g-v%g),v+=f.loopAdditionalSlides,l.loopedSlides=v;const b=l.grid&&f.grid&&f.grid.rows>1;c.length<m+v?w("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):b&&"row"===f.grid.fill&&w("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const y=[],S=[];let x=l.activeIndex;void 0===o?o=l.getSlideIndex(c.filter((e=>e.classList.contains(f.slideActiveClass)))[0]):x=o;const E="next"===n||!n,T="prev"===n||!n;let M=0,C=0;const P=b?Math.ceil(c.length/f.grid.rows):c.length,O=(b?c[o].column:o)+(p&&void 0===s?-m/2+.5:0);if(O<v){M=Math.max(v-O,g);for(let e=0;e<v-O;e+=1){const t=e-Math.floor(e/P)*P;if(b){const e=P-t-1;for(let t=c.length-1;t>=0;t-=1)c[t].column===e&&y.push(t)}else y.push(P-t-1)}}else if(O+m>P-v){C=Math.max(O-(P-2*v),g);for(let e=0;e<C;e+=1){const t=e-Math.floor(e/P)*P;b?c.forEach(((e,i)=>{e.column===t&&S.push(i)})):S.push(t)}}if(l.__preventObserver__=!0,requestAnimationFrame((()=>{l.__preventObserver__=!1})),T&&y.forEach((e=>{c[e].swiperLoopMoveDOM=!0,h.prepend(c[e]),c[e].swiperLoopMoveDOM=!1})),E&&S.forEach((e=>{c[e].swiperLoopMoveDOM=!0,h.append(c[e]),c[e].swiperLoopMoveDOM=!1})),l.recalcSlides(),"auto"===f.slidesPerView?l.updateSlides():b&&(y.length>0&&T||S.length>0&&E)&&l.slides.forEach(((e,t)=>{l.grid.updateSlide(t,e,l.slides)})),f.watchSlidesProgress&&l.updateSlidesOffset(),i)if(y.length>0&&T){if(void 0===t){const e=l.slidesGrid[x],t=l.slidesGrid[x+M]-e;a?l.setTranslate(l.translate-t):(l.slideTo(x+Math.ceil(M),0,!1,!0),s&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-t,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-t))}else if(s){const e=b?y.length/f.grid.rows:y.length;l.slideTo(l.activeIndex+e,0,!1,!0),l.touchEventsData.currentTranslate=l.translate}}else if(S.length>0&&E)if(void 0===t){const e=l.slidesGrid[x],t=l.slidesGrid[x-C]-e;a?l.setTranslate(l.translate-t):(l.slideTo(x-C,0,!1,!0),s&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-t,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-t))}else{const e=b?S.length/f.grid.rows:S.length;l.slideTo(l.activeIndex-e,0,!1,!0)}if(l.allowSlidePrev=d,l.allowSlideNext=u,l.controller&&l.controller.control&&!r){const e={slideRealIndex:t,direction:n,setTranslate:s,activeSlideIndex:o,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach((t=>{!t.destroyed&&t.params.loop&&t.loopFix({...e,slideTo:t.params.slidesPerView===f.slidesPerView&&i})})):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...e,slideTo:l.controller.control.params.slidesPerView===f.slidesPerView&&i})}l.emit("loopFix")},loopDestroy:function(){const e=this,{params:t,slidesEl:i}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const n=[];
vendor: 5,287 bytes, line 1
1e.slides.forEach((e=>{const t=void 0===e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;n[t]=e})),e.slides.forEach((e=>{e.removeAttribute("data-swiper-slide-index")})),n.forEach((e=>{i.append(e)})),e.recalcSlides(),e.slideTo(e.realIndex,0)}};function H(e,t,i){const n=u(),{params:s}=e,o=s.edgeSwipeDetection,r=s.edgeSwipeThreshold;return!o||!(i<=r||i>=n.innerWidth-r)||"prevent"===o&&(t.preventDefault(),!0)}function V(e){const t=this,i=c();let n=e;n.originalEvent&&(n=n.originalEvent);const s=t.touchEventsData;if("pointerdown"===n.type){if(null!==s.pointerId&&s.pointerId!==n.pointerId)return;s.pointerId=n.pointerId}else"touchstart"===n.type&&1===n.targetTouches.length&&(s.touchId=n.targetTouches[0].identifier);if("touchstart"===n.type)return void H(t,n,n.targetTouches[0].pageX);const{params:o,touches:r,enabled:a}=t;if(!a)return;if(!o.simulateTouch&&"mouse"===n.pointerType)return;if(t.animating&&o.preventInteractionOnTransition)return;!t.animating&&o.cssMode&&o.loop&&t.loopFix();let l=n.target;if("wrapper"===o.touchEventsTarget&&!t.wrapperEl.contains(l))return;if("which"in n&&3===n.which)return;if("button"in n&&n.button>0)return;if(s.isTouched&&s.isMoved)return;const d=!!o.noSwipingClass&&""!==o.noSwipingClass,h=n.composedPath?n.composedPath():n.path;d&&n.target&&n.target.shadowRoot&&h&&(l=h[0]);const p=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,m=!(!n.target||!n.target.shadowRoot);if(o.noSwiping&&(m?function(e,t){return void 0===t&&(t=this),function t(i){if(!i||i===c()||i===u())return null;i.assignedSlot&&(i=i.assignedSlot);const n=i.closest(e);return n||i.getRootNode?n||t(i.getRootNode().host):null}(t)}(p,l):l.closest(p)))return void(t.allowClick=!0);if(o.swipeHandler&&!l.closest(o.swipeHandler))return;r.currentX=n.pageX,r.currentY=n.pageY;const g=r.currentX,v=r.currentY;if(!H(t,n,g))return;Object.assign(s,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),r.startX=g,r.startY=v,s.touchStartTime=f(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,o.threshold>0&&(s.allowThresholdMove=!1);let b=!0;l.matches(s.focusableElements)&&(b=!1,"SELECT"===l.nodeName&&(s.isTouched=!1)),i.activeElement&&i.activeElement.matches(s.focusableElements)&&i.activeElement!==l&&i.activeElement.blur();const y=b&&t.allowTouchMove&&o.touchStartPreventDefault;!o.touchStartForcePreventDefault&&!y||l.isContentEditable||n.preventDefault(),o.freeMode&&o.freeMode.enabled&&t.freeMode&&t.animating&&!o.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",n)}function W(e){const t=c(),i=this,n=i.touchEventsData,{params:s,touches:o,rtlTranslate:r,enabled:a}=i;if(!a)return;if(!s.simulateTouch&&"mouse"===e.pointerType)return;let l,d=e;if(d.originalEvent&&(d=d.originalEvent),"pointermove"===d.type){if(null!==n.touchId)return;if(d.pointerId!==n.pointerId)return}if("touchmove"===d.type){if(l=[...d.changedTouches].filter((e=>e.identifier===n.touchId))[0],!l||l.identifier!==n.touchId)return}else l=d;if(!n.isTouched)return void(n.startMoving&&n.isScrolling&&i.emit("touchMoveOpposite",d));const u=l.pageX,h=l.pageY;if(d.preventedByNestedSwiper)return o.startX=u,void(o.startY=h);if(!i.allowTouchMove)return d.target.matches(n.focusableElements)||(i.allowClick=!1),void(n.isTouched&&(Object.assign(o,{startX:u,startY:h,currentX:u,currentY:h}),n.touchStartTime=f()));if(s.touchReleaseOnEdges&&!s.loop)if(i.isVertical()){if(h<o.startY&&i.translate<=i.maxTranslate()||h>o.startY&&i.translate>=i.minTranslate())return n.isTouched=!1,void(n.isMoved=!1)}else if(u<o.startX&&i.translate<=i.maxTranslate()||u>o.startX&&i.translate>=i.minTranslate())return;if(t.activeElement&&d.target===t.activeElement&&d.target.matches(n.focusableElements))return n.isMoved=!0,void(i.allowClick=!1);n.allowTouchCallbacks&&i.emit("touchMove",d),o.previousX=o.currentX,o.previousY=o.currentY,o.currentX=u,o.currentY=h;const p=o.currentX-o.startX,m=o.currentY-o.startY;if(i.params.threshold&&Math.sqrt(p**2+m**2)<i.params.threshold)return;if(void 0===n.isScrolling){let e;i.isHorizontal()&&o.currentY===o.startY||i.isVertical()&&o.currentX===o.startX?n.isScrolling=!1:p*p+m*m>=25&&(e=180*Math.atan2(Math.abs(m),Math.abs(p))/Math.PI,n.isScrolling=i.isHorizontal()?e>s.touchAngle:90-e>s.touchAngle)}if(n.isScrolling&&i.emit("touchMoveOpposite",d),void 0===n.startMoving&&(o.currentX===o.startX&&o.currentY===o.startY||(n.startMoving=!0)),n.isScrolling||"touchmove"===d.type&&n.preventTouchMoveFromPointerMove)return void(n.isTouched=!1);if(!n.startMoving)return;i.allowClick=!1,!s.cssMode&&d.cancelable&&d.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&d.stopPropagation();let g=i.isHorizontal()?p:m,v=i.isHorizontal()?o.currentX-o.previousX:o.currentY-o.previousY;s.oneWayMovement&&(g=Math.abs(g)*(r?1:-1),v=Math.abs(v)*(r?1:-1)),o.diff=g,g*=s.touchRatio,r&&(g=-g,v=-v);const b=i.touchesDirection;i.swipeDirection=g>0?"prev":"next",i.touchesDirection=v>0?"prev":"next";const y=i.params.loop&&!s.cssMode,w="next"===i.touchesDirection&&i.allowSlideNext||"prev"===i.touchesDirection&&i.allowSlidePrev;if(!n.isMoved){if(y&&w&&i.loopFix({direction:i.swipeDirection}),n.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});
vendor: 20,655 bytes, line 1
1i.wrapperEl.dispatchEvent(e)}n.allowMomentumBounce=!1,!s.grabCursor||!0!==i.allowSlideNext&&!0!==i.allowSlidePrev||i.setGrabCursor(!0),i.emit("sliderFirstMove",d)}if((new Date).getTime(),n.isMoved&&n.allowThresholdMove&&b!==i.touchesDirection&&y&&w&&Math.abs(g)>=1)return Object.assign(o,{startX:u,startY:h,currentX:u,currentY:h,startTranslate:n.currentTranslate}),n.loopSwapReset=!0,void(n.startTranslate=n.currentTranslate);i.emit("sliderMove",d),n.isMoved=!0,n.currentTranslate=g+n.startTranslate;let S=!0,x=s.resistanceRatio;if(s.touchReleaseOnEdges&&(x=0),g>0?(y&&w&&n.allowThresholdMove&&n.currentTranslate>(s.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>i.minTranslate()&&(S=!1,s.resistance&&(n.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+n.startTranslate+g)**x))):g<0&&(y&&w&&n.allowThresholdMove&&n.currentTranslate<(s.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]:i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-("auto"===s.slidesPerView?i.slidesPerViewDynamic():Math.ceil(parseFloat(s.slidesPerView,10)))}),n.currentTranslate<i.maxTranslate()&&(S=!1,s.resistance&&(n.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-n.startTranslate-g)**x))),S&&(d.preventedByNestedSwiper=!0),!i.allowSlideNext&&"next"===i.swipeDirection&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!i.allowSlidePrev&&"prev"===i.swipeDirection&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),i.allowSlidePrev||i.allowSlideNext||(n.currentTranslate=n.startTranslate),s.threshold>0){if(!(Math.abs(g)>s.threshold||n.allowThresholdMove))return void(n.currentTranslate=n.startTranslate);if(!n.allowThresholdMove)return n.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,n.currentTranslate=n.startTranslate,void(o.diff=i.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY)}s.followFinger&&!s.cssMode&&((s.freeMode&&s.freeMode.enabled&&i.freeMode||s.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),s.freeMode&&s.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(n.currentTranslate),i.setTranslate(n.currentTranslate))}function G(e){const t=this,i=t.touchEventsData;let n,s=e;s.originalEvent&&(s=s.originalEvent);if("touchend"===s.type||"touchcancel"===s.type){if(n=[...s.changedTouches].filter((e=>e.identifier===i.touchId))[0],!n||n.identifier!==i.touchId)return}else{if(null!==i.touchId)return;if(s.pointerId!==i.pointerId)return;n=s}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(s.type)){if(!(["pointercancel","contextmenu"].includes(s.type)&&(t.browser.isSafari||t.browser.isWebView)))return}i.pointerId=null,i.touchId=null;const{params:o,touches:r,rtlTranslate:a,slidesGrid:l,enabled:c}=t;if(!c)return;if(!o.simulateTouch&&"mouse"===s.pointerType)return;if(i.allowTouchCallbacks&&t.emit("touchEnd",s),i.allowTouchCallbacks=!1,!i.isTouched)return i.isMoved&&o.grabCursor&&t.setGrabCursor(!1),i.isMoved=!1,void(i.startMoving=!1);o.grabCursor&&i.isMoved&&i.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const d=f(),u=d-i.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-i.lastClickTime<300&&t.emit("doubleTap doubleClick",s)}if(i.lastClickTime=f(),h((()=>{t.destroyed||(t.allowClick=!0)})),!i.isTouched||!i.isMoved||!t.swipeDirection||0===r.diff&&!i.loopSwapReset||i.currentTranslate===i.startTranslate&&!i.loopSwapReset)return i.isTouched=!1,i.isMoved=!1,void(i.startMoving=!1);let p;if(i.isTouched=!1,i.isMoved=!1,i.startMoving=!1,p=o.followFinger?a?t.translate:-t.translate:-i.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 g=0,v=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])&&(g=e,v=l[e+t]-l[e]):(m||p>=l[e])&&(g=e,v=l[l.length-1]-l[l.length-2])}let b=null,y=null;o.rewind&&(t.isBeginning?y=o.virtual&&o.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(b=0));const w=(p-l[g])/v,S=g<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;if(u>o.longSwipesMs){if(!o.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(w>=o.longSwipesRatio?t.slideTo(o.rewind&&t.isEnd?b:g+S):t.slideTo(g)),"prev"===t.swipeDirection&&(w>1-o.longSwipesRatio?t.slideTo(g+S):null!==y&&w<0&&Math.abs(w)>o.longSwipesRatio?t.slideTo(y):t.slideTo(g))}else{if(!o.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(s.target===t.navigation.nextEl||s.target===t.navigation.prevEl)?s.target===t.navigation.nextEl?t.slideTo(g+S):t.slideTo(g):("next"===t.swipeDirection&&t.slideTo(null!==b?b:g+S),"prev"===t.swipeDirection&&t.slideTo(null!==y?y:g))}}function U(){const e=this,{params:t,el:i}=e;if(i&&0===i.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:n,allowSlidePrev:s,snapGrid:o}=e,r=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const a=r&&t.loop;!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||a?e.params.loop&&!r?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=n,e.params.watchOverflow&&o!==e.snapGrid&&e.checkOverflow()}function q(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function X(){const e=this,{wrapperEl:t,rtlTranslate:i,enabled:n}=e;if(!n)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(i?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function Y(e){const t=this;z(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update()}function Z(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const J=(e,t)=>{const i=c(),{params:n,el:s,wrapperEl:o,device:r}=e,a=!!n.nested,l="on"===t?"addEventListener":"removeEventListener",d=t;i[l]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:a}),s[l]("touchstart",e.onTouchStart,{passive:!1}),s[l]("pointerdown",e.onTouchStart,{passive:!1}),i[l]("touchmove",e.onTouchMove,{passive:!1,capture:a}),i[l]("pointermove",e.onTouchMove,{passive:!1,capture:a}),i[l]("touchend",e.onTouchEnd,{passive:!0}),i[l]("pointerup",e.onTouchEnd,{passive:!0}),i[l]("pointercancel",e.onTouchEnd,{passive:!0}),i[l]("touchcancel",e.onTouchEnd,{passive:!0}),i[l]("pointerout",e.onTouchEnd,{passive:!0}),i[l]("pointerleave",e.onTouchEnd,{passive:!0}),i[l]("contextmenu",e.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&s[l]("click",e.onClick,!0),n.cssMode&&o[l]("scroll",e.onScroll),n.updateOnWindowResize?e[d](r.ios||r.android?"resize orientationchange observerUpdate":"resize observerUpdate",U,!0):e[d]("observerUpdate",U,!0),s[l]("load",e.onLoad,{capture:!0})};const K=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var Q={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 ee(e,t){return function(i){void 0===i&&(i={});const n=Object.keys(i)[0],s=i[n];"object"==typeof s&&null!==s?(!0===e[n]&&(e[n]={enabled:!0}),"navigation"===n&&e[n]&&e[n].enabled&&!e[n].prevEl&&!e[n].nextEl&&(e[n].auto=!0),["pagination","scrollbar"].indexOf(n)>=0&&e[n]&&e[n].enabled&&!e[n].el&&(e[n].auto=!0),n in e&&"enabled"in s?("object"!=typeof e[n]||"enabled"in e[n]||(e[n].enabled=!0),e[n]||(e[n]={enabled:!1}),g(t,i)):g(t,i)):g(t,i)}}const te={eventsEmitter:L,update:j,translate:_,transition:{setTransition:function(e,t){const i=this;i.params.cssMode||(i.wrapperEl.style.transitionDuration=`${e}ms`,i.wrapperEl.style.transitionDelay=0===e?"0ms":""),i.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);const i=this,{params:n}=i;n.cssMode||(n.autoHeight&&i.updateAutoHeight(),$({swiper:i,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e,t){void 0===e&&(e=!0);const i=this,{params:n}=i;i.animating=!1,n.cssMode||(i.setTransition(0),$({swiper:i,runCallbacks:e,direction:t,step:"End"}))}},slide:N,loop:B,grabCursor:{setGrabCursor:function(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const i="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),i.style.cursor="move",i.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=V.bind(e),e.onTouchMove=W.bind(e),e.onTouchEnd=G.bind(e),e.onDocumentTouchStart=Z.bind(e),t.cssMode&&(e.onScroll=X.bind(e)),e.onClick=q.bind(e),e.onLoad=Y.bind(e),J(e,"on")},detachEvents:function(){J(this,"off")}},breakpoints:{setBreakpoint:function(){const e=this,{realIndex:t,initialized:i,params:n,el:s}=e,o=n.breakpoints;if(!o||o&&0===Object.keys(o).length)return;const r=e.getBreakpoint(o,e.params.breakpointsBase,e.el);if(!r||e.currentBreakpoint===r)return;const a=(r in o?o[r]:void 0)||e.originalParams,l=K(e,n),c=K(e,a),d=e.params.grabCursor,u=a.grabCursor,h=n.enabled;l&&!c?(s.classList.remove(`${n.containerModifierClass}grid`,`${n.containerModifierClass}grid-column`),e.emitContainerClasses()):!l&&c&&(s.classList.add(`${n.containerModifierClass}grid`),(a.grid.fill&&"column"===a.grid.fill||!a.grid.fill&&"column"===n.grid.fill)&&s.classList.add(`${n.containerModifierClass}grid-column`),e.emitContainerClasses()),d&&!u?e.unsetGrabCursor():!d&&u&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach((t=>{if(void 0===a[t])return;const i=n[t]&&n[t].enabled,s=a[t]&&a[t].enabled;i&&!s&&e[t].disable(),!i&&s&&e[t].enable()}));const f=a.direction&&a.direction!==n.direction,p=n.loop&&(a.slidesPerView!==n.slidesPerView||f),m=n.loop;f&&i&&e.changeDirection(),g(e.params,a);const v=e.params.enabled,b=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),h&&!v?e.disable():!h&&v&&e.enable(),e.currentBreakpoint=r,e.emit("_beforeBreakpoint",a),i&&(p?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!m&&b?(e.loopCreate(t),e.updateSlides()):m&&!b&&e.loopDestroy()),e.emit("breakpoint",a)},getBreakpoint:function(e,t,i){if(void 0===t&&(t="window"),!e||"container"===t&&!i)return;let n=!1;const s=u(),o="window"===t?s.innerHeight:i.clientHeight,r=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}}));r.sort(((e,t)=>parseInt(e.value,10)-parseInt(t.value,10)));for(let e=0;e<r.length;e+=1){const{point:o,value:a}=r[e];"window"===t?s.matchMedia(`(min-width: ${a}px)`).matches&&(n=o):a<=i.clientWidth&&(n=o)}return n||"max"}},checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:i}=e,{slidesOffsetBefore:n}=i;if(n){const t=e.slides.length-1,i=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*n;e.isLocked=e.size>i}else e.isLocked=1===e.snapGrid.length;!0===i.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===i.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:i,rtl:n,el:s,device:o}=e,r=function(e,t){const i=[];return e.forEach((e=>{"object"==typeof e?Object.keys(e).forEach((n=>{e[n]&&i.push(t+n)})):"string"==typeof e&&i.push(t+e)})),i}(["initialized",i.direction,{"free-mode":e.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:n},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&"column"===i.grid.fill},{android:o.android},{ios:o.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);t.push(...r),s.classList.add(...t),e.emitContainerClasses()},removeClasses:function(){const{el:e,classNames:t}=this;e.classList.remove(...t),this.emitContainerClasses()}}},ie={};class ne{constructor(){let e,t;for(var i=arguments.length,n=new Array(i),s=0;s<i;s++)n[s]=arguments[s];1===n.length&&n[0].constructor&&"Object"===Object.prototype.toString.call(n[0]).slice(8,-1)?t=n[0]:[e,t]=n,t||(t={}),t=g({},t),e&&!t.el&&(t.el=e);const o=c();if(t.el&&"string"==typeof t.el&&o.querySelectorAll(t.el).length>1){const e=[];return o.querySelectorAll(t.el).forEach((i=>{const n=g({},t,{el:i});e.push(new ne(n))})),e}const r=this;r.__swiper__=!0,r.support=A(),r.device=k({userAgent:t.userAgent}),r.browser=I(),r.eventsListeners={},r.eventsAnyListeners=[],r.modules=[...r.__modules__],t.modules&&Array.isArray(t.modules)&&r.modules.push(...t.modules);const a={};r.modules.forEach((e=>{e({params:t,swiper:r,extendParams:ee(t,a),on:r.on.bind(r),once:r.once.bind(r),off:r.off.bind(r),emit:r.emit.bind(r)})}));const l=g({},Q,a);return r.params=g({},l,ie,t),r.originalParams=g({},r.params),r.passedParams=g({},t),r.params&&r.params.on&&Object.keys(r.params.on).forEach((e=>{r.on(e,r.params.on[e])})),r.params&&r.params.onAny&&r.onAny(r.params.onAny),Object.assign(r,{enabled:r.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===r.params.direction,isVertical:()=>"vertical"===r.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:r.params.allowSlideNext,allowSlidePrev:r.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:r.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:r.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),r.emit("_swiper"),r.params.init&&r.init(),r}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:i}=this,n=E(y(t,`.${i.slideClass}, swiper-slide`)[0]);return E(e)-n}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter((t=>1*t.getAttribute("data-swiper-slide-index")===e))[0])}recalcSlides(){const{slidesEl:e,params:t}=this;this.slides=y(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 i=this;e=Math.min(Math.max(e,0),1);const n=i.minTranslate(),s=(i.maxTranslate()-n)*e+n;i.translateTo(s,void 0===t?0:t),i.updateActiveIndex(),i.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((i=>{const n=e.getSlideClasses(i);t.push({slideEl:i,classNames:n}),e.emit("_slideClass",i,n)})),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);const{params:i,slides:n,slidesGrid:s,slidesSizesGrid:o,size:r,activeIndex:a}=this;let l=1;if("number"==typeof i.slidesPerView)return i.slidesPerView;if(i.centeredSlides){let e,t=n[a]?Math.ceil(n[a].swiperSlideSize):0;for(let i=a+1;i<n.length;i+=1)n[i]&&!e&&(t+=Math.ceil(n[i].swiperSlideSize),l+=1,t>r&&(e=!0));for(let i=a-1;i>=0;i-=1)n[i]&&!e&&(t+=n[i].swiperSlideSize,l+=1,t>r&&(e=!0))}else if("current"===e)for(let e=a+1;e<n.length;e+=1){(t?s[e]+o[e]-s[a]<r:s[e]-s[a]<r)&&(l+=1)}else for(let e=a-1;e>=0;e-=1){s[a]-s[e]<r&&(l+=1)}return l}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:i}=e;function n(){const t=e.rtlTranslate?-1*e.translate:e.translate,i=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(i),e.updateActiveIndex(),e.updateSlidesClasses()}let s;if(i.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach((t=>{t.complete&&z(e,t)})),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),i.freeMode&&i.freeMode.enabled&&!i.cssMode)n(),i.autoHeight&&e.updateAutoHeight();else{if(("auto"===i.slidesPerView||i.slidesPerView>1)&&e.isEnd&&!i.centeredSlides){const t=e.virtual&&i.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||n()}i.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t){void 0===t&&(t=!0);const i=this,n=i.params.direction;return e||(e="horizontal"===n?"vertical":"horizontal"),e===n||"horizontal"!==e&&"vertical"!==e||(i.el.classList.remove(`${i.params.containerModifierClass}${n}`),i.el.classList.add(`${i.params.containerModifierClass}${e}`),i.emitContainerClasses(),i.params.direction=e,i.slides.forEac
vendor: 8,298 bytes, line 1
1h((t=>{"vertical"===e?t.style.width="":t.style.height=""})),i.emit("changeDirection"),t&&i.update()),i}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 i=e||t.params.el;if("string"==typeof i&&(i=document.querySelector(i)),!i)return!1;i.swiper=t,i.parentNode&&i.parentNode.host&&i.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);const n=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let s=(()=>{if(i&&i.shadowRoot&&i.shadowRoot.querySelector){return i.shadowRoot.querySelector(n())}return y(i,n())[0]})();return!s&&t.params.createElements&&(s=S("div",t.params.wrapperClass),i.append(s),y(i,`.${t.params.slideClass}`).forEach((e=>{s.append(e)}))),Object.assign(t,{el:i,wrapperEl:s,slidesEl:t.isElement&&!i.parentNode.host.slideSlots?i.parentNode.host:s,hostEl:t.isElement?i.parentNode.host:i,mounted:!0,rtl:"rtl"===i.dir.toLowerCase()||"rtl"===x(i,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===i.dir.toLowerCase()||"rtl"===x(i,"direction")),wrongRTL:"-webkit-box"===x(s,"display")}),!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(),t.attachEvents();const i=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&i.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),i.forEach((e=>{e.complete?z(t,e):e.addEventListener("load",(e=>{z(t,e.target)}))})),R(t),t.initialized=!0,R(t),t.emit("init"),t.emit("afterInit"),t}destroy(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);const i=this,{params:n,el:s,wrapperEl:o,slides:r}=i;return void 0===i.params||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),n.loop&&i.loopDestroy(),t&&(i.removeClasses(),s.removeAttribute("style"),o.removeAttribute("style"),r&&r.length&&r.forEach((e=>{e.classList.remove(n.slideVisibleClass,n.slideFullyVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")}))),i.emit("destroy"),Object.keys(i.eventsListeners).forEach((e=>{i.off(e)})),!1!==e&&(i.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){}}))}(i)),i.destroyed=!0),null}static extendDefaults(e){g(ie,e)}static get extendedDefaults(){return ie}static get defaults(){return Q}static installModule(e){ne.prototype.__modules__||(ne.prototype.__modules__=[]);const t=ne.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach((e=>ne.installModule(e))),ne):(ne.installModule(e),ne)}}Object.keys(te).forEach((e=>{Object.keys(te[e]).forEach((t=>{ne.prototype[t]=te[e][t]}))})),ne.use([function(e){let{swiper:t,on:i,emit:n}=e;const s=u();let o=null,r=null;const a=()=>{t&&!t.destroyed&&t.initialized&&(n("beforeResize"),n("resize"))},l=()=>{t&&!t.destroyed&&t.initialized&&n("orientationchange")};i("init",(()=>{t.params.resizeObserver&&void 0!==s.ResizeObserver?t&&!t.destroyed&&t.initialized&&(o=new ResizeObserver((e=>{r=s.requestAnimationFrame((()=>{const{width:i,height:n}=t;let s=i,o=n;e.forEach((e=>{let{contentBoxSize:i,contentRect:n,target:r}=e;r&&r!==t.el||(s=n?n.width:(i[0]||i).inlineSize,o=n?n.height:(i[0]||i).blockSize)})),s===i&&o===n||a()}))})),o.observe(t.el)):(s.addEventListener("resize",a),s.addEventListener("orientationchange",l))})),i("destroy",(()=>{r&&s.cancelAnimationFrame(r),o&&o.unobserve&&t.el&&(o.unobserve(t.el),o=null),s.removeEventListener("resize",a),s.removeEventListener("orientationchange",l)}))},function(e){let{swiper:t,extendParams:i,on:n,emit:s}=e;const o=[],r=u(),a=function(e,i){void 0===i&&(i={});const n=new(r.MutationObserver||r.WebkitMutationObserver)((e=>{if(t.__preventObserver__)return;if(1===e.length)return void s("observerUpdate",e[0]);const i=function(){s("observerUpdate",e[0])};r.requestAnimationFrame?r.requestAnimationFrame(i):r.setTimeout(i,0)}));n.observe(e,{attributes:void 0===i.attributes||i.attributes,childList:void 0===i.childList||i.childList,characterData:void 0===i.characterData||i.characterData}),o.push(n)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",(()=>{if(t.params.observer){if(t.params.observeParents){const e=function(e,t){const i=[];let n=e.parentElement;for(;n;)t?n.matches(t)&&i.push(n):i.push(n),n=n.parentElement;return i}(t.hostEl);for(let t=0;t<e.length;t+=1)a(e[t])}a(t.hostEl,{childList:t.params.observeSlideChildren}),a(t.wrapperEl,{attributes:!1})}})),n("destroy",(()=>{o.forEach((e=>{e.disconnect()})),o.splice(0,o.length)}))}]);var se=i(4862),oe=i(7841),re=i(130),ae=i(2224),le=i(6495),ce=i(6031);function de(e){return de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},de(e)}function ue(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,he(n.key),n)}}function he(e){var t=function(e,t){if("object"!=de(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=de(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==de(t)?t:t+""}function fe(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function pe(e,t,i){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:i;throw new TypeError("Private element is not present on this object")}ne.use((function(e){let{swiper:t,extendParams:i,on:n,emit:s}=e;function o(e){let i;return e&&"string"==typeof e&&t.isElement&&(i=t.el.querySelector(e),i)?i:(e&&("string"==typeof e&&(i=[...document.querySelectorAll(e)]),t.params.uniqueNavElements&&"string"==typeof e&&i&&i.length>1&&1===t.el.querySelectorAll(e).length?i=t.el.querySelector(e):i&&1===i.length&&(i=i[0])),e&&!i?e:i)}function r(e,i){const n=t.params.navigation;(e=M(e)).forEach((e=>{e&&(e.classList[i?"add":"remove"](...n.disabledClass.split(" ")),"BUTTON"===e.tagName&&(e.disabled=i),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](n.lockClass))}))}function a(){const{nextEl:e,prevEl:i}=t.navigation;if(t.params.loop)return r(i,!1),void r(e,!1);r(i,t.isBeginning&&!t.params.rewind),r(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=function(e,t,i,n){return e.params.createElements&&Object.keys(n).forEach((s=>{if(!i[s]&&!0===i.auto){let o=y(e.el,`.${n[s]}`)[0];o||(o=S("div",n[s]),o.className=n[s],e.el.append(o)),i[s]=o,t[s]=o}})),i}(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!e.nextEl&&!e.prevEl)return;let i=o(e.nextEl),n=o(e.prevEl);Object.assign(t.navigation,{nextEl:i,prevEl:n}),i=M(i),n=M(n);const s=(i,n)=>{i&&i.addEventListener("click","next"===n?c:l),!t.enabled&&i&&i.classList.add(...e.lockClass.split(" "))};i.forEach((e=>s(e,"next"))),n.forEach((e=>s(e,"prev")))}function u(){let{nextEl:e,prevEl:i}=t.navigation;e=M(e),i=M(i);const n=(e,i)=>{e.removeEventListener("click","next"===i?c:l),e.classList.remove(...t.params.navigation.disabledClass.split(" "))};e.forEach((e=>
1n(e,"next"))),i.forEach((e=>n(e,"prev")))}i({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},n("init",(()=>{!1===t.params.navigation.enabled?h():(d(),a())})),n("toEdge fromEdge lock unlock",(()=>{a()})),n("destroy",(()=>{u()})),n("enable disable",(()=>{let{nextEl:e,prevEl:i}=t.navigation;e=M(e),i=M(i),t.enabled?a():[...e,...i].filter((e=>!!e)).forEach((e=>e.classList.add(t.params.navigation.lockClass)))})),n("click",((e,i)=>{let{nextEl:n,prevEl:o}=t.navigation;n=M(n),o=M(o);const r=i.target;if(t.params.navigation.hideOnClick&&!o.includes(r)&&!n.includes(r)){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===r||t.pagination.el.contains(r)))return;let e;n.length?e=n[0].classList.contains(t.params.navigation.hiddenClass):o.length&&(e=o[0].classList.contains(t.params.navigation.hiddenClass)),s(!0===e?"navigationShow":"navigationHide"),[...n,...o].filter((e=>!!e)).forEach((e=>e.classList.toggle(t.params.navigation.hiddenClass)))}}));const h=()=>{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(),a()},disable:h,update:a,init:d,destroy:u})}));var me=new WeakSet,ge=function(){return e=function e(t,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),fe(this,me),this.$root=t,this.$data=t.find(n.A.$select("map-embed-data")),this.$tabPanel=t.find(n.A.$select("map-embed-tab-panel")),this.$container=t.find(n.A.$select("map-embed-container")),this.$embed=t.find(n.A.$select("embed-frame")),this.$floorContainer=t.find(n.A.$select("map-embed-floors")),this.$floors=null,this.$floorAvailCount=t.find(n.A.$select("map-embed-floor-avail-count")),this.$floorsNext=this.$root.find(n.A.select("map-embed-floor-nav-next")),this.$floorsPrev=this.$root.find(n.A.select("map-embed-floor-nav-prev")),this.$unitListContainer=t.find(n.A.$select("map-embed-unit-list-container")),this.$unitListScroller=t.find(n.A.$select("map-embed-unit-list-scroller")),this.$unitList=t.find(n.A.$select("map-embed-unit-list")),this.$adaptiveHeightOffset=null,this.$viewToggle=t.find(n.A.$select("map-embed-view-toggle")),this.$activeAvailCount=t.find(n.A.$select("map-embed-active-avail-count")),this.$activeAvailCountMasks=this.$activeAvailCount.parents().filter(n.A.select("map-embed-active-avail-count-mask")),this.$noResults=t.find(n.A.$select("map-embed-no-results")),this.$mapTooltipContainer=null,this.$qaFloorAutoSwitchForm=this.$root.find(n.A.$select("map-embed-qa-floor-auto-switch-form")),this.$switcherLabel=t.find(n.A.$select("map-embed-switcher-label")),this.$switcherOptions=t.find(n.A.$select("map-embed-switcher-options")),this.$switcherOption=t.find(n.A.$select("map-embed-switcher-option")),this.data=n.A.getDataBy(this.$data),this.originListing=i,this.eventer=new le.A(["embed-switch"]),this.mapService=null,this.loader=new oe.default(t.find(n.A.$select("map-embed-loader"))),this.hideFilters=!1,this.activeView="map",this.filters=null,this.classes={heightApplied:"jd-fp-map-embed--height-applied",activeViewMap:"jd-fp-map-embed--view-active-map",activeViewList:"jd-fp-map-embed--view-active-list",floorsLoaded:"jd-fp-map-embed--floors-loaded",floorActive:"jd-fp-map-embed__floors-item--active",floorCountCloak:"jd-fp-map-embed__floors-item--cloak",floorItemHasAvail:"jd-fp-map-embed__floors-item--has-avail",floorsDragging:"jd-fp-map-embed__floors--dragging",loaderSheer:"jd-fp-map-embed__frame-loader--sheer",unitCardActive:"jd-fp-unit-card--active",switcherLabelOpen:"jd-fp-map-embed__switcher-label--open",switcherOptionHighlighted:"jd-fp-map-embed__switcher-options-item--highlighted"},this.scrollToUnitOnMapHover=!1,pe(me,this,ve).call(this),pe(me,this,Se).call(this)},t=[{key:"focusSwitcher",value:function(){var e=this.$switcherLabel.filter(":visible").first();e.length&&e.focus()}},{key:"onMapServiceEvent",value:function(e,t){this.mapService&&this.mapService.on(e,t)}},{key:"fireMapServiceEvent",value:function(e,t){this.mapService&&this.mapService.fire(e,t)}},{key:"forceLightbox",value:function(){return o()(window).width()<=n.A.embedsCollapseAt}},{key:"openInLightbox",value:function(){se.M.open([{src:this.$embed.data("jd-fp-embed-src"),type:"iframe"}])}},{key:"load",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;pe(me,this,Oe).call(this),pe(me,this,Ie).call(this),this.refreshFloorSelector(),pe(me,this,Le).call(this,(function(){e.mapService||e.loader.hide()})),this.mapService?this.mapService.boot((function(){e.loader.hide(),t&&t()})):t&&t()}},{key:"refreshFloorSelector",value:function(){this.$floorContainer.is(":visible")&&this.floorSlider&&(this.floorSlider.params.slidesPerView=pe(me,this,Ce).call(this),this.floorSlider.params.slidesPerView>=this.$floors.length?(this.floorSlider.params.slidesOffsetBefore=0,this.floorSlider.params.slidesOffsetAfter=0):(this.floorSlider.params.slidesOffsetBefore=12,this.floorSlider.params.slidesOffsetAfter=12),this.floorSlider.updateSlides(),this.$floorContainer.removeClass(n.A.classes.cloak))}},{key:"isIntegrated",value:function(){return Boolean(this.data.integration)}},{key:"setUnits",value:function(e){return this.fireMapServiceEvent("unit-define",[e]),this}},{key:"setUnitMatches",value:function(e){return this.fireMapServiceEvent("unit-filter",[e]),this}}],t&&ue(e.prototype,t),i&&ue(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,i}();function ve(){var e=this;pe(me,this,ye).call(this,"list"),this.$viewToggle.click((function(t){t.preventDefault(),pe(me,e,we).call(e)})),this.$qaFloorAutoSwitchForm.length&&(console.log(n.A.data.non_available_floor_behavior),this.$qaFloorAutoSwitchForm.on("submit",(function(t){t.preventDefault();var i=e.$qaFloorAutoSwitchForm.find("textarea").val().split(",").map((function(e){return e.trim()}));if(e.mapService){var s=e.mapService.floors,o=0;
1for(var r in s)s[r].count=Number(i[o])||0,++o;e.mapService.fire("floors-count-change",[s]),e.mapService.performNonAvailableFloorBehavior(n.A.data.non_available_floor_behavior)}}))),pe(me,this,be).call(this),pe(me,this,Pe).call(this)}function be(){var e=this;this.$switcherLabel.each((function(t,i){var s=o()(i),r=s.parent(),a=r.find(n.A.select("map-embed-switcher-options")),l=a.find(n.A.select("map-embed-switcher-option"));if(a.length&&l.length){var c=function(){return"true"===s.attr("aria-expanded")},d=function(t){if(l.removeClass(e.classes.switcherOptionHighlighted),t&&t.length){t.addClass(e.classes.switcherOptionHighlighted),s.attr("aria-activedescendant",t.attr("id"));var i=t.get(0),n=a.get(0);(i.offsetTop<n.scrollTop||i.offsetTop+i.offsetHeight>n.scrollTop+n.clientHeight)&&i.scrollIntoView({block:"nearest"})}else s.removeAttr("aria-activedescendant")},u=function(e){var t=s.attr("aria-activedescendant"),i=t?l.filter("#"+t):o()(),n=i.length?l.index(i):-1,r=n;switch(e){case"next":r=n<0?0:Math.min(n+1,l.length-1);break;case"prev":r=n<0?0:Math.max(n-1,0);break;case"first":r=0;break;case"last":r=l.length-1}r!==n&&d(l.eq(r))},h=function(){if(!c()){a.slideDown(100),s.attr("aria-expanded","true").addClass(e.classes.switcherLabelOpen);var t=l.filter('[aria-selected="true"]');d(t.length?t:l.first())}},f=function(){c()&&(a.slideUp(100),s.attr("aria-expanded","false").removeClass(e.classes.switcherLabelOpen),d(null))},p=function(t){var i=t.data("embed");f(),i!=e.data.id?e.eventer.fire("embed-switch",[i]):s.focus()};s.on("click",(function(e){e.preventDefault(),c()?f():h()})),s.on("keydown",(function(e){switch(e.key){case"Enter":case" ":if(e.preventDefault(),c()){var t=s.attr("aria-activedescendant"),i=t?l.filter("#"+t):o()();i.length?p(i):f()}else h();break;case"ArrowDown":e.preventDefault(),c()?u("next"):h();break;case"ArrowUp":e.preventDefault(),c()?u("prev"):h();break;case"Home":c()&&(e.preventDefault(),u("first"));break;case"End":c()&&(e.preventDefault(),u("last"));break;case"Escape":c()&&(e.preventDefault(),f());break;case"Tab":c()&&f()}})),l.on("click",(function(e){e.preventDefault(),p(o()(e.currentTarget))})),o()(document).on("click",(function(e){c()&&!o().contains(r.get(0),e.target)&&r.get(0)!==e.target&&f()}))}}))}function ye(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.$viewToggle.length&&(e=e||this.activeView,this.$viewToggle.html(n.A.icon(this.$viewToggle.data("toggle-data")[e].icon)+this.$viewToggle.data("toggle-data")[e].text))}function we(){pe(me,this,ye).call(this),this.activeView="map"===this.activeView?"list":"map","map"===this.activeView?(this.$unitListContainer.hide(),this.$root.addClass(this.classes.activeViewMap).removeClass(this.classes.activeViewList)):(this.$unitListContainer.show(),this.$root.addClass(this.classes.activeViewList).removeClass(this.classes.activeViewMap))}function Se(){var e=this;"engrain"===this.data.integration&&(this.mapService=new re.A(this.data.engrain,this.$embed)),this.onMapServiceEvent("floors-set",(function(t){e.$floorContainer.html(n.A.template.render("map-embed-floors",{floors:t,embed_id:e.data.id})),e.$floors=e.$floorContainer.find(n.A.$select("map-embed-floor"))})),this.onMapServiceEvent("floor-change",(function(t,i,n){var s=e.$floors.filterBy("data-floor",t.id);e.$floors.removeClass(e.classes.floorActive).attr({"aria-selected":"false",tabindex:"-1"}),s.addClass(e.classes.floorActive).attr({"aria-selected":"true",tabindex:"0"}),e.$tabPanel.attr("aria-labelledby",s.attr("id")),e.floorSlider&&e.floorSlider.slideTo(s.index()-1),n&&ae.A.fireMapFloorChange(e.originListing)})),this.onMapServiceEvent("active-availability-count-change",(function(t){e.$activeAvailCount.text(t),t>0?e.$activeAvailCountMasks.show():e.$activeAvailCountMasks.hide()})),this.onMapServiceEvent("floors-count-change",(function(t){for(var i in t){var s=t[i].count,o=e.$floors.filterBy("data-floor",i);o.length&&(s>0?o.addClass(e.classes.floorItemHasAvail):o.removeClass(e.classes.floorItemHasAvail),o.data("original-aria-label")||o.data("original-aria-label",o.attr("aria-label")),o.attr("aria-label",o.data("original-aria-label").replace("{count}",s)),o.find(n.A.$select("map-embed-floor-avail-count")).text(s))}e.$floors.removeClass(e.classes.floorCountCloak)})),this.onMapServiceEvent("floors-hide",(function(){e.$floorContainer.slideUp(100),e.$unitList.fadeOut(100,(function(){e.$unitListContainer.data("origin-width",e.$unitListContainer.outerWidth()).animate({width:0},(function(){e.$unitListContainer.hide()}))}))})),this.onMapServiceEvent("floors-show",(function(){e.$floorContainer.slideDown(100),e.$unitListContainer.show().animate({width:e.$unitListContainer.data("origin-width")},(function(){e.$unitListContainer.css("width",""),e.$unitList.fadeIn(200)}))})),this.onMapServiceEvent("unit-visibility",(function(t){pe(me,e,ke).call(e,t),t.length?e.$noResults.hide():(e.$
1noResults.html(n.A.template.render("no-results",{resource:"unit",resourceLabel:"unit",filtersEngaged:e.filters&&e.filters.engaged().length}).trim()).show(),e.$noResults.find('[data-jd-fp-selector="filter-clear-all"]').click((function(t){t.preventDefault(),e.filters.clear()})))})),this.onMapServiceEvent("unit-details-request",(function(e){n.A.loadUnitDetailsModal(e.slug,"map")})),this.onMapServiceEvent("unit-hover-in",(function(t){var i=e.$unitList.findBy("data-unit",t.slug);pe(me,e,Ee).call(e,i),i.length&&n.A.stagger("unit-map-hover",(function(){return n.A.fetchUntilDetailsViewBySlug(t.slug)}))})),this.onMapServiceEvent("unit-hover-out",(function(){pe(me,e,Te).call(e),e.$unitList.find(n.A.$select("unit-card")).removeClass(e.classes.unitCardActive),n.A.staggerCancel("unit-map-hover"),n.A.staggerCancel("unit-map-hover-scroll")})),this.onMapServiceEvent("unit-mouse-move",(function(t,i){pe(me,e,Me).call(e,t.x,t.y)}))}function xe(){return this.$mapTooltipContainer||(this.$mapTooltipContainer=n.A.$app.find("#jd-fp-map-tooltip-container"),this.$mapTooltipContainer.length||(this.$mapTooltipContainer=o()('<div id="jd-fp-map-tooltip-container"></div>'),n.A.$body.append(this.$mapTooltipContainer))),this.$mapTooltipContainer}function Ee(e){this.mapService.useNativeTooltip()&&(pe(me,this,xe).call(this).data("destroy-timeout")&&clearTimeout(pe(me,this,xe).call(this).data("destroy-timeout")),pe(me,this,xe).call(this).html(e.clone().addClass("jd-fp-unit-card--as-tooltip")).css({position:"absolute",top:0,left:0,opacity:0}).data("height",pe(me,this,xe).call(this).outerHeight()).data("width",pe(me,this,xe).call(this).outerWidth()))}function Te(){var e=this;if(this.mapService.useNativeTooltip()){if(1==n.A.url.searchParams.get("debug-tooltip"))return;pe(me,this,xe).call(this).data("destroy-timeout",setTimeout((function(){pe(me,e,xe).call(e).html("").data("height",0).data("width",0).css({top:0,left:0,opacity:0})}),40))}}function Me(e,t){if(this.mapService.useNativeTooltip()){var i=e,s=n.A.scrollElOffset()+5,r=this.$embed.offset().left-n.A.$app.offset().left,a=this.$embed.offset().top-n.A.$app.offset().top;e=r+e+20;var l=(t=a+(t-pe(me,this,xe).call(this).data("height")/2))-a+(this.$embed.offset().top-o()(window).scrollTop())-s,c=t-(o()(window).height()+o()(window).scrollTop()-n.A.$app.offset().top-pe(me,this,xe).call(this).data("height")-5),d=o()(window).width()-(this.$embed.offset().left+(e-r)+pe(me,this,xe).call(this).data("width")+3);l<=0?t=o()(window).scrollTop()-n.A.$app.offset().top+s:c>=0&&(t=o()(window).height()+o()(window).scrollTop()-n.A.$app.offset().top-pe(me,this,xe).call(this).data("height")-5),d<=0&&(e=i-20-pe(me,this,xe).call(this).data("width")+r),pe(me,this,xe).call(this).css({position:"absolute",top:t,left:e,opacity:1,zIndex:2e3})}}function Ce(){if(this.$floorContainer.length){var e,t=this.$container.outerWidth(),i=1300,s=this.$floors.length,o=null,r={default:Math.floor(20*t/i),1300:20,1100:17,900:15,800:Math.floor(22*t/i),720:Math.floor(25*t/i),375:Math.floor(27*t/i)};return Object.keys(r).reverse().forEach((function(e){(parseInt(e)>=t||"default"===e)&&(o=e)})),(e=r[o])<s?Math.floor(e)-(n.A.touchDevice?.25:.05):e}return 0}function Pe(){var e=this;pe(me,this,Oe).call(this),o()(window).on("resize",(function(){return pe(me,e,Oe).call(e)}))}function Oe(){if(this.$root.is(":visible")){o()(window).height();var e=40;n.A.data.config.settings.scroll_offset_selector&&!this.$adaptiveHeightOffset&&(this.$adaptiveHeightOffset=o()(n.A.data.config.settings.scroll_offset_selector)),this.$adaptiveHeightOffset&&this.$adaptiveHeightOffset.length&&(this.$adaptiveHeightOffset.outerHeight(),e+=this.$adaptiveHeightOffset.outerHeight()),this.$container.offset().top-n.A.$app.offset().top,e+=this.$container.offset().top-n.A.$app.offset().top,n.A.$app.get(0).style.setProperty("--jd-app-offset",e+"px")}}function Ae(e){var t=this;if(!e.__card){var i=document.createElement("div");i.innerHTML=e.card_html,e.__card=i.firstChild,e.__adaptivePricingListener&&e.__adaptivePricingListener.bindToRoot(e.__card),e.__card.addEventListener("click",(function(t){t.preventDefault(),n.A.loadUnitDetailsModal(e.slug,"unit-list",null,null,(function(t,i){i.setFocusElOnClose(o()(e.__card))}))})),e.__card.addEventListener("mouseenter",(function(i){n.A.stagger("unit-list-hover",(function(){return n.A.fetchUntilDetailsViewBySlug(e.slug)})),t.fireMapServiceEvent("unit-card-hover-in",[e])})),e.__card.addEventListener("mouseleave",(function(i){n.A.staggerCancel("unit-list-hover"),t.fireMapServiceEvent("unit-card-hover-out",[e])}))}return e.__card}function ke(e){var t=this;window.location.search.match(/mock-preload=1/)||(this.$unitList.empty(),e.forEach((function(e){t.$unitList.append(pe(me,t,Ae).call(t,e))})))}function Ie(){var e=this;this.floorSlider||this.$floorContainer.length&&(this.floorSlider=new ne(this.$floorContainer.get(0),{slidesPerView:pe(me,this,Ce).call(this),slidesPerGroup:4,centerInsufficientSlides:!0,direction:"horizontal",freeMode:!0,allowTouchMove:!0,watchOverflow:!0,mousewheel:{enabled:!0},navigation:{nextEl:this.$root.find(n.A.select("map-embed-floor-nav-next")).get(0),prevEl:this.$root.find(n.A.select("map-embed-floor-nav-prev")).get(0)},on:{init:function(){e.$root.addClass(e.classes.floorsLoaded)}}}),o()(window).on("resize",(function(){e.refreshFloorSelector()}
1)),this.floorSlider.on("sliderMove",(function(){e.$floorContainer.addClass(e.classes.floorsDragging)})),this.floorSlider.on("touchEnd",(function(){e.$floorContainer.removeClass(e.classes.floorsDragging)})),this.$floors.click((function(t){t.preventDefault(),e.fireMapServiceEvent("floor-change",[e.mapService.floor(o()(t.currentTarget).data("floor")),!0,!0])})),(0,ce.q)(this.$floors,{onFocus:function(t){e.floorSlider&&e.floorSlider.slideTo(t)}}))}function Le(e){this.$embed.attr("src")?e&&e():(this.mapService&&void 0!==this.mapService.SightMap&&this.$embed.attr("allow","geolocation"),this.$embed.attr("src",this.$embed.data("jd-fp-embed-src")).on("load",(function(){e&&e()})))}},996:(e,t,i)=>{i.r(t),i.d(t,{default:()=>u});var n=i(6826),s=i(4927),o=i(4692),r=i.n(o),a=i(2224);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,d(n.key),n)}}function d(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l(t)?t:t+""}var u=function(){return e=function e(t,i){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$root=t,this.$mapEmbedToggles=t.find(n.A.$select("map-embed-toggle")),this.$mapEmbeds=t.find(n.A.$select("map-embed")),this.mapEmbeds={},this.hideFilters=!1,this.activeMapEmbed=null,this.originListing=i,this.$mapEmbeds.length&&(this.$mapEmbeds.each((function(e,t){var i=r()(t),n=i.data("embed");o.mapEmbeds[n]=new s.default(i,o.originListing),o.activeMapEmbed||(o.activeMapEmbed=o.mapEmbeds[n]),i.data("map-embed",o.mapEmbeds[n]),o.mapEmbeds[n].eventer.on("embed-switch",(function(e){o.showEmbed(e)}))})),this.activeMapEmbed=this.getInitialEmbed())},t=[{key:"disableFilters",value:function(){for(var e in this.mapEmbeds)if(this.mapEmbeds[e].data.engrain)return this.mapEmbeds[e].data.engrain.disabled_ui.indexOf("filters")<0;return!0}},{key:"nativeUI",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.getFirst();return t.mapService?t.mapService.nativeUI(e):!e&&[]}},{key:"isIntegrated",value:function(){for(var e in this.mapEmbeds)if(this.mapEmbeds[e].isIntegrated())return!0;return!1}},{key:"refreshFloorSelectors",value:function(){for(var e in this.mapEmbeds)this.mapEmbeds[e].refreshFloorSelector()}},{key:"load",value:function(e){var t=this.getInitialEmbed();t&&t!==this.getFirst()&&(this.$mapEmbeds.hide().filterBy("data-embed",t.data.id).show(),this.activeMapEmbed=t),(t||this.getFirst()).load(e)}},{key:"getFirst",value:function(){return this.$mapEmbeds.first().data("map-embed")}},{key:"getInitialEmbed",value:function(){var e=n.A.url.searchParams.get("map");if(e)for(var t in this.mapEmbeds){var i=this.mapEmbeds[t].data.slug;if(i&&String(i)===e)return this.mapEmbeds[t]}return this.getFirst()}},{key:"getActive",value:function(){return this.activeMapEmbed}},{key:"showEmbed",value:function(e){var t=this;this.$mapEmbeds.hide().filterBy("data-embed",e).show(),this.activeMapEmbed=this.mapEmbeds[e],this.mapEmbeds[e].load((function(){t.mapEmbeds[e].focusSwitcher(),a.A.fireMapChange(t.originListing)}))}},{key:"setUnits",value:function(e){for(var t in this.mapEmbeds)this.mapEmbeds[t].setUnits(e);return this}},{key:"setUnitMatches",value:function(e){for(var t in this.mapEmbeds)this.mapEmbeds[t].setUnitMatches(e);return this}},{key:"passFilterInstance",value:function(e){for(var t in this.mapEmbeds)this.mapEmbeds[t].filters=e;return this}}],t&&c(e.prototype,t),i&&c(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,i}()},2376:(e,t,i)=>{i.d(t,{A:()=>O});var n,s=i(6495),o=i(4650),r=i(6826);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function l(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);if("Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return c(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,f(n.key),n)}}function h(e,t,i){return t&&u(e.prototype,t),i&&u(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function f(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}function p(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function m(e,t,i){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:i;throw new TypeError("Private element is not present on this object")}var g=new WeakSet,v=function(){return h((function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;d(this,e),p(this,g),this.firstArgMatch=i,this.callback=m(g,this,b).call(this,t),this.eventer=new s.A(["callback-executed"]),this.cacheIndex=n,this.bound=!1,this.priceFilterCallback=null,this.$root=null,this.elementsByIndex={}}),[{key:"bindToRoot",value:function(e){var t=this;if(y.enabled){this.$root=$(e);var i=this.$root.find("[data-jd-fp-adp]");if(i.length&&(i.each((function(e,i){var n=i.getAttribute("data-jd-fp-adp");t.elementsByIndex[n]||(t.elementsByIndex[n]=[]),t.elementsByIndex[n].push(i)})),this.eventer.on("callback-executed",(function(e,i){r.A.adpXray()&&t.$root.addClass("jd-fp-qa-adp-pricing-applied"),t.elementsByIndex.display&&t.elementsByIndex.display.length&&t.elementsByIndex.display.forEach((function(e){return e.innerText=i.priceDisplay})),t.elementsByIndex.base_display&&t.elementsByIndex.base_display.length&&t.elementsByIndex.base_display.forEach((function(e){return e.innerText=i.priceDisplayNoFees})),t.elementsByIndex.term&&t.elementsByIndex.term.length&&t.elementsByIndex.term.forEach((function(e){return e.innerText=i.termDisplay}))}))),!this.bound&&this.cacheIndex&&this.firstArgMatch&&("floorplan"!==this.cacheIndex||"floorplan"===this.cacheIndex&&y.unitPropagate)){var n=y.getPriceEntityFromCache(this.cacheIndex,this.firstArgMatch);n&&this.callback(this.firstArgMatch,n)}this.bound=!0}}},{key:"destroy",value:function(){var e=this,t=function(){var t=y.eventer.events[i];t.length&&t.forEach((function(i,n){i===e.callback&&t.splice(n,1)}))};for(var i in y.eventer.events)t();if(y.pricingFilter&&y.pricingFilter.eventer.events){var n=function(){var t=y.pricingFilter.eventer.events[s];t.length&&t.forEach((function(i,n){i===e.priceFilterCallback&&t.splice(n,1)}))};for(var s in y.pricingFilter.eventer.events)n()}}}])}();function b(e){var t=this;return function(){for(var i=arguments.length,n=new Array(i),s=0;s<i;s++)n[s]=arguments[s];if(!t.firstArgMatch||t.firstArgMatch===n[0]){t.eventer.fire("callback-executed",n);var o=n[1];o&&t.cacheIndex&&"unit"===t.cacheIndex&&(y.adjustUnitStore(n[0],o),t.$root&&t.$root.length&&(y.unitIsDivergent(n[0])?t.$root.addClass("jd-fp-adp-divergent"):t.$root.removeClass("jd-fp-adp-divergent"),y.pricingFilter&&y.pricingFilter.on("change",t.priceFilterCallback=function(){t.$root.hasClass("jd-fp-adp-divergent")&&!y.unitIsDivergent(n[0])&&t.$root.removeClass("jd-fp-adp-divergent")}))),e&&e.apply(null,n)}}}var y=new(n=new WeakSet,function(){return h((function e(){d(this,e),p(this,n),this.enabled=r.A.adaptivePricingEnabled(),this.ready=!1,this.unitPropagate=r.A.adaptivePricingUnitPropagate(),this.eventer=new s.A(["ready","alter-unit","alter-floorplan"]),this.cache=new o.A("adaptive-pricing",r.A.adaptivePricingPersistence(),!0),this.value=this.cache.value()||m(n,this,x).call(this),this.fromEmpty=!Boolean(this.cache.value()),this.pricingFilter=null,this.pricingFilterNudgeTimeout=null,this.pricingDataStore={resources:{},spread:[],min:null,max:null},this.resourceRefs={unit:{},floorplan:{}}
1,this.filterDivergencies={unit:[],floorplan:[]},this.floorplanNudgeTimeouts={},this.channel=new BroadcastChannel("jd-fp-adaptive-pricing"),r.A.adpReset()&&m(n,this,w).call(this),m(n,this,S).call(this)}),[{key:"onReady",value:function(e){this.ready?e():this.eventer.on("ready",e)}},{key:"getPriceEntityFromCache",value:function(e,t){var i=this.cache.value();return i&&i[e][t]?i[e][t]:null}},{key:"getUnitPriceEntityFromCache",value:function(e){return this.getPriceEntityFromCache("unit",e)}},{key:"getRangeFromCache",value:function(e){var t=this.cache.value();return t&&t.rangeFilter&&t.rangeFilter[e]?t.rangeFilter[e]:null}},{key:"normalizePriceEntity",value:function(e){return e=Object.assign(m(n,this,E).call(this),e),Object.keys(e.adjusted).length||"scaffold"!==e.origin||(e.adjusted.low=e.priceLow,e.adjusted.high=e.priceHigh,e.adjusted.display=e.priceDisplay),e}},{key:"newPriceEntity",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return this.normalizePriceEntity({priceLow:e,priceHigh:t,priceDisplay:r.A.getPriceForDisplay([e,t]),priceDisplayNoFees:i?i.priceDisplayNoFees:"",term:i?i.term:"",termDisplay:i?i.termDisplay:""})}},{key:"storeUnitReferences",value:function(e){var t=this;e.forEach((function(e){t.resourceRefs.unit[e.slug]=e;var i=t.getUnitPriceEntityFromCache(e.slug)||e.price_entity;t.adjustUnitStore(e.slug,i)}))}},{key:"storeFloorplanReferences",value:function(e){var t=this;e.forEach((function(e){t.resourceRefs.floorplan[e.id]=e,e.price_entity_origin=JSON.parse(JSON.stringify(e.price_entity)),t.adjustResourceOnDataStore("floorplan",e.id,e.price_entity.adjusted.low,e.price_entity.adjusted.high)}))}},{key:"adjustResourceOnDataStore",value:function(e,t,i,n){var s=e+"-"+t;i=Number(i),n=Number(n),r.A.pricingPreserveDecimals()&&(i=i.toFixed(2),n=n.toFixed(2)),i>0&&n>0&&(this.pricingDataStore.resources[s]=[i,n],this.pricingDataStore.spread=l(new Set(Object.values(this.pricingDataStore.resources).flat())),this.pricingDataStore.min=Math.min.apply(null,this.pricingDataStore.spread),this.pricingDataStore.max=Math.max.apply(null,this.pricingDataStore.spread))}},{key:"adjustUnitStore",value:function(e,t){var i=this.getUnitRef(e);this.adjustResourceOnDataStore("unit",e,t.adjusted.low,t.adjusted.high),m(n,this,C).call(this,e,t),i&&this.unitPropagate&&this.nudgeFloorplan(i.floorplan_id),this.nudgeFilter()}},{key:"refreshFloorplanPriceEntity",value:function(e){var t=this,i=this.getFloorplanRef(e);if(i&&m(n,this,T).call(this,e)){var s,o=i.units.map((function(e){return e.slug})),a=[];o.length&&(a=o.map((function(e){var i=t.getUnitRef(e);if(i)return[i.price_entity.adjusted.low,i.price_entity.adjusted.high]}))),s=l(new Set(a.flat()));var c=Math.min.apply(null,s),d=Math.max.apply(null,s);r.A.pricingPreserveDecimals()&&(c=c.toFixed(2),d=d.toFixed(2));var u=this.newPriceEntity(c,d,"all"===this.unitPropagate?i.price_entity_origin:null);this.alterFloorplan(e,u)}}},{key:"filterAware",value:function(e){this.pricingFilter=e,this.pricingDataStore.spread.length&&this.nudgeFilter()}},{key:"nudgeFloorplan",value:function(e){var t=this;this.floorplanNudgeTimeouts[e]&&clearTimeout(this.floorplanNudgeTimeouts[e]),this.floorplanNudgeTimeouts[e]=setTimeout((function(){t.refreshFloorplanPriceEntity(e)}),800)}},{key:"nudgeFilter",value:function(){var e=this;this.pricingFilter&&(this.pricingFilterNudgeTimeout&&clearTimeout(this.pricingFilterNudgeTimeout),this.pricingFilterNudgeTimeout=setTimeout((function(){e.value.rangeFilter.unit={min:100*Math.floor(e.pricingDataStore.min/100),max:100*Math.ceil(e.pricingDataStore.max/100)},e.pricingFilter.resetSliderMinMax(e.pricingDataStore.min,e.pricingDataStore.max)}),800))}},{key:"getUnitRef",value:function(e){return m(n,this,M).call(this,"unit",e)}},{key:"getFloorplanRef",value:function(e){return m(n,this,M).call(this,"floorplan",e)}},{key:"unitIsDivergent",value:function(e){var t=this.getUnitRef(e);return!!t&&this.resourceIsDivergent("unit",t)}},{key:"resourceIsDivergent",value:function(e,t){return!(!this.pricingFilter||!this.pricingFilter.value())&&!this.pricingFilter.match(t,e)}},{key:"alterUnit",value:function(e,t){var i=this;this.value.unit[e]=t,this.cache.set(this.value);var s=this.getUnitRef(e);if(m(n,this,C).call(this,e,t),s&&this.pricingFilter&&this.pricingFilter.value()){var o=this.filterDivergencie
1s.unit.indexOf(e);this.pricingFilter.match(s,"unit")?o>-1&&this.filterDivergencies.unit.splice(o,1):this.filterDivergencies.unit.push(e)}this.onReady((function(){return i.eventer.fire("alter-unit",[e,t])}))}},{key:"alterFloorplan",value:function(e,t){var i=this;this.value.floorplan[e]=t,this.cache.set(this.value),m(n,this,P).call(this,e,t),this.onReady((function(){return i.eventer.fire("alter-floorplan",[e,t])}))}},{key:"attachNewFloorplanListener",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this.attachNewListener("alter-floorplan",t,e)}},{key:"attachNewFloorplanListenerToRoot",value:function(e,t){var i=this.attachNewFloorplanListener(e);return i.bindToRoot(t),i}},{key:"attachNewUnitListener",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this.attachNewListener("alter-unit",t,e)}},{key:"attachNewUnitListenerToRoot",value:function(e,t){var i=this.attachNewUnitListener(e);return i.bindToRoot(t),i}},{key:"attachNewListener",value:function(e){var t=new v(arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,"alter-unit"===e?"unit":"floorplan");return this.eventer.on(e,t.callback),t}}])}());function w(){this.cache.forget(),this.value=m(n,this,x).call(this)}function S(){var e=this;this.enabled&&("local"===this.cache.type?r.A.onPricingCacheTimestamp((function(t){e.value.timestamp!==t&&(e.cache.forget(),e.value=m(n,e,x).call(e),e.value.timestamp=t),e.eventer.fireAndPropagate("ready")})):this.eventer.fireAndPropagate("ready"),this.eventer.on("ready",(function(){e.ready=!0})))}function x(){return JSON.parse(JSON.stringify({unit:{},floorplan:{},timestamp:null,rangeFilter:{unit:{min:null,max:null}}}))}function E(){var e=JSON.parse(JSON.stringify(r.A.data.price_entity_scaffold));return e.adjusted={},e}function T(e){var t=this.getFloorplanRef(e),i=Object.keys(this.value.unit);if(i.length&&t){var n=t.units.map((function(e){return e.slug}));if(n.length)return Boolean(i.filter((function(e){return n.indexOf(e)>-1})).length)}return!1}function M(e,t){return this.resourceRefs[e][t]?this.resourceRefs[e][t]:null}function C(e,t){var i=this.getUnitRef(e);i&&(i.price_entity=t,i.rent_min=t.adjusted.low,i.rent_max=t.adjusted.high)}function P(e,t){var i=this.getFloorplanRef(e);i&&(i.price_entity=t,i.rent_min=t.adjusted.low,i.rent_max=t.adjusted.high)}const O=y},4862:(e,t,i)=>{i.d(t,{M:()=>Ft});var n=i(6826),s=i(7390);const o=(e,t=1e4)=>(e=parseFloat(e+"")||0,Math.round((e+Number.EPSILON)*t)/t),r=function(e){if(!(e&&e instanceof Element&&e.offsetParent))return!1;const t=e.scrollHeight>e.clientHeight,i=window.getComputedStyle(e).overflowY,n=-1!==i.indexOf("hidden"),s=-1!==i.indexOf("visible");return t&&!n&&!s},a=function(e,t=void 0){return!(!e||e===document.body||t&&e===t)&&(r(e)?e:a(e.parentElement,t))},l=function(e){var t=(new DOMParser).parseFromString(e,"text/html").body;if(t.childElementCount>1){for(var i=document.createElement("div");t.firstChild;)i.appendChild(t.firstChild);return i}return t.firstChild},c=e=>`${e||""}`.split(" ").filter((e=>!!e)),d=(e,t,i)=>{e&&c(t).forEach((t=>{e.classList.toggle(t,i||!1)}))};class u{constructor(e){Object.defineProperty(this,"pageX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"pageY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"clientX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"clientY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"time",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"nativePointer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.nativePointer=e,this.pageX=e.pageX,this.pageY=e.pageY,this.clientX=e.clientX,this.clientY=e.clientY,this.id=self.Touch&&e instanceof Touch?e.identifier:-1,this.time=Date.now()}}const h={passive:!1};class f{constructor(e,{start:t=(()=>!0),move:i=(()=>{}),end:n=(()=>{})}){Object.defineProperty(this,"element",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"startCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"moveCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"endCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"currentPointers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"startPointers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),this.element=e,this.startCallback=t,this.moveCallback=i,this.endCallback=n;for(const e of["onPointerStart","onTouchStart","onMove","onTouchEnd","onPointerEnd","onWindowBlur"])this[e]=this[e].bind(this);this.element.addEventListener("mousedown",this.onPointerStart,h),this.element.addEventListener("touchstart",this.onTouchStart,h),this.element.addEventListener("touchmove",this.onMove,h),this.element.addEventListener("touchend",this.onTouchEnd),this.element.addEventListener("touchcancel",this.onTouchEnd)}onPointerStart(e){if(!e.buttons||0!==e.button)return;const t=new u(e);this.currentPointers.some((e=>e.id===t.id))||this.triggerPointerStart(t,e)&&(window.addEventListener("mousemove",this.onMove),window.addEventListener("mouseup",this.onPointerEnd),window.addEventListener("blur",this.onWindowBlur))}onTouchStart(e){for(const t of Array.from(e.changedTouches||[]))this.triggerPointerStart(new u(t),e);window.addEventListener("blur",this.onWindowBlur)}onMove(e){const t=this.currentPointers.slice(),i="changedTouches"in e?Array.from(e.changedTouches||[]).map((e=>new u(e))):[new u(e)],n=[];for(const e of i){const t=this.currentPointers.findIndex((t=>t.id===e.id));t<0||(n.push(e),this.currentPointers[t]=e)}n.length&&this.moveCallback(e,this.currentPointers.slice(),t)}onPointerEnd(e){e.buttons>0&&0!==e.button||(this.triggerPointerEnd(e,new u(e)),window.removeEventListener("mousemove",this.onMove),window.removeEventListener("mouseup",this.onPointerEnd),window.removeEventListener("blur",this.onWindowBlur))}onTouchEnd(e){for(const t of Array.from(e.changedTouches||[]))this.triggerPointerEnd(e,new u(t))}triggerPointerStart(e,t){return!!this.startCallback(t,e,this.currentPointers.slice())&&(this.currentPointers.push(e),this.startPointers.push(e),!0)}triggerPointerEnd(e,t){const i=this.currentPointers.findIndex((e=>e.id===t.id));i<0||(this.currentPointers.splice(i,1),this.startPointers.splice(i,1),this.endCallback(e,t,this.currentPointers.slice()))}onWindowBlur(){this.clear()}clear(){for(;this.currentPointers.length;){const e=this.currentPointers[this.currentPointers.length-1];this.currentPointers.splice(this.currentPointers.length-1,1),this.startPointers.splice(this.currentPointers.length-1,1),this.endCallback(new Event("touchend",{bubbles:!0,cancelable:!0,clientX:e.clientX,clientY:e.clientY}),e,this.currentPointers.slice())}}stop(){this.element.removeEventListener("mousedown",this.onPointerStart,h),this.element.removeEventListener("touchstart",this.onTouchStart,h),this.element.removeEventListener("touchmove",this.onMove,h),this.element.removeEventListener("touchend",this.onTouchEnd),this.element.removeEventListener("touchcancel",this.onTouchEnd),window.removeEventListener("mousemove",this.onMove),window.removeEventListener("mouseup",this.onPointerEnd),window.removeEventListener("blur",this.onWindowBlur)}}function p(e,t){return t?Math.sqrt(Math.pow(t.clientX-e.clientX,2)+Math.pow(t.clientY-e.clientY,2)):0}function m(e,t){return t?{clientX:(e.clientX+t.clientX)/2,clientY:(e.clientY+t.clientY)/2}:e}const g=e=>"object"==typeof e&&null!==e&&e.constructor===Object&&"[object Object]"===Object.prototype.toString.call(e),v=(e,...t)=>{const i=t.length;for(let n=0;n<i;n++){const i=t[n]||{};
vendor: 20,014 bytes, line 1
1Object.entries(i).forEach((([t,i])=>{const n=Array.isArray(i)?[]:{};e[t]||Object.assign(e,{[t]:n}),g(i)?Object.assign(e[t],v(n,i)):Array.isArray(i)?Object.assign(e,{[t]:[...i]}):Object.assign(e,{[t]:i})}))}return e},b=function(e,t){return e.split(".").reduce(((e,t)=>"object"==typeof e?e[t]:void 0),t)};class y{constructor(e={}){Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),this.setOptions(e);for(const e of Object.getOwnPropertyNames(Object.getPrototypeOf(this)))e.startsWith("on")&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}setOptions(e){this.options=e?v({},this.constructor.defaults,e):{};for(const[e,t]of Object.entries(this.option("on")||{}))this.on(e,t)}option(e,...t){let i=b(e,this.options);return i&&"function"==typeof i&&(i=i.call(this,this,...t)),i}optionFor(e,t,i,...n){let s=b(t,e);var o;"string"!=typeof(o=s)||isNaN(o)||isNaN(parseFloat(o))||(s=parseFloat(s)),"true"===s&&(s=!0),"false"===s&&(s=!1),s&&"function"==typeof s&&(s=s.call(this,this,e,...n));let r=b(t,this.options);return r&&"function"==typeof r?s=r.call(this,this,e,...n,s):void 0===s&&(s=r),void 0===s?i:s}cn(e){const t=this.options.classes;return t&&t[e]||""}localize(e,t=[]){e=String(e).replace(/\{\{(\w+).?(\w+)?\}\}/g,((e,t,i)=>{let n="";return i?n=this.option(`${t[0]+t.toLowerCase().substring(1)}.l10n.${i}`):t&&(n=this.option(`l10n.${t}`)),n||(n=e),n}));for(let i=0;i<t.length;i++)e=e.split(t[i][0]).join(t[i][1]);return e.replace(/\{\{(.*?)\}\}/g,((e,t)=>t))}on(e,t){let i=[];"string"==typeof e?i=e.split(" "):Array.isArray(e)&&(i=e),this.events||(this.events=new Map),i.forEach((e=>{let i=this.events.get(e);i||(this.events.set(e,[]),i=[]),i.includes(t)||i.push(t),this.events.set(e,i)}))}off(e,t){let i=[];"string"==typeof e?i=e.split(" "):Array.isArray(e)&&(i=e),i.forEach((e=>{const i=this.events.get(e);if(Array.isArray(i)){const e=i.indexOf(t);e>-1&&i.splice(e,1)}}))}emit(e,...t){[...this.events.get(e)||[]].forEach((e=>e(this,...t))),"*"!==e&&this.emit("*",e,...t)}}Object.defineProperty(y,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.0.36"}),Object.defineProperty(y,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{}});class w extends y{constructor(e={}){super(e),Object.defineProperty(this,"plugins",{enumerable:!0,configurable:!0,writable:!0,value:{}})}attachPlugins(e={}){const t=new Map;for(const[i,n]of Object.entries(e)){const e=this.option(i),s=this.plugins[i];s||!1===e?s&&!1===e&&(s.detach(),delete this.plugins[i]):t.set(i,new n(this,e||{}))}for(const[e,i]of t)this.plugins[e]=i,i.attach()}detachPlugins(e){e=e||Object.keys(this.plugins);for(const t of e){const e=this.plugins[t];e&&e.detach(),delete this.plugins[t]}return this.emit("detachPlugins"),this}}var S;!function(e){e[e.Init=0]="Init",e[e.Error=1]="Error",e[e.Ready=2]="Ready",e[e.Panning=3]="Panning",e[e.Mousemove=4]="Mousemove",e[e.Destroy=5]="Destroy"}(S||(S={}));const x=["a","b","c","d","e","f"],E={PANUP:"Move up",PANDOWN:"Move down",PANLEFT:"Move left",PANRIGHT:"Move right",ZOOMIN:"Zoom in",ZOOMOUT:"Zoom out",TOGGLEZOOM:"Toggle zoom level",TOGGLE1TO1:"Toggle zoom level",ITERATEZOOM:"Toggle zoom level",ROTATECCW:"Rotate counterclockwise",ROTATECW:"Rotate clockwise",FLIPX:"Flip horizontally",FLIPY:"Flip vertically",FITX:"Fit horizontally",FITY:"Fit vertically",RESET:"Reset",TOGGLEFS:"Toggle fullscreen"},T={content:null,width:"auto",height:"auto",panMode:"drag",touch:!0,dragMinThreshold:3,lockAxis:!1,mouseMoveFactor:1,mouseMoveFriction:.12,zoom:!0,pinchToZoom:!0,panOnlyZoomed:"auto",minScale:1,maxScale:2,friction:.25,dragFriction:.35,decelFriction:.05,click:"toggleZoom",dblClick:!1,wheel:"zoom",wheelLimit:7,spinner:!0,bounds:"auto",infinite:!1,rubberband:!0,bounce:!0,maxVelocity:75,transformParent:!1,classes:{content:"f-panzoom__content",isLoading:"is-loading",canZoomIn:"can-zoom_in",canZoomOut:"can-zoom_out",isDraggable:"is-draggable",isDragging:"is-dragging",inFullscreen:"in-fullscreen",htmlHasFullscreen:"with-panzoom-in-fullscreen"},l10n:E},M='<circle cx="25" cy="25" r="20"></circle>',C='<div class="f-spinner"><svg viewBox="0 0 50 50">'+M+M+"</svg></div>",P=e=>e&&null!==e&&e instanceof Element&&"nodeType"in e,O=(e,t)=>{e&&c(t).forEach((t=>{e.classList.remove(t)}))},A=(e,t)=>{e&&c(t).forEach((t=>{e.classList.add(t)}))},k={a:1,b:0,c:0,d:1,e:0,f:0},I=1e4,L="mousemove",F="drag",z="content",D="auto";let R=null,j=null;class _ extends w{get fits(){return this.contentRect.width-this.contentRect.fitWidth<1&&this.contentRect.height-this.contentRect.fitHeight<1}get isTouchDevice(){return null===j&&(j=window.matchMedia("(hover: none)").matches),j}get isMobile(){return null===R&&(R=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)),R}get panMode(){return this.options.panMode!==L||this.isTouchDevice?F:L}get panOnlyZoomed(){const e=this.options.panOnlyZoomed;return e===D?this.isTouchDevice:e}get isInfinite(){return this.option("infinite")}get angle(){return 180*Math.atan2(this.current.b,this.current.a)/Math.PI||0}get targetAngle(){return 180*Math.atan2(this.target.b,this.target.a)/Math.PI||0}get scale(){const{a:e,b:t}=this.current;return Math.sqrt(e*e+t*t)||1}get targetScale(){const{a:e,b:t}=this.target;return Math.sqrt(e*e+t*t)||1}get minScale(){return this.option("minScale")||1}get fullScale(){const{contentRect:e}=this;return e.fullWidth/e.fitWidth||1}get maxScale(){return this.fullScale*(this.option("maxScale")||1)||1}get coverScale(){const{containerRect:e,contentRect:t}=this,i=Math.max(e.height/t.fitHeight,e.width/t.fitWidth)||1;return Math.min(this.fullScale,i)}get isScaling(){return Math.abs(this.targetScale-this.scale)>1e-5&&!this.isResting}get isContentLoading(){const e=this.content;return!!(e&&e instanceof HTMLImageElement)&&!e.complete}get isResting(){if(this.isBouncingX||this.isBouncingY)return!1;for(const e of x){const t="e"==e||"f"===e?1e-4:1e-5;if(Math.abs(this.target[e]-this.current[e])>t)return!1}return!(!this.ignoreBounds&&!this.checkBounds().inBounds)}constructor(e,t={},i={}){var n;if(super(t),Object.defineProperty(this,"pointerTracker",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"resizeObserver",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"updateTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"clickTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"rAF",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"isTicking",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"ignoreBounds",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isBouncingX",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isBouncingY",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"clicks",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"trackingPoints",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"pwt",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"cwd",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"pmme",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"friction",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:S.Init}),Object.defineProperty(this,"isDragging",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"content",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"spinner",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"containerRect",{enumerable:!0,configurable:!0,writable:!0,value:{width:0,height:0,innerWidth:0,innerHeight:0}}),Object.defineProperty(this,"contentRect",{enumerable:!0,configurable:!0,writable:!0,value:{top:0,right:0,bottom:0,left:0,fullWidth:0,fullHeight:0,fitWidth:0,fitHeight:0,width:0,height:0}}),Object.defineProperty(this,"dragStart",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0,top:0,left:0,time:0}}),Object.defineProperty(this,"dragOffset",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0,time:0}}),Object.defineProperty(this,"current",{enumerable:!0,configurable:!0,writable:!0,value:Object.assign({},k)}),Object.defineProperty(this,"target",{enumerable:!0,configurable:!0,writable:!0,value:Object.assign({},k)}),Object.defineProperty(this,"velocity",{enumerable:!0,configurable:!0,writable:!0,value:{a:0,b:0,c:0,d:0,e:0,f:0}}),Object.defineProperty(this,"lockedAxis",{enumerable:!0,configurable:!0,writable:!0,value:!1}),!e)throw new Error("Container Element Not Found");this.container=e,this.initContent(),this.attachPlugins(Object.assign(Object.assign({},_.Plugins),i)),this.emit("attachPlugins"),this.emit("init");const s=this.content;if(s.addEventListener("load",this.onLoad),s.addEventListener("error",this.onError),this.isContentLoading){if(this.option("spinner")){e.classList.add(this.cn("isLoading"));const t=l(C);!e.contains(s)||s.parentElement instanceof HTMLPictureElement?this.spinner=e.appendChild(t):this.spinner=(null===(n=s.parentElement)||void 0===n?void 0:n.insertBefore(t,s))||null}this.emit("beforeLoad")}else queueMicrotask((()=>{this.enable()}))}initContent(){const{container:e}=this,t=this.cn(z);let i=this.option(z)||e.querySelector(`.${t}`);if(i||(i=e.querySelector("img,picture")||e.firstElementChild,i&&A(i,t)),i instanceof HTMLPictureElement&&(i=i.querySelector("img")),!i)throw new Error("No content found");this.content=i}onLoad(){const{spinner:e,container:t,state:i}=this;e&&(e.remove(),this.spinner=null),this.option("spinner")&&t.classList.remove(this.cn("isLoading")),this.emit("afterLoad"),i===S.Init?this.enable():this.updateMetrics()}onError(){this.state!==S.Destroy&&(this.spinner&&(this.spinner.remove(),this.spinner=null),this.stop(),this.detachEvents(),this.state=S.Error,this.emit("error"))}getNextScale(e){const{fullScale:t,targetScale:i,coverScale:n,maxScale:s,minScale:o}=this;let r=o;switch(e){case"toggleMax":r=i-o<.5*(s-o)?s:o;break;case"toggleCover":r=i-o<.5*(n-o)?n:o;break;case"toggleZoom":r=i-o<.5*(t-o)?t:o;break;case"iterateZoom":let e=[1,t,s].sort(((e,t)=>e-t)),a=e.findIndex((e=>e>i+1e-5));r=e[a]||1}return r}attachObserver(){var e;const t=()=>{const{container:e,containerRect:t}=this;return Math.abs(t.width-e.getBoundingClientRect().width)>.1||Math.abs(t.height-e.getBoundingClientRect().height)>.1};this.resizeObserver||void 0===window.ResizeObserver||(this.resizeObserver=new ResizeObserver((()=>{this.updateTimer||(t()?(this.onResize(),this.isMobile&&(this.updateTimer=setTimeout((()=>{t()&&this.onResize(),this.updateTimer=null}),500))):this.updateTimer&&(clearTimeout(this.updateTimer),this.updateTimer=null))}))),null===(e=this.resizeObserver)||void 0===e||e.observe(this.container)}detachObserver(){var e;null===(e=this.resizeObserver)||void 0===e||e.disconnect()}attachEvents(){const{container:e}=this;e.addEventListener("click",this.onClick,{passive:!1,capture:!1}),e.addEventListener("wheel",this.onWheel,{passive:!1}),this.pointerTracker=new f(e,{start:this.onPointerDown,move:this.onPointerMove,end:this.onPointerUp}),document.addEventListener(L,this.onMouseMove)}detachEvents(){var e;const{container:t}=this;t.removeEventListener("click",this.onClick,{passive:!1,capture:!1}),t.removeEventListener("wheel",this.onWheel,{passive:!1}),null===(e=this.pointerTracker)||void 0===e||e.stop(),this.pointerTracker=null,document.removeEventListener(L,this.onMouseMove),document.removeEventListener("keydown",this.onKeydown,!0),this.clickTimer&&(clearTimeout(this.clickTimer),this.clickTimer=null),this.updateTimer&&(clearTimeout(this.updateTimer),this.updateTimer=null)}animate(){this.setTargetForce();const e=this.friction,t=this.option("maxVelocity");for(const i of x)e?(this.velocity[i]*=1-e,t&&!this.isScaling&&(this.velocity[i]=Math.max(Math.min(this.velocity[i],t),-1*t)),this.current[i]+=this.velocity[i]):this.current[i]=this.target[i];this.setTransform(),this.setEdgeForce(),!this.isResting||this.isDragging?this.rAF=requestAnimationFrame((()=>this.animate())):this.stop("current")}setTargetForce(){for(const e of x)"e"===e&&this.isBouncingX||"f"===e&&this.isBouncingY||(this.velocity[e]=(1/(1-this.friction)-1)*(this.target[e]-this.current[e]))}checkBounds(e=0,t=0){const{current:i}=this,n=i.e+e,s=i.f+t,o=this.getBounds(),{x:r,y:a}=o,l=r.min,c=r.max,d=a.min,u=a.max;let h=0,f=0;return l!==1/0&&n<l?h=l-n:c!==1/0&&n>c&&(h=c-n),d!==1/0&&s<d?f=d-s:u!==1/0&&s>u&&(f=u-s),Math.abs(h)<1e-4&&(h=0),Math.abs(f)<1e-4&&(f=0),Object.assign(Object.assign({},o),{xDiff:h,yDiff:f,inBounds:!h&&!f})}clampTargetBounds(){const{target:e}=this,{x:t,y:i}=this.getBounds();t.min!==1/0&&(e.e=Math.max(e.e,t.min)),t.max!==1/0&&(e.e=Math.min(e.e,t.max)),i.min!==1/0&&(e.f=Math.max(e.f,i.min)),i.max!==1/0&&(e.f=Math.min(e.f,i.max))}calculateContentDim(e=this.current){const{content:t,contentRect:i}=this,{fitWidth:n,fitHeight:s,fullWidth:o,fullHeight:r}=i;let a=o,l=r;if(this.option("zoom")||0!==this.angle){const i=!(t instanceof HTMLImageElement||"none"!==window.getComputedStyle(t).maxWidth&&"none"!==window.getComputedStyle(t).maxHeight),c=i?o:n,d=i?r:s,u=this.getMatrix(e),h=new DOMPoint(0,0).matrixTransform(u),f=new DOMPoint(0+c,0).matrixTransform(u),p=new DOMPoint(0+c,0+d).matrixTransform(u),m=new DOMPoint(0,0+d).matrixTransform(u),g=Math.abs(p.x-h.x),v=Math.abs(p.y-h.y),b=Math.abs(m.x-f.x),y=Math.abs(m.y-f.y);a=Math.max(g,b),l=Math.max(v,y)}return{contentWidth:a,contentHeight:l}}setEdgeForce(){if(this.ignoreBounds||this.isDragging||this.panMode===L||this.targetScale<this.scale)return this.isBouncingX=!1,void(this.isBouncingY=!1);const{target:e}=this,{x:t,y:i,xDiff:n,yDiff:s}=this.checkBounds(),o=this.option("maxVelocity");let r=this.velocity.e,a=this.velocity.f;0!==n?(this.isBouncingX=!0,n*r<=0?r+=.14*n:(r=.14*n,t.min!==1/0&&(this.target.e=Math.max(e.e,t.min)),t.max!==1/0&&(this.target.e=Math.min(e.e,t.max))),o&&(r=Math.max(Math.min(r,o),-1*o))):this.isBouncingX=!1,0!==s?(this.isBouncingY=!0,s*a<=0?a+=.14*s:(a=.14*s,i.min!==1/0&&(this.target.f=Math.max(e.f,i.min)),i.max!==1/0&&(this.target.f=Math.min(e.f,i.max))),o&&(a=Math.max(Math.min(a,o),-1*o))):this.isBouncingY=!1,this.isBouncingX&&(this.velocity.e=r),this.isBouncingY&&(this.velocity.f=a)}enable(){const{content:e}=this,t=new DOMMatrixReadOnly(window.getComputedStyle(e).transform);for(const e of x)this.current[e]=this.target[e]=t[e];this.updateMetrics(),this.attachObserver(),this.attachEvents(),this.state=S.Ready,this.emit("ready")}onClick(e){var t;"click"===e.type&&0===e.detail&&(this.dragOffset.x=0,this.dragOffset.y=0),this.isDragging&&(null===(t=this.pointerTracker)||void 0===t||t.clear(),this.trackingPoints=[],this.startDecelAnim());const i=e.target;if(!i||e.defaultPrevented)return;if(i.hasAttribute("disabled"))return e.preventDefault(),void e.stopPropagation();if((()=>{const e=window.getSelection();return e&&"Range"===e.type})()&&!i.closest("button"))return;const n=i.closest("[data-panzoom-action]"),s=i.closest("[data-panzoom-change]"),o=n||s,r=o&&P(o)?o.dataset:null;if(r){const t=r.panzoomChange,i=r.panzoomAction;if((t||i)&&e.preventDefault(),t){let i={};try{i=JSON.parse(t)}catch(e){console&&console.warn("The given data was not valid JSON")}return void this.applyChange(i)}if(i)return void(this[i]&&this[i]())}if(Math.abs(this.dragOffset.x)>3||Math.abs(this.dragOffset.y)>3)return e.preventDefault(),void e.stopPropagation();if(i.closest("[data-fancybox]"))return;const a=this.content.getBoundingClientRect(),l=this.dragStart;if(l.time&&!this.canZoomOut()&&(Math.abs(a.x-l.x)>2||Math.abs(a.y-l.y)>2))return;this.dragStart.time=0;const c=t=>{this.option("zoom",e)&&t&&"string"==typeof t&&/(iterateZoom)|(toggle(Zoom|Full|Cover|Max)|(zoomTo(Fit|Cover|Max)))/.test(t)&&"function"==typeof this[t]&&(e.preventDefault(),this[t]({event:e}))},d=this.option("click",e),u=this.option("dblClick",e);u?(this.clicks++,1==this.clicks&&(this.clickTimer=setTimeout((()=>{1===this.clicks?(this.emit("click",e),!e.defaultPrevented&&d&&c(d)):(this.emit("dblClick",e),e.defaultPrevented||c(u)),this.clicks=0,this.clickTimer=null}),350))):(this.emit("click",e),!e.defaultPrevented&&d&&c(d))}addTrackingPoint(e){const t=this.trackingPoints.filter((e=>e.time>Date.now()-100));t.push(e),this.trackingPoints=t}onPointerDown(e,t,i){var n;if(!1===this.option("touch",e))return!1;this.pwt=0,this.dragOffset={x:0,y:0,time:0},this.trackingPoints=[];const s=this.content.getBoundingClientRect();if(this.dragStart={x:s.x,y:s.y,top:s.top,left:s.left,time:Date.now()},this.clickTimer)return!1;if(this.panMode===L&&this.targetScale>1)return e.preventDefault(),e.stopPropagation(),!1;const o=e.composedPath()[0];if(!i.length){if(["TEXTAREA","OPTION","INPUT","SELECT","VIDEO","IFRAME"].includes(o.nodeName)||o.closest("[contenteditable],[data-selectable],[data-draggable],[data-clickable],[data-panzoom-change],[data-panzoom-action]"))return!1;null===(n=window.getSelection())||void 0===n||n.removeAllRanges()}if("mousedown"===e.type)["A","BUTTON"].includes(o.nodeName)||e.preventDefault();else if(Math.abs(this.velocity.a)>.3)return!1;return this.target.e=this.current.e,this.target.f=this.current.f,this.stop(),this.isDragging||(this.isDragging=!0,this.addTrackingPoint(t),this.emit("touchStart",e)),!0}onPointerMove(e,t,i){if(!1===this.option("touch",e))return;if(!this.isDragging)return;if(t.length<2&&this.panOnlyZoomed&&o(this.targetScale)<=o(this.minScale))return;if(this.emit("touchMove",e),e.defaultPrevented)return;this.addTrackingPoint(t[0]);const{content:n}=this,s=m(i[0],i[1]),r=m(t[0],t[1]);let l=0,c=0;if(t.length>1){const e=n.getBoundingClientRect();l=s.clientX-e.left-.5*e.width,c=s.clientY-e.top-.5*e.height}const d=p(i[0],i[1]),u=p(t[0],t[1]);let h=d?u/d:1,f=r.clientX-s.clientX,g=r.clientY-s.clientY;this.dragOffset.x+=f,this.dragOffset.y+=g,this.dragOffset.time=Date.now()-this.dragStart.time;let v=o(this.targetScale)===o(this.minScale)&&this.option("lockAxis");if(v&&!this.lockedAxis)if("xy"===v||"y"===v||"touchmove"===e.type){if(Math.abs(this.dragOffset.x)<6&&Math.abs(this.dragOffset.y)<6)return void e.preventDefault();const t=Math.abs(180*Math.atan2(this.dragOffset.y,this.dragOffset.x)/Math.PI);this.lockedAxis=t>45&&t<135?"y":"x",this.dragOffset.x=0,this.dragOffset.y=0,f=0,g=0}else this.lockedAxis=v;if(a(e.target,this.content)&&(v="x",this.dragOffset.y=0),v&&"xy"!==v&&this.lockedAxis!==v&&o(this.targetScale)===o(this.minScale))return;e.cancelable&&e.preventDefault(),this.container.classList.add(this.cn("isDragging"));const b=this.checkBounds(f,g);this.option("rubberband")?("x"!==this.isInfinite&&(b.xDiff>0&&f<0||b.xDiff<0&&f>0)&&(f*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitWidth*b.xDiff))),"y"!==this.isInfinite&&(b.yDiff>0&&g<0||b.yDiff<0&&g>0)&&(g*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitHeight*b.yDiff)))):(b.xDiff&&(f=0),b.yDiff&&(g=0));const y=this.targetScale,w=this.minScale,S=this.maxScale;y<.5*w&&(h=Math.max(h,w)),y>1.5*S&&(h=Math.min(h,S)),"y"===this.lockedAxis&&o(y)===o(w)&&(f=0),"x"===this.lockedAxis&&o(y)===o(w)&&(g=0),this.applyChange({originX:l,originY:c,panX:f,panY:g,scale:h,friction:this.option("dragFriction"),ignoreBounds:!0})}onPointerUp(e,t,i){if(i.length)return this.dragOffset.x=0,this.dragOffset.y=0,void(this.trackingPoints=[]);this.container.classList.remove(this.cn("isDragging")),this.isDragging&&(this.addTrackingPoint(t),this.panOnlyZoomed&&this.contentRect.width-this.contentRect.fitWidth<1&&this.contentRect.height-this.contentRect.fitHeight<1&&(this.trackingPoints=[]),a(e.target,this.content)&&"y"===this.lockedAxis&&(this.trackingPoints=[]),this.emit
vendor: 4,629 bytes, line 1
1("touchEnd",e),this.isDragging=!1,this.lockedAxis=!1,this.state!==S.Destroy&&(e.defaultPrevented||this.startDecelAnim()))}startDecelAnim(){var e;const t=this.isScaling;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.isBouncingX=!1,this.isBouncingY=!1;for(const e of x)this.velocity[e]=0;this.target.e=this.current.e,this.target.f=this.current.f,O(this.container,"is-scaling"),O(this.container,"is-animating"),this.isTicking=!1;const{trackingPoints:i}=this,n=i[0],s=i[i.length-1];let r=0,a=0,l=0;s&&n&&(r=s.clientX-n.clientX,a=s.clientY-n.clientY,l=s.time-n.time);const c=(null===(e=window.visualViewport)||void 0===e?void 0:e.scale)||1;1!==c&&(r*=c,a*=c);let d=0,u=0,h=0,f=0,p=this.option("decelFriction");const m=this.targetScale;if(l>0){h=Math.abs(r)>3?r/(l/30):0,f=Math.abs(a)>3?a/(l/30):0;const e=this.option("maxVelocity");e&&(h=Math.max(Math.min(h,e),-1*e),f=Math.max(Math.min(f,e),-1*e))}h&&(d=h/(1/(1-p)-1)),f&&(u=f/(1/(1-p)-1)),("y"===this.option("lockAxis")||"xy"===this.option("lockAxis")&&"y"===this.lockedAxis&&o(m)===this.minScale)&&(d=h=0),("x"===this.option("lockAxis")||"xy"===this.option("lockAxis")&&"x"===this.lockedAxis&&o(m)===this.minScale)&&(u=f=0);const g=this.dragOffset.x,v=this.dragOffset.y,b=this.option("dragMinThreshold")||0;Math.abs(g)<b&&Math.abs(v)<b&&(d=u=0,h=f=0),(this.option("zoom")&&(m<this.minScale-1e-5||m>this.maxScale+1e-5)||t&&!d&&!u)&&(p=.35),this.applyChange({panX:d,panY:u,friction:p}),this.emit("decel",h,f,g,v)}onWheel(e){var t=[-e.deltaX||0,-e.deltaY||0,-e.detail||0].reduce((function(e,t){return Math.abs(t)>Math.abs(e)?t:e}));const i=Math.max(-1,Math.min(1,t));if(this.emit("wheel",e,i),this.panMode===L)return;if(e.defaultPrevented)return;const n=this.option("wheel");"pan"===n?(e.preventDefault(),this.panOnlyZoomed&&!this.canZoomOut()||this.applyChange({panX:2*-e.deltaX,panY:2*-e.deltaY,bounce:!1})):"zoom"===n&&!1!==this.option("zoom")&&this.zoomWithWheel(e)}onMouseMove(e){this.panWithMouse(e)}onKeydown(e){"Escape"===e.key&&this.toggleFS()}onResize(){this.updateMetrics(),this.checkBounds().inBounds||this.requestTick()}setTransform(){this.emit("beforeTransform");const{current:e,target:t,content:i,contentRect:n}=this,s=Object.assign({},k);for(const i of x){const n="e"==i||"f"===i?I:1e5;s[i]=o(e[i],n),Math.abs(t[i]-e[i])<("e"==i||"f"===i?.51:.001)&&(e[i]=t[i])}let{a:r,b:a,c:l,d:c,e:d,f:u}=s,h=`matrix(${r}, ${a}, ${l}, ${c}, ${d}, ${u})`,f=i.parentElement instanceof HTMLPictureElement?i.parentElement:i;if(this.option("transformParent")&&(f=f.parentElement||f),f.style.transform===h)return;f.style.transform=h;const{contentWidth:p,contentHeight:m}=this.calculateContentDim();n.width=p,n.height=m,this.emit("afterTransform")}updateMetrics(e=!1){var t;if(!this||this.state===S.Destroy)return;if(this.isContentLoading)return;const i=Math.max(1,(null===(t=window.visualViewport)||void 0===t?void 0:t.scale)||1),{container:n,content:s}=this,r=s instanceof HTMLImageElement,a=n.getBoundingClientRect(),l=getComputedStyle(this.container);let c=a.width*i,d=a.height*i;const u=parseFloat(l.paddingTop)+parseFloat(l.paddingBottom),h=c-(parseFloat(l.paddingLeft)+parseFloat(l.paddingRight)),f=d-u;this.containerRect={width:c,height:d,innerWidth:h,innerHeight:f};const p=parseFloat(s.dataset.width||"")||(e=>{let t=0;return t=e instanceof HTMLImageElement?e.naturalWidth:e instanceof SVGElement?e.width.baseVal.value:Math.max(e.offsetWidth,e.scrollWidth),t||0})(s),m=parseFloat(s.dataset.height||"")||(e=>{let t=0;return t=e instanceof HTMLImageElement?e.naturalHeight:e instanceof SVGElement?e.height.baseVal.value:Math.max(e.offsetHeight,e.scrollHeight),t||0})(s);let g=this.option("width",p)||D,v=this.option("height",m)||D;const b=g===D,y=v===D;"number"!=typeof g&&(g=p),"number"!=typeof v&&(v=m),b&&(g=p*(v/m)),y&&(v=m/(p/g));let w=s.parentElement instanceof HTMLPictureElement?s.parentElement:s;this.option("transformParent")&&(w=w.parentElement||w);const x=w.getAttribute("style")||"";w.style.setProperty("transform","none","important"),r&&(w.style.width="",w.style.height=""),w.offsetHeight;const E=s.getBoundingClientRect();let T=E.width*i,M=E.height*i,C=T,P=M;T=Math.min(T,g),M=Math.min(M,v),r?({width:T,height:M}=((e,t,i,n)=>{const s=i/e,o=n/t,r=Math.min(s,o);return{width:e*=r,height:t*=r}})(g,v,T,M)):(T=Math.min(T,g),M=Math.min(M,v));let O=.5*(P-M),A=.5*(C-T);this.contentRect=Object.assign(Object.assign({},this.contentRect),{top:E.top-a.top+O,bottom:a.bottom-E.bottom+O,left:E.left-a.left+A,right:a.right-E.right+A,fitWidth:T,fitHeight:M,width:T,height:M,fullWidth:g,fullHeight:v}),w.style.cssText=x,r&&(w.style.width=`${T}px`,w.style.height=`${M}
1px`),this.setTransform(),!0!==e&&this.emit("refresh"),this.ignoreBounds||(o(this.targetScale)<o(this.minScale)?this.zoomTo(this.minScale,{friction:0}):this.targetScale>this.maxScale?this.zoomTo(this.maxScale,{friction:0}):this.state===S.Init||this.checkBounds().inBounds||this.requestTick()),this.updateControls()}calculateBounds(){const{contentWidth:e,contentHeight:t}=this.calculateContentDim(this.target),{targetScale:i,lockedAxis:n}=this,{fitWidth:s,fitHeight:r}=this.contentRect;let a=0,l=0,c=0,d=0;const u=this.option("infinite");if(!0===u||n&&u===n)a=-1/0,c=1/0,l=-1/0,d=1/0;else{let{containerRect:n,contentRect:u}=this,h=o(s*i,I),f=o(r*i,I),{innerWidth:p,innerHeight:m}=n;if(n.width===h&&(p=n.width),n.width===f&&(m=n.height),e>p){c=.5*(e-p),a=-1*c;let t=.5*(u.right-u.left);a+=t,c+=t}if(s>p&&e<p&&(a-=.5*(s-p),c-=.5*(s-p)),t>m){d=.5*(t-m),l=-1*d;let e=.5*(u.bottom-u.top);l+=e,d+=e}r>m&&t<m&&(a-=.5*(r-m),c-=.5*(r-m))}return{x:{min:a,max:c},y:{min:l,max:d}}}getBounds(){const e=this.option("bounds");return e!==D?e:this.calculateBounds()}updateControls(){const e=this,t=e.container,{panMode:i,contentRect:n,targetScale:s,minScale:r}=e;let a=r,l=e.option("click")||!1;l&&(a=e.getNextScale(l));let c=e.canZoomIn(),u=e.canZoomOut(),h=i===F&&!!this.option("touch"),f=u&&h;if(h&&(o(s)<o(r)&&!this.panOnlyZoomed&&(f=!0),(o(n.width,1)>o(n.fitWidth,1)||o(n.height,1)>o(n.fitHeight,1))&&(f=!0)),o(n.width*s,1)<o(n.fitWidth,1)&&(f=!1),i===L&&(f=!1),d(t,this.cn("isDraggable"),f),!this.option("zoom"))return;let p=c&&o(a)>o(s),m=!p&&!f&&u&&o(a)<o(s);d(t,this.cn("canZoomIn"),p),d(t,this.cn("canZoomOut"),m);for(const e of t.querySelectorAll("[data-panzoom-action]")){let t=!1,i=!1;switch(e.dataset.panzoomAction){case"zoomIn":c?t=!0:i=!0;break;case"zoomOut":u?t=!0:i=!0;break;case"toggleZoom":case"iterateZoom":c||u?t=!0:i=!0;const n=e.querySelector("g");n&&(n.style.display=c?"":"none")}t?(e.removeAttribute("disabled"),e.removeAttribute("tabindex")):i&&(e.setAttribute("disabled",""),e.setAttribute("tabindex","-1"))}}panTo({x:e=this.target.e,y:t=this.target.f,scale:i=this.targetScale,friction:n=this.option("friction"),angle:s=0,originX:o=0,originY:r=0,flipX:a=!1,flipY:l=!1,ignoreBounds:c=!1}){this.state!==S.Destroy&&this.applyChange({panX:e-this.target.e,panY:t-this.target.f,scale:i/this.targetScale,angle:s,originX:o,originY:r,friction:n,flipX:a,flipY:l,ignoreBounds:c})}applyChange({panX:e=0,panY:t=0,scale:i=1,angle:n=0,originX:s=-this.current.e,originY:r=-this.current.f,friction:a=this.option("friction"),flipX:l=!1,flipY:c=!1,ignoreBounds:d=!1,bounce:u=this.option("bounce")}){const h=this.state;if(h===S.Destroy)return;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.friction=a||0,this.ignoreBounds=d;const{current:f}=this,p=f.e,m=f.f,g=this.getMatrix(this.target);let v=(new DOMMatrix).translate(p,m).translate(s,r).translate(e,t);if(this.option("zoom")){if(!d){const e=this.targetScale,t=this.minScale,n=this.maxScale;e*i<t&&(i=t/e),e*i>n&&(i=n/e)}v=v.scale(i)}v=v.translate(-s,-r).translate(-p,-m).multiply(g),n&&(v=v.rotate(n)),l&&(v=v.scale(-1,1)),c&&(v=v.scale(1,-1));for(const e of x)"e"!==e&&"f"!==e&&(v[e]>this.minScale+1e-5||v[e]<this.minScale-1e-5)?this.target[e]=v[e]:this.target[e]=o(v[e],I);(this.targetScale<this.scale||Math.abs(i-1)>.1||this.panMode===L||!1===u)&&!d&&this.clampTargetBounds(),h===S.Init?this.animate():this.isResting||(this.state=S.Panning,this.requestTick())}stop(e=!1){if(this.state===S.Init||this.state===S.Destroy)return;const t=this.isTicking;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.isBouncingX=!1,this.isBouncingY=!1;for(const t of x)this.velocity[t]=0,"current"===e?this.current[t]=this.target[t]:"target"===e&&(this.target[t]=this.current[t]);this.setTransform(),O(this.container,"is-scaling"),O(this.container,"is-animating"),this.isTicking=!1,this.state=S.Ready,t&&(this.emit
vendor: 5,023 bytes, line 1
1("endAnimation"),this.updateControls())}requestTick(){this.isTicking||(this.emit("startAnimation"),this.updateControls(),A(this.container,"is-animating"),this.isScaling&&A(this.container,"is-scaling")),this.isTicking=!0,this.rAF||(this.rAF=requestAnimationFrame((()=>this.animate())))}panWithMouse(e,t=this.option("mouseMoveFriction")){if(this.pmme=e,this.panMode!==L||!e)return;if(o(this.targetScale)<=o(this.minScale))return;this.emit("mouseMove",e);const{container:i,containerRect:n,contentRect:s}=this,r=n.width,a=n.height,l=i.getBoundingClientRect(),c=(e.clientX||0)-l.left,d=(e.clientY||0)-l.top;let{contentWidth:u,contentHeight:h}=this.calculateContentDim(this.target);const f=this.option("mouseMoveFactor");f>1&&(u!==r&&(u*=f),h!==a&&(h*=f));let p=.5*(u-r)-c/r*100/100*(u-r);p+=.5*(s.right-s.left);let m=.5*(h-a)-d/a*100/100*(h-a);m+=.5*(s.bottom-s.top),this.applyChange({panX:p-this.target.e,panY:m-this.target.f,friction:t})}zoomWithWheel(e){if(this.state===S.Destroy||this.state===S.Init)return;const t=Date.now();if(t-this.pwt<45)return void e.preventDefault();this.pwt=t;var i=[-e.deltaX||0,-e.deltaY||0,-e.detail||0].reduce((function(e,t){return Math.abs(t)>Math.abs(e)?t:e}));const n=Math.max(-1,Math.min(1,i)),{targetScale:s,maxScale:r,minScale:a}=this;let l=s*(100+45*n)/100;o(l)<o(a)&&o(s)<=o(a)?(this.cwd+=Math.abs(n),l=a):o(l)>o(r)&&o(s)>=o(r)?(this.cwd+=Math.abs(n),l=r):(this.cwd=0,l=Math.max(Math.min(l,r),a)),this.cwd>this.option("wheelLimit")||(e.preventDefault(),o(l)!==o(s)&&this.zoomTo(l,{event:e}))}canZoomIn(){return this.option("zoom")&&(o(this.contentRect.width,1)<o(this.contentRect.fitWidth,1)||o(this.targetScale)<o(this.maxScale))}canZoomOut(){return this.option("zoom")&&o(this.targetScale)>o(this.minScale)}zoomIn(e=1.25,t){this.zoomTo(this.targetScale*e,t)}zoomOut(e=.8,t){this.zoomTo(this.targetScale*e,t)}zoomToFit(e){this.zoomTo("fit",e)}zoomToCover(e){this.zoomTo("cover",e)}zoomToFull(e){this.zoomTo("full",e)}zoomToMax(e){this.zoomTo("max",e)}toggleZoom(e){this.zoomTo(this.getNextScale("toggleZoom"),e)}toggleMax(e){this.zoomTo(this.getNextScale("toggleMax"),e)}toggleCover(e){this.zoomTo(this.getNextScale("toggleCover"),e)}iterateZoom(e){this.zoomTo("next",e)}zoomTo(e=1,{friction:t=D,originX:i=D,originY:n=D,event:s}={}){if(this.isContentLoading||this.state===S.Destroy)return;const{targetScale:o,fullScale:r,maxScale:a,coverScale:l}=this;if(this.stop(),this.panMode===L&&(s=this.pmme||s),s||i===D||n===D){const e=this.content.getBoundingClientRect(),t=this.container.getBoundingClientRect(),o=s?s.clientX:t.left+.5*t.width,r=s?s.clientY:t.top+.5*t.height;i=o-e.left-.5*e.width,n=r-e.top-.5*e.height}let c=1;"number"==typeof e?c=e:"full"===e?c=r:"cover"===e?c=l:"max"===e?c=a:"fit"===e?c=1:"next"===e&&(c=this.getNextScale("iterateZoom")),c=c/o||1,t=t===D?c>1?.15:.25:t,this.applyChange({scale:c,originX:i,originY:n,friction:t}),s&&this.panMode===L&&this.panWithMouse(s,t)}rotateCCW(){this.applyChange({angle:-90})}rotateCW(){this.applyChange({angle:90})}flipX(){this.applyChange({flipX:!0})}flipY(){this.applyChange({flipY:!0})}fitX(){this.stop("target");const{containerRect:e,contentRect:t,target:i}=this;this.applyChange({panX:.5*e.width-(t.left+.5*t.fitWidth)-i.e,panY:.5*e.height-(t.top+.5*t.fitHeight)-i.f,scale:e.width/t.fitWidth/this.targetScale,originX:0,originY:0,ignoreBounds:!0})}fitY(){this.stop("target");const{containerRect:e,contentRect:t,target:i}=this;this.applyChange({panX:.5*e.width-(t.left+.5*t.fitWidth)-i.e,panY:.5*e.innerHeight-(t.top+.5*t.fitHeight)-i.f,scale:e.height/t.fitHeight/this.targetScale,originX:0,originY:0,ignoreBounds:!0})}toggleFS(){const{container:e}=this,t=this.cn("inFullscreen"),i=this.cn("htmlHasFullscreen");e.classList.toggle(t);const n=e.classList.contains(t);n?(document.documentElement.classList.add(i),document.addEventListener("keydown",this.onKeydown,!0)):(document.documentElement.classList.remove(i),document.removeEventListener("keydown",this.onKeydown,!0)),this.updateMetrics(),this.emit(n?"enterFS":"exitFS")}getMatrix(e=this.current){const{a:t,b:i,c:n,d:s,e:o,f:r}=e;return new DOMMatrix([t,i,n,s,o,r])}reset(e){if(this.state!==S.Init&&this.state!==S.Destroy){this.stop("current");for(const e of x)this.target[e]=k[e];this.target.a=this.minScale,this.target.d=this.minScale,this.clampTargetBounds(),this.isResting||(this.friction=void 0===e?this.option("friction"):e,this.state=S.Panning,this.requestTick())}}destroy(){this.stop(),this.state=S.Destroy,this.detachEvents(),this.detachObserver();const{container:e,content:t}=this,i=this.option("classes")||{};for(const t of Object.values(i))e.classList.remove(t+"");t&&(t.removeEventListener("load",this.onLoad),t.removeEventListener("error",this.onError)),this.detachPlugins()}}Object.defineProperty(_,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:T}),Object.defineProperty(_,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:{}});const $=function(e,t){let i=!0;return(...n)=>{i&&(i=!1,e(...n),setTimeout((()=>{i=!0}),t))}},N=(e,t)=>{let i=[];
vendor: 5,417 bytes, line 1
1return e.childNodes.forEach((e=>{e.nodeType!==Node.ELEMENT_NODE||t&&!e.matches(t)||i.push(e)})),i};var B;!function(e){e[e.Init=0]="Init",e[e.Ready=1]="Ready",e[e.Destroy=2]="Destroy"}(B||(B={}));const H=e=>{if("string"==typeof e||e instanceof HTMLElement)e={html:e};else{const t=e.thumb;void 0!==t&&("string"==typeof t&&(e.thumbSrc=t),t instanceof HTMLImageElement&&(e.thumbEl=t,e.thumbElSrc=t.src,e.thumbSrc=t.src),delete e.thumb)}return Object.assign({html:"",el:null,isDom:!1,class:"",customClass:"",index:-1,dim:0,gap:0,pos:0,transition:!1},e)},V=(e={})=>Object.assign({index:-1,slides:[],dim:0,pos:-1},e);class W extends y{constructor(e,t){super(t),Object.defineProperty(this,"instance",{enumerable:!0,configurable:!0,writable:!0,value:e})}attach(){}detach(){}}class G extends W{constructor(){super(...arguments),Object.defineProperty(this,"isDynamic",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"list",{enumerable:!0,configurable:!0,writable:!0,value:null})}onRefresh(){this.refresh()}build(){let e=this.list;if(!e){e=document.createElement("ul"),A(e,this.cn("list")),e.setAttribute("role","tablist");const t=this.instance.container;t.appendChild(e),A(t,this.cn("hasDots")),this.list=e}return e}refresh(){var e;const t=this.instance.pages.length,i=Math.min(2,this.option("minCount")),n=Math.max(2e3,this.option("maxCount")),s=this.option("dynamicFrom");if(t<i||t>n)return void this.cleanup();const o="number"==typeof s&&t>5&&t>=s,r=!this.list||this.isDynamic!==o||this.list.children.length!==t;r&&this.cleanup();const a=this.build();if(d(a,this.cn("isDynamic"),!!o),r)for(let e=0;e<t;e++)a.append(this.createItem(e));let l,c=0;for(const t of[...a.children]){const i=c===this.instance.page;i&&(l=t),d(t,this.cn("isCurrent"),i),null===(e=t.children[0])||void 0===e||e.setAttribute("aria-selected",i?"true":"false");for(const e of["isBeforePrev","isPrev","isNext","isAfterNext"])O(t,this.cn(e));c++}if(l=l||a.firstChild,o&&l){const e=l.previousElementSibling,t=e&&e.previousElementSibling;A(e,this.cn("isPrev")),A(t,this.cn("isBeforePrev"));const i=l.nextElementSibling,n=i&&i.nextElementSibling;A(i,this.cn("isNext")),A(n,this.cn("isAfterNext"))}this.isDynamic=o}createItem(e=0){var t;const i=document.createElement("li");i.setAttribute("role","presentation");const n=l(this.instance.localize(this.option("dotTpl"),[["%d",e+1]]).replace(/\%i/g,e+""));return i.appendChild(n),null===(t=i.children[0])||void 0===t||t.setAttribute("role","tab"),i}cleanup(){this.list&&(this.list.remove(),this.list=null),this.isDynamic=!1,O(this.instance.container,this.cn("hasDots"))}attach(){this.instance.on(["refresh","change"],this.onRefresh)}detach(){this.instance.off(["refresh","change"],this.onRefresh),this.cleanup()}}Object.defineProperty(G,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{classes:{list:"f-carousel__dots",isDynamic:"is-dynamic",hasDots:"has-dots",dot:"f-carousel__dot",isBeforePrev:"is-before-prev",isPrev:"is-prev",isCurrent:"is-current",isNext:"is-next",isAfterNext:"is-after-next"},dotTpl:'<button type="button" data-carousel-page="%i" aria-label="{{GOTO}}"><span class="f-carousel__dot" aria-hidden="true"></span></button>',dynamicFrom:11,maxCount:1/0,minCount:2}});const U="disabled",q="next",X="prev";class Y extends W{constructor(){super(...arguments),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"prev",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"next",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"isDom",{enumerable:!0,configurable:!0,writable:!0,value:!1})}onRefresh(){const e=this.instance,t=e.pages.length,i=e.page;if(t<2)return void this.cleanup();this.build();let n=this.prev,s=this.next;n&&s&&(n.removeAttribute(U),s.removeAttribute(U),e.isInfinite||(i<=0&&n.setAttribute(U,""),i>=t-1&&s.setAttribute(U,"")))}addBtn(e){var t;const i=this.instance,n=document.createElement("button");n.setAttribute("tabindex","0"),n.setAttribute("title",i.localize(`{{${e.toUpperCase()}}}`)),A(n,this.cn("button")+" "+this.cn(e===q?"isNext":"isPrev"));const s=i.isRTL?e===q?X:q:e;var o;return n.innerHTML=i.localize(this.option(`${s}Tpl`)),n.dataset[`carousel${o=e,o?o.match("^[a-z]")?o.charAt(0).toUpperCase()+o.substring(1):o:""}`]="true",null===(t=this.container)||void 0===t||t.appendChild(n),n}build(){const e=this.instance.container,t=this.cn("container");let{container:i,prev:n,next:s}=this;i||(i=e.querySelector("."+t),this.isDom=!!i),i||(i=document.createElement("div"),A(i,t),e.appendChild(i)),this.container=i,s||(s=i.querySelector("[data-carousel-next]")),s||(s=this.addBtn(q)),this.next=s,n||(n=i.querySelector("[data-carousel-prev]")),n||(n=this.addBtn(X)),this.prev=n}cleanup(){this.isDom||(this.prev&&this.prev.remove(),this.next&&this.next.remove(),this.container&&this.container.remove()),this.prev=null,this.next=null,this.container=null,this.isDom=!1}attach(){this.instance.on(["refresh","change"],this.onRefresh)}detach(){this.instance.off(["refresh","change"],this.onRefresh),this.cleanup()}}Object.defineProperty(Y,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{classes:{container:"f-carousel__nav",button:"f-button",isNext:"is-next",isPrev:"is-prev"},nextTpl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M9 3l9 9-9 9"/></svg>
1',prevTpl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M15 3l-9 9 9 9"/></svg>'}});class Z extends W{constructor(){super(...arguments),Object.defineProperty(this,"selectedIndex",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"target",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"nav",{enumerable:!0,configurable:!0,writable:!0,value:null})}addAsTargetFor(e){this.target=this.instance,this.nav=e,this.attachEvents()}addAsNavFor(e){this.nav=this.instance,this.target=e,this.attachEvents()}attachEvents(){const{nav:e,target:t}=this;e&&t&&(e.options.initialSlide=t.options.initialPage,e.state===B.Ready?this.onNavReady(e):e.on("ready",this.onNavReady),t.state===B.Ready?this.onTargetReady(t):t.on("ready",this.onTargetReady))}onNavReady(e){e.on("createSlide",this.onNavCreateSlide),e.on("Panzoom.click",this.onNavClick),e.on("Panzoom.touchEnd",this.onNavTouch),this.onTargetChange()}onTargetReady(e){e.on("change",this.onTargetChange),e.on("Panzoom.refresh",this.onTargetChange),this.onTargetChange()}onNavClick(e,t,i){this.onNavTouch(e,e.panzoom,i)}onNavTouch(e,t,i){var n,s;if(Math.abs(t.dragOffset.x)>3||Math.abs(t.dragOffset.y)>3)return;const o=i.target,{nav:r,target:a}=this;if(!r||!a||!o)return;const l=o.closest("[data-index]");if(i.stopPropagation(),i.preventDefault(),!l)return;const c=parseInt(l.dataset.index||"",10)||0,d=a.getPageForSlide(c),u=r.getPageForSlide(c);r.slideTo(u),a.slideTo(d,{friction:(null===(s=null===(n=this.nav)||void 0===n?void 0:n.plugins)||void 0===s?void 0:s.Sync.option("friction"))||0}),this.markSelectedSlide(c)}onNavCreateSlide(e,t){t.index===this.selectedIndex&&this.markSelectedSlide(t.index)}onTargetChange(){var e,t;const{target:i,nav:n}=this;if(!i||!n)return;if(n.state!==B.Ready||i.state!==B.Ready)return;const s=null===(t=null===(e=i.pages[i.page])||void 0===e?void 0:e.slides[0])||void 0===t?void 0:t.index,o=n.getPageForSlide(s);this.markSelectedSlide(s),n.slideTo(o,null===n.prevPage&&null===i.prevPage?{friction:0}:void 0)}markSelectedSlide(e){const t=this.nav;t&&t.state===B.Ready&&(this.selectedIndex=e,[...t.slides].map((t=>{t.el&&t.el.classList[t.index===e?"add":"remove"]("is-nav-selected")})))}attach(){const e=this;let t=e.options.target,i=e.options.nav;t?e.addAsNavFor(t):i&&e.addAsTargetFor(i)}detach(){const e=this,t=e.nav,i=e.target;t&&(t.off("ready",e.onNavReady),t.off("createSlide",e.onNavCreateSlide),t.off("Panzoom.click",e.onNavClick),t.off("Panzoom.touchEnd",e.onNavTouch)),e.nav=null,i&&(i.off("ready",e.onTargetReady),i.off("refresh",e.onTargetChange),i.off("change",e.onTargetChange)),e.target=null}}Object.defineProperty(Z,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{friction:.35}});const J={Navigation:Y,Dots:G,Sync:Z},K="animationend",Q="isSelected",ee="slide";class te extends w{get axis(){return this.isHorizontal?"e":"f"}get isEnabled(){return this.state===B.Ready}get isInfinite(){let e=!1;const{contentDim:t,viewportDim:i,pages:n,slides:s}=this,o=s[0];return n.length>=2&&o&&t+o.dim>=i&&(e=this.option("infinite")),e}get isRTL(){return"rtl"===this.option("direction")}get isHorizontal(){return"x"===this.option("axis")}constructor(e,t={},i={}){if(super(),Object.defineProperty(this,"bp",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(this,"lp",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"userOptions",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"userPlugins",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:B.Init}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"prevPage",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"viewport",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"track",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"slides",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"pages",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"panzoom",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"inTransition",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),Object.defineProperty(this,"contentDim",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"viewportDim",{enumerable:!0,configurable:!0,writable:!0,value:0}),"string"==typeof e&&(e=document.querySelector(e)),!e||!P(e))throw new Error("No Element found");this.container=e,this.slideNext=$(this.slideNext.bind(this),150),this.slidePrev=$(this.slidePrev.bind(this),150),this.userOptions=t,this.userPlugins=i,queueMicrotask((()=>{this.processOptions()}))}processOptions(){var e,t;const i=v({},te.defaults,this.userOptions);let n="";const s=i.breakpoints;if(s&&g(s))for(const[e,t]of Object.entries(s))window.matchMedia(e).matches&&g(t)&&(n+=e,v(i,t));n===this.bp&&this.state!==B.Init||(this.bp=n,this.state===B.Ready&&(i.initialSlide=(null===(t=null===(e=this.pages[this.page])||void 0===e?void 0:e.slides[0])||void 0===t?void 0:t.index)||0),this.state!==B.Init&&this.destroy(),super.setOptions(i),!1===this.option("enabled")?this.attachEvents():setTimeout((()=>{this.init()}),0))}
vendor: 5,676 bytes, line 1
1init(){this.state=B.Init,this.emit("init"),this.attachPlugins(Object.assign(Object.assign({},te.Plugins),this.userPlugins)),this.emit("attachPlugins"),this.initLayout(),this.initSlides(),this.updateMetrics(),this.setInitialPosition(),this.initPanzoom(),this.attachEvents(),this.state=B.Ready,this.emit("ready")}initLayout(){const{container:e}=this,t=this.option("classes");A(e,this.cn("container")),d(e,t.isLTR,!this.isRTL),d(e,t.isRTL,this.isRTL),d(e,t.isVertical,!this.isHorizontal),d(e,t.isHorizontal,this.isHorizontal);let i=this.option("viewport")||e.querySelector(`.${t.viewport}`);i||(i=document.createElement("div"),A(i,t.viewport),i.append(...N(e,`.${t.slide}`)),e.prepend(i)),i.addEventListener("scroll",this.onScroll);let n=this.option("track")||e.querySelector(`.${t.track}`);n||(n=document.createElement("div"),A(n,t.track),n.append(...Array.from(i.childNodes))),n.setAttribute("aria-live","polite"),i.contains(n)||i.prepend(n),this.viewport=i,this.track=n,this.emit("initLayout")}initSlides(){const{track:e}=this;if(!e)return;const t=[...this.slides],i=[];[...N(e,`.${this.cn(ee)}`)].forEach((e=>{if(P(e)){const t=H({el:e,isDom:!0,index:this.slides.length});i.push(t)}}));for(let e of[...this.option("slides",[])||[],...t])i.push(H(e));this.slides=i;for(let e=0;e<this.slides.length;e++)this.slides[e].index=e;for(const e of i)this.emit("beforeInitSlide",e,e.index),this.emit("initSlide",e,e.index);this.emit("initSlides")}setInitialPage(){const e=this.option("initialSlide");this.page="number"==typeof e?this.getPageForSlide(e):parseInt(this.option("initialPage",0)+"",10)||0}setInitialPosition(){const{track:e,pages:t,isHorizontal:i}=this;if(!e||!t.length)return;let n=this.page;t[n]||(this.page=n=0);const s=(t[n].pos||0)*(this.isRTL&&i?1:-1),o=i?`${s}px`:"0",r=i?"0":`${s}px`;e.style.transform=`translate3d(${o}, ${r}, 0) scale(1)`,this.option("adaptiveHeight")&&this.setViewportHeight()}initPanzoom(){this.panzoom&&(this.panzoom.destroy(),this.panzoom=null);const e=this.option("Panzoom")||{};this.panzoom=new _(this.viewport,v({},{content:this.track,zoom:!1,panOnlyZoomed:!1,lockAxis:this.isHorizontal?"x":"y",infinite:this.isInfinite,click:!1,dblClick:!1,touch:e=>!(this.pages.length<2&&!e.options.infinite),bounds:()=>this.getBounds(),maxVelocity:e=>Math.abs(e.target[this.axis]-e.current[this.axis])<2*this.viewportDim?100:0},e)),this.panzoom.on("*",((e,t,...i)=>{this.emit(`Panzoom.${t}`,e,...i)})),this.panzoom.on("decel",this.onDecel),this.panzoom.on("refresh",this.onRefresh),this.panzoom.on("beforeTransform",this.onBeforeTransform),this.panzoom.on("endAnimation",this.onEndAnimation)}attachEvents(){const e=this.container;e&&(e.addEventListener("click",this.onClick,{passive:!1,capture:!1}),e.addEventListener("slideTo",this.onSlideTo)),window.addEventListener("resize",this.onResize)}createPages(){let e=[];const{contentDim:t,viewportDim:i}=this;let n=this.option("slidesPerPage");n=("auto"===n||t<=i)&&!1!==this.option("fill")?1/0:parseFloat(n+"");let s=0,o=0,r=0;for(const t of this.slides)(!e.length||o+t.dim-i>.05||r>=n)&&(e.push(V()),s=e.length-1,o=0,r=0),e[s].slides.push(t),o+=t.dim+t.gap,r++;return e}processPages(){const e=this.pages,{contentDim:t,viewportDim:i,isInfinite:n}=this,s=this.option("center"),r=this.option("fill"),a=r&&s&&t>i&&!n;if(e.forEach(((e,n)=>{var o;e.index=n,e.pos=(null===(o=e.slides[0])||void 0===o?void 0:o.pos)||0,e.dim=0;for(const[t,i]of e.slides.entries())e.dim+=i.dim,t<e.slides.length-1&&(e.dim+=i.gap);a&&e.pos+.5*e.dim<.5*i?e.pos=0:a&&e.pos+.5*e.dim>=t-.5*i?e.pos=t-i:s&&(e.pos+=-.5*(i-e.dim))})),e.forEach((e=>{r&&!n&&t>i&&(e.pos=Math.max(e.pos,0),e.pos=Math.min(e.pos,t-i)),e.pos=o(e.pos,1e3),e.dim=o(e.dim,1e3),Math.abs(e.pos)<=.1&&(e.pos=0)})),n)return e;const l=[];let c;return e.forEach((e=>{const t=Object.assign({},e);c&&t.pos===c.pos?(c.dim+=t.dim,c.slides=[...c.slides,...t.slides]):(t.index=l.length,c=t,l.push(t))})),l}getPageFromIndex(e=0){const t=this.pages.length;let i;return e=parseInt((e||0).toString())||0,i=this.isInfinite?(e%t+t)%t:Math.max(Math.min(e,t-1),0),i}getSlideMetrics(e){var t,i;const n=this.isHorizontal?"width":"height";let s=0,r=0,a=e.el;const l=!(!a||a.parentNode);if(a?s=parseFloat(a.dataset[n]||"")||0:(a=document.createElement("div"),a.style.visibility="hidden",(this.track||document.body).prepend(a)),A(a,this.cn(ee)+" "+e.class+" "+e.customClass),s)a.style[n]=`${s}px`,a.style["width"===n?"height":"width"]="";else{l&&(this.track||document.body).prepend(a),s=a.getBoundingClientRect()[n]*Math.max(1,(null===(t=window.visualViewport)||void 0===t?void 0:t.scale)||1);let e=a[this.isHorizontal?"offsetWidth":"offsetHeight"];e-1>s&&(s=e)}const c=getComputedStyle(a);return"content-box"===c.boxSizing&&(this.isHorizontal?(s+=parseFloat(c.paddingLeft)||0,s+=parseFloat(c.paddingRight)||0):(s+=parseFloat(c.paddingTop)||0,s+=parseFloat(c.paddingBottom)||0)),r=parseFloat(c[this.isHorizontal?"marginRight":"marginBottom"])||0,l?null===(i=a.parentElement)||void 0===i||i.removeChild(a):e.el||a.remove(),{dim:o(s,1e3),gap:o(r,1e3)}}getBounds(){const{isInfinite:e,isRTL:t,isHorizontal:i,pages:n}=this;let s={min:0,max:0};if(e)s={min:-1/0,max:1/0};else if(n.length){const e=n[0].pos,o=n[n.length-1].pos;s=t&&i?{min:e,max:o}:{min:-1*o,max:-1*e}}return{x:i?s:{min:0,max:0},y:i?{min:0,max:0}:s}}repositionSlides(){let e,{isHorizontal:t,isRTL:i,isInfinite:n,viewport:s,viewportDim:r,contentDim:a,page:l,pages:c,slides:d,panzoom:u}=this,h=0,f=0,p=0,m=0;u?m=-1*u.current[this.axis]:c[l]&&(m=c[l].pos||0),e=t?i?"right":"left":"top",i&&t&&(m*=-1);for(const t of d){const i=t.el;i?("top"===e?(i.style.right="",i.style.left=""):i.style.top="",t.index!==h?i.style[e]=0===f?"":`${o(f,1e3)}
1px`:i.style[e]="",p+=t.dim+t.gap,h++):f+=t.dim+t.gap}if(n&&p&&s){let i=getComputedStyle(s),n="padding",l=t?"Right":"Bottom",c=parseFloat(i[n+(t?"Left":"Top")]);m-=c,r+=c,r+=parseFloat(i[n+l]);for(const t of d)t.el&&(o(t.pos)<o(r)&&o(t.pos+t.dim+t.gap)<o(m)&&o(m)>o(a-r)&&(t.el.style[e]=`${o(f+p,1e3)}px`),o(t.pos+t.gap)>=o(a-r)&&o(t.pos)>o(m+r)&&o(m)<o(r)&&(t.el.style[e]=`-${o(p,1e3)}px`))}let g,v,b=[...this.inTransition];if(b.length>1&&(g=c[b[0]],v=c[b[1]]),g&&v){let t=0;for(const i of d)i.el?this.inTransition.has(i.index)&&g.slides.indexOf(i)<0&&(i.el.style[e]=`${o(t+(g.pos-v.pos),1e3)}px`):t+=i.dim+i.gap}}createSlideEl(e){const{track:t,slides:i}=this;if(!t||!e)return;if(e.el&&e.el.parentNode)return;const n=e.el||document.createElement("div");A(n,this.cn(ee)),A(n,e.class),A(n,e.customClass);const s=e.html;s&&(s instanceof HTMLElement?n.appendChild(s):n.innerHTML=e.html+"");const o=[];i.forEach(((e,t)=>{e.el&&o.push(t)}));const r=e.index;let a=null;o.length&&(a=i[o.reduce(((e,t)=>Math.abs(t-r)<Math.abs(e-r)?t:e))]);const l=a&&a.el&&a.el.parentNode?a.index<e.index?a.el.nextSibling:a.el:null;t.insertBefore(n,t.contains(l)?l:null),e.el=n,this.emit("createSlide",e)}removeSlideEl(e,t=!1){const i=null==e?void 0:e.el;if(!i||!i.parentNode)return;const n=this.cn(Q);if(i.classList.contains(n)&&(O(i,n),this.emit("unselectSlide",e)),e.isDom&&!t)return i.removeAttribute("aria-hidden"),i.removeAttribute("data-index"),void(i.style.left="");this.emit("removeSlide",e);const s=new CustomEvent(K);i.dispatchEvent(s),e.el&&(e.el.remove(),e.el=null)}transitionTo(e=0,t=this.option("transition")){var i,n,s,o;if(!t)return!1;const r=this.page,{pages:a,panzoom:l}=this;e=parseInt((e||0).toString())||0;const c=this.getPageFromIndex(e);if(!l||!a[c]||a.length<2||Math.abs(((null===(n=null===(i=a[r])||void 0===i?void 0:i.slides[0])||void 0===n?void 0:n.dim)||0)-this.viewportDim)>1)return!1;let d=e>r?1:-1;this.isInfinite&&(0===r&&e===a.length-1&&(d=-1),r===a.length-1&&0===e&&(d=1));const u=a[c].pos*(this.isRTL?1:-1);if(r===c&&Math.abs(u-l.target[this.axis])<1)return!1;this.clearTransitions();const h=l.isResting;A(this.container,this.cn("inTransition"));const f=(null===(s=a[r])||void 0===s?void 0:s.slides[0])||null,p=(null===(o=a[c])||void 0===o?void 0:o.slides[0])||null;this.inTransition.add(p.index),this.createSlideEl(p);let m=f.el,g=p.el;h||t===ee||(t="fadeFast",m=null);const v=this.isRTL?"next":"prev",b=this.isRTL?"prev":"next";return m&&(this.inTransition.add(f.index),f.transition=t,m.addEventListener(K,this.onAnimationEnd),m.classList.add(`f-${t}Out`,`to-${d>0?b:v}`)),g&&(p.transition=t,g.addEventListener(K,this.onAnimationEnd),g.classList.add(`f-${t}In`,`from-${d>0?v:b}`)),l.current[this.axis]=u,l.target[this.axis]=u,l.requestTick(),this.onChange(c),!0}manageSlideVisiblity(){const e=new Set,t=new Set,i=this.getVisibleSlides(parseFloat(this.option("preload",0)+"")||0);for(const n of this.slides)i.has(n)?e.add(n):t.add(n);for(const t of this.inTransition)e.add(this.slides[t]);for(const t of e)this.createSlideEl(t),this.lazyLoadSlide(t);for(const i of t)e.has(i)||this.removeSlideEl(i);this.markSelectedSlides(),this.repositionSlides()}markSelectedSlides(){if(!this.pages[this.page]||!this.pages[this.page].slides)return;const e="aria-hidden";let t=this.cn(Q);if(t)for(const i of this.slides){const n=i.el;n&&(n.dataset.index=`${i.index}`,n.classList.contains("f-thumbs__slide")?this.getVisibleSlides(0).has(i)?n.removeAttribute(e):n.setAttribute(e,"true"):this.pages[this.page].slides.includes(i)?(n.classList.contains(t)||(A(n,t),this.emit("selectSlide",i)),n.removeAttribute(e)):(n.classList.contains(t)&&(O(n,t),this.emit("unselectSlide",i)),n.setAttribute(e,"true")))}}flipInfiniteTrack(){const{axis:e,isHorizontal:t,isInfinite:i,isRTL:n,viewportDim:s,contentDim:o}=this,r=this.panzoom;if(!r||!i)return;let a=r.current[e],l=r.target[e]-a,c=0,d=.5*s;n&&t?(a<-d&&(c=-1,a+=o),a>o-d&&(c=1,a-=o)):(a>d&&(c=1,a-=o),a<-o+d&&(c=-1,a+=o)),c&&(r.current[e]=a,r.target[e]=a+l)}lazyLoadImg(e,t){const i=this,n="f-fadeIn",s="is-preloading";let o=!1,r=null;const a=()=>{o||(o=!0,r&&(r.remove(),r=null),O(t,s),t.complete&&(A(t,n),setTimeout((()=>{O(t,n)}),350)),this.option("adaptiveHeight")&&e.el&&this.pages[this.page].slides.indexOf(e)>
vendor: 10,584 bytes, line 1
1-1&&(i.updateMetrics(),i.setViewportHeight()),this.emit("load",e))};A(t,s),t.src=t.dataset.lazySrcset||t.dataset.lazySrc||"",delete t.dataset.lazySrc,delete t.dataset.lazySrcset,t.addEventListener("error",(()=>{a()})),t.addEventListener("load",(()=>{a()})),setTimeout((()=>{const i=t.parentNode;i&&e.el&&(t.complete?a():o||(r=l(C),i.insertBefore(r,t)))}),300)}lazyLoadSlide(e){const t=e&&e.el;if(!t)return;const i=new Set;let n=Array.from(t.querySelectorAll("[data-lazy-src],[data-lazy-srcset]"));t.dataset.lazySrc&&n.push(t),n.map((e=>{e instanceof HTMLImageElement?i.add(e):e instanceof HTMLElement&&e.dataset.lazySrc&&(e.style.backgroundImage=`url('${e.dataset.lazySrc}')`,delete e.dataset.lazySrc)}));for(const t of i)this.lazyLoadImg(e,t)}onAnimationEnd(e){var t;const i=e.target,n=i?parseInt(i.dataset.index||"",10)||0:-1,s=this.slides[n],o=e.animationName;if(!i||!s||!o)return;const r=!!this.inTransition.has(n)&&s.transition;r&&o.substring(0,r.length+2)===`f-${r}`&&this.inTransition.delete(n),this.inTransition.size||this.clearTransitions(),n===this.page&&(null===(t=this.panzoom)||void 0===t?void 0:t.isResting)&&this.emit("settle")}onDecel(e,t=0,i=0,n=0,s=0){if(this.option("dragFree"))return void this.setPageFromPosition();const{isRTL:o,isHorizontal:r,axis:a,pages:l}=this,c=l.length,d=Math.abs(Math.atan2(i,t)/(Math.PI/180));let u=0;if(u=d>45&&d<135?r?0:i:r?t:0,!c)return;let h=this.page,f=o&&r?1:-1;const p=e.current[a]*f;let{pageIndex:m}=this.getPageFromPosition(p);Math.abs(u)>5?(l[h].dim<document.documentElement["client"+(this.isHorizontal?"Width":"Height")]-1&&(h=m),h=o&&r?u<0?h-1:h+1:u<0?h+1:h-1):h=0===n&&0===s?h:m,this.slideTo(h,{transition:!1,friction:e.option("decelFriction")})}onClick(e){const t=e.target,i=t&&P(t)?t.dataset:null;let n,s;i&&(void 0!==i.carouselPage?(s="slideTo",n=i.carouselPage):void 0!==i.carouselNext?s="slideNext":void 0!==i.carouselPrev&&(s="slidePrev")),s?(e.preventDefault(),e.stopPropagation(),t&&!t.hasAttribute("disabled")&&this[s](n)):this.emit("click",e)}onSlideTo(e){const t=e.detail||0;this.slideTo(this.getPageForSlide(t),{friction:0})}onChange(e,t=0){const i=this.page;this.prevPage=i,this.page=e,this.option("adaptiveHeight")&&this.setViewportHeight(),e!==i&&(this.markSelectedSlides(),this.emit("change",e,i,t))}onRefresh(){let e=this.contentDim,t=this.viewportDim;this.updateMetrics(),this.contentDim===e&&this.viewportDim===t||this.slideTo(this.page,{friction:0,transition:!1})}onScroll(){var e;null===(e=this.viewport)||void 0===e||e.scroll(0,0)}onResize(){this.option("breakpoints")&&this.processOptions()}onBeforeTransform(e){this.lp!==e.current[this.axis]&&(this.flipInfiniteTrack(),this.manageSlideVisiblity()),this.lp=e.current.e}onEndAnimation(){this.inTransition.size||this.emit("settle")}reInit(e=null,t=null){this.destroy(),this.state=B.Init,this.prevPage=null,this.userOptions=e||this.userOptions,this.userPlugins=t||this.userPlugins,this.processOptions()}slideTo(e=0,{friction:t=this.option("friction"),transition:i=this.option("transition")}={}){if(this.state===B.Destroy)return;e=parseInt((e||0).toString())||0;const n=this.getPageFromIndex(e),{axis:s,isHorizontal:o,isRTL:r,pages:a,panzoom:l}=this,c=a.length,d=r&&o?1:-1;if(!l||!c)return;if(this.page!==n){const t=new Event("beforeChange",{bubbles:!0,cancelable:!0});if(this.emit("beforeChange",t,e),t.defaultPrevented)return}if(this.transitionTo(e,i))return;let u=a[n].pos;if(this.isInfinite){const t=this.contentDim,i=l.target[s]*d;2===c?u+=t*Math.floor(parseFloat(e+"")/2):u=[u,u-t,u+t].reduce((function(e,t){return Math.abs(t-i)<Math.abs(e-i)?t:e}))}u*=d,Math.abs(l.target[s]-u)<1||(l.panTo({x:o?u:0,y:o?0:u,friction:t}),this.onChange(n))}slideToClosest(e){if(this.panzoom){const{pageIndex:t}=this.getPageFromPosition();this.slideTo(t,e)}}slideNext(){this.slideTo(this.page+1)}slidePrev(){this.slideTo(this.page-1)}clearTransitions(){this.inTransition.clear(),O(this.container,this.cn("inTransition"));const e=["to-prev","to-next","from-prev","from-next"];for(const t of this.slides){const i=t.el;if(i){i.removeEventListener(K,this.onAnimationEnd),i.classList.remove(...e);const n=t.transition;n&&i.classList.remove(`f-${n}Out`,`f-${n}In`)}}this.manageSlideVisiblity()}addSlide(e,t){var i,n,s,o;const r=this.panzoom,a=(null===(i=this.pages[this.page])||void 0===i?void 0:i.pos)||0,l=(null===(n=this.pages[this.page])||void 0===n?void 0:n.dim)||0,c=this.contentDim<this.viewportDim;let d=Array.isArray(t)?t:[t];const u=[];for(const e of d)u.push(H(e));this.slides.splice(e,0,...u);for(let e=0;e<this.slides.length;e++)this.slides[e].index=e;for(const e of u)this.emit("beforeInitSlide",e,e.index);if(this.page>=e&&(this.page+=u.length),this.updateMetrics(),r){const t=(null===(s=this.pages[this.page])||void 0===s?void 0:s.pos)||0,i=(null===(o=this.pages[this.page])||void 0===o?void 0:o.dim)||0,n=this.pages.length||1,d=this.isRTL?l-i:i-l,u=this.isRTL?a-t:t-a;c&&1===n?(e<=this.page&&(r.current[this.axis]-=d,r.target[this.axis]-=d),r.panTo({[this.isHorizontal?"x":"y"]:-1*t})):u&&e<=this.page&&(r.target[this.axis]-=u,r.current[this.axis]-=u,r.requestTick())}for(const e of u)this.emit("initSlide",e,e.index)}prependSlide(e){this.addSlide(0,e)}appendSlide(e){this.addSlide(this.slides.length,e)}removeSlide(e){const t=this.slides.length;e=(e%t+t)%t;const i=this.slides[e];if(i){this.removeSlideEl(i,!0),this.slides.splice(e,1);for(let e=0;e<this.slides.length;e++)this.slides[e].index=e;this.updateMetrics(),this.slideTo(this.page,{friction:0,transition:!1}),this.emit("destroySlide",i)}}updateMetrics(){const{panzoom:e,viewport:t,track:i,slides:n,isHorizontal:s,isInfinite:r}=this;if(!i)return;const a=s?"width":"height",l=s?"offsetWidth":"offsetHeight";if(t){let e=Math.max(t[l],o(t.getBoundingClientRect()[a],1e3)),i=getComputedStyle(t),n="padding",r=s?"Right":"Bottom";e-=parseFloat(i[n+(s?"Left":"Top")])+parseFloat(i[n+r]),this.viewportDim=e}let c,d=0;for(const[e,t]of n.entries()){let i=0,s=0;!t.el&&c?(i=c.dim,s=c.gap):(({dim:i,gap:s}=this.getSlideMetrics(t)),c=t),i=o(i,1e3),s=o(s,1e3),t.dim=i,t.gap=s,t.pos=d,d+=i,(r||e<n.length-1)&&(d+=s)}d=o(d,1e3),this.contentDim=d,e&&(e.contentRect[a]=d,e.contentRect[s?"fullWidth":"fullHeight"]=d),this.pages=this.createPages(),this.pages=this.processPages(),this.state===B.Init&&this.setInitialPage(),this.page=Math.max(0,Math.min(this.page,this.pages.length-1)),this.manageSlideVisiblity(),this.emit("refresh")}getProgress(e,t=!1,i=!1){void 0===e&&(e=this.page);const n=this,s=n.panzoom,r=n.contentDim,a=n.pages[e]||0;if(!a||!s)return e>this.page?-1:1;let l=-1*s.current.e,c=o((l-a.pos)/(1*a.dim),1e3),d=c,u=c;this.isInfinite&&!0!==i&&(d=o((l-a.pos+r)/(1*a.dim),1e3),u=o((l-a.pos-r)/(1*a.dim),1e3));let h=[c,d,u].reduce((function(e,t){return Math.abs(t)<Math.abs(e)?t:e}));return t?h:h>1?1:h<-1?-1:h}setViewportHeight(){const{page:e,pages:t,viewport:i,isHorizontal:n}=this;if(!i||!t[e])return;let s=0;n&&this.track&&(this.track.style.height="auto",t[e].slides.forEach((e=>{e.el&&(s=Math.max(s,e.el.offsetHeight))}))),i.style.height=s?`${s}px`:""}getPageForSlide(e){for(const t of this.pages)for(const i of t.slides)if(i.index===e)return t.index;return-1}getVisibleSlides(e=0){var t;const i=new Set;let{panzoom:n,contentDim:s,viewportDim:o,pages:r,page:a}=this;if(o){s=s+(null===(t=this.slides[this.slides.length-1])||void 0===t?void 0:t.gap)||0;let l=0;l=n&&n.state!==S.Init&&n.state!==S.Destroy?-1*n.current[this.axis]:r[a]&&r[a].pos||0,this.isInfinite&&(l-=Math.floor(l/s)*s),this.isRTL&&this.isHorizontal&&(l*=-1);const c=l-o*e,d=l+o*(e+1),u=this.isInfinite?[-1,0,1]:[0];for(const e of this.slides)for(const t of u){const n=e.pos+t*s,o=n+e.dim+e.gap;n<d&&o>c&&i.add(e)}}return i}getPageFromPosition(e){const{viewportDim:t,contentDim:i,slides:n,pages:s,panzoom:o}=this,r=s.length,a=n.length,l=n[0],c=n[a-1],d=this.option("center");let u=0,h=0,f=0,p=void 0===e?-1*((null==o?void 0:o.target[this.axis])||0):e;d&&(p+=.5*t),this.isInfinite?(p<l.pos-.5*c.gap&&(p-=i,f=-1),p>c.pos+c.dim+.5*c.gap&&(p-=i,f=1)):p=Math.max(l.pos||0,Math.min(p,c.pos));let m=c,g=n.find((e=>{const t=e.pos-.5*m.gap,i=e.pos+e.dim+.5*e.gap;return m=e,p>=t&&p<i}));return g||(g=c),h=this.getPageForSlide(g.index),u=h+f*r,{page:u,pageIndex:h}}setPageFromPosition(){const{pageIndex:e}=this.getPageFromPosition();this.onChange(e)}destroy(){if([B.Destroy].includes(this.state))return;this.state=B.Destroy;const{container:e,viewport:t,track:i,slides:n,panzoom:s}=this,o=this.option("classes");e.removeEventListener("click",this.onClick,{passive:!1,capture:!1}),e.removeEventListener("slideTo",this.onSlideTo),window.removeEventListener("resize",this.onResize),s&&(s.destroy(),this.panzoom=null),n&&n.forEach((e=>{this.removeSlideEl(e)})),this.detachPlugins(),t&&(t.removeEventListener("scroll",this.onScroll),t.offsetParent&&i&&i.offsetParent&&t.replaceWith(...i.childNodes));for(const[t,i]of Object.entries(o))"container"!==t&&i&&e.classList.remove(i);this.track=null,this.viewport=null,this.page=0,this.slides=[];const r=this.events.get("ready");this.events=new Map,r&&this.events.set("ready",r)}}Object.defineProperty(te,"Panzoom",{enumerable:!0,configurable:!0,writable:!0,value:_}),Object.defineProperty(te,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{viewport:null,track:null,enabled:!0,slides:[],axis:"x",transition:"fade",preload:1,slidesPerPage:"auto",initialPage:0,friction:.12,Panzoom:{decelFriction:.12},center:!0,infinite:!0,fill:!0,dragFree:!1,adaptiveHeight:!1,direction:"ltr",classes:{container:"f-carousel",viewport:"f-carousel__viewport",track:"f-carousel__track",slide:"f-carousel__slide",isLTR:"is-ltr",isRTL:"is-rtl",isHorizontal:"is-horizontal",isVertical:"is-vertical",inTransition:"in-transition",isSelected:"is-selected"},l10n:{NEXT:"Next slide",PREV:"Previous slide",GOTO:"Go to slide #%d"}}}),Object.defineProperty(te,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:J});const ie=function(e){if(!P(e))return 0;const t=window.scrollY,i=window.innerHeight,n=t+i,s=e.getBoundingClientRect(),o=s.y+t,r=s.height,a=o+r;if(t>a||n<o)return 0;if(t<o&&n>a)return 100;if(o<t&&a>n)return 100;let l=r;o<t&&(l-=t-o),a>n&&(l-=a-n);const c=l/i*100;return Math.round(c)},ne=!("undefined"==typeof window||!window.document||!window.document.createElement);let se;const oe=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden]):not(.fancybox-focus-guard)","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not
1([tabindex^="-"]):not([disabled]):not([aria-hidden])'].join(","),re=e=>{if(e&&ne){void 0===se&&document.createElement("div").focus({get preventScroll(){return se=!0,!1}});try{if(se)e.focus({preventScroll:!0});else{const t=window.scrollY||document.body.scrollTop,i=window.scrollX||document.body.scrollLeft;e.focus(),document.body.scrollTo({top:t,left:i,behavior:"auto"})}}catch(e){}}},ae=()=>{const e=document;let t,i="",n="",s="";return e.fullscreenEnabled?(i="requestFullscreen",n="exitFullscreen",s="fullscreenElement"):e.webkitFullscreenEnabled&&(i="webkitRequestFullscreen",n="webkitExitFullscreen",s="webkitFullscreenElement"),i&&(t={request:function(t=e.documentElement){return"webkitRequestFullscreen"===i?t[i](Element.ALLOW_KEYBOARD_INPUT):t[i]()},exit:function(){return e[s]&&e[n]()},isFullscreen:function(){return e[s]}}),t},le={animated:!0,autoFocus:!0,backdropClick:"close",Carousel:{classes:{container:"fancybox__carousel",viewport:"fancybox__viewport",track:"fancybox__track",slide:"fancybox__slide"}},closeButton:"auto",closeExisting:!1,commonCaption:!1,compact:()=>window.matchMedia("(max-width: 578px), (max-height: 578px)").matches,contentClick:"toggleZoom",contentDblClick:!1,defaultType:"image",defaultDisplay:"flex",dragToClose:!0,Fullscreen:{autoStart:!1},groupAll:!1,groupAttr:"data-fancybox",hideClass:"f-fadeOut",hideScrollbar:!0,idle:3500,keyboard:{Escape:"close",Delete:"close",Backspace:"close",PageUp:"next",PageDown:"prev",ArrowUp:"prev",ArrowDown:"next",ArrowRight:"next",ArrowLeft:"prev"},l10n:Object.assign(Object.assign({},E),{CLOSE:"Close",NEXT:"Next",PREV:"Previous",MODAL:"You can close this modal content with the ESC key",ERROR:"Something Went Wrong, Please Try Again Later",IMAGE_ERROR:"Image Not Found",ELEMENT_NOT_FOUND:"HTML Element Not Found",AJAX_NOT_FOUND:"Error Loading AJAX : Not Found",AJAX_FORBIDDEN:"Error Loading AJAX : Forbidden",IFRAME_ERROR:"Error Loading Page",TOGGLE_ZOOM:"Toggle zoom level",TOGGLE_THUMBS:"Toggle thumbnails",TOGGLE_SLIDESHOW:"Toggle slideshow",TOGGLE_FULLSCREEN:"Toggle full-screen mode",DOWNLOAD:"Download"}),parentEl:null,placeFocusBack:!0,showClass:"f-zoomInUp",startIndex:0,tpl:{closeButton:'<button data-fancybox-close class="f-button is-close-btn" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M20 20L4 4m16 0L4 20"/></svg></button>',main:'<div class="fancybox__container" role="dialog" aria-modal="true" aria-label="{{MODAL}}" tabindex="-1">\n <div class="fancybox__backdrop"></div>\n <div class="fancybox__carousel"></div>\n <div class="fancybox__footer"></div>\n </div>'},trapFocus:!0,wheel:"zoom"};var ce,de;!function(e){e[e.Init=0]="Init",e[e.Ready=1]="Ready",e[e.Closing=2]="Closing",e[e.CustomClosing=3]="CustomClosing",e[e.Destroy=4]="Destroy"}(ce||(ce={})),function(e){e[e.Loading=0]="Loading",e[e.Opening=1]="Opening",e[e.Ready=2]="Ready",e[e.Closing=3]="Closing"}(de||(de={}));let ue="",he=!1,fe=!1,pe=null;const me=()=>{let e="",t="";const i=Ot.getInstance();if(i){const n=i.carousel,s=i.getSlide();if(n&&s){let o=s.slug||void 0,r=s.triggerEl||void 0;t=o||i.option("slug")||"",!t&&r&&r.dataset&&(t=r.dataset.fancybox||""),t&&"true"!==t&&(e="#"+t+(!o&&n.slides.length>1?"-"+(s.index+1):""))}}return{hash:e,slug:t,index:1}},ge=()=>{const e=new URL(document.URL).hash,t=e.slice(1).split("-"),i=t[t.length-1],n=i&&/^\+?\d+$/.test(i)&&parseInt(t.pop()||"1",10)||1;return{hash:e,slug:t.join("-"),index:n}},ve=()=>{const{slug:e,index:t}=ge();if(!e)return;let i=document.querySelector(`[data-slug="${e}"]`);if(i&&i.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})),Ot.getInstance())return;const n=document.querySelectorAll(`[data-fancybox="${e}"]`);n.length&&(i=n[t-1],i&&i.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})))},be=()=>{if(!1===Ot.defaults.Hash)return;const e=Ot.getInstance();if(!1===(null==e?void 0:e.options.Hash))return;const{slug:t,index:i}=ge(),{slug:n}=me();e&&(t===n?e.jumpTo(i-1):(he=!0,e.close())),ve()},ye=()=>{pe&&clearTimeout(pe),queueMicrotask((()=>{be()}))},we=()=>{window.addEventListener("hashchange",ye,!1),setTimeout((()=>{be()}),500)};ne&&(/complete|interactive|loaded/.test(document.readyState)?we():document.addEventListener("DOMContentLoaded",we));const Se="is-zooming-in";class xe extends W{onCreateSlide(e,t,i){const n=this.instance.optionFor(i,"src")||"";i.el&&"image"===i.type&&"string"==typeof n&&this.setImage(i,n)}onRemoveSlide(e,t,i){i.panzoom&&i.panzoom.destroy(),i.panzoom=void 0,i.imageEl=void 0}onChange(e,t,i,n){O(this.instance.container,Se);for(const e of t.slides){const t=e.panzoom;t&&e.index!==i&&t.reset(.35)}}onClose(){var e;const t=this.instance,i=t.container,n=t.getSlide();if(!i||!i.parentElement||!n)return;const{el:s,contentEl:o,panzoom:r,thumbElSrc:a}=n;if(!s||!a||!o||!r||r.isContentLoading||r.state===S.Init||r.state===S.Destroy)return;r.updateMetrics();let l=this.getZoomInfo(n);if(!l)return;this.instance.state=ce.CustomClosing,i.classList.remove(Se),i.classList.add("is-zooming-out"),o.style.backgroundImage=`url('${a}')`;const c=i.getBoundingClientRect();
vendor: 4,243 bytes, line 1
11===((null===(e=window.visualViewport)||void 0===e?void 0:e.scale)||1)&&Object.assign(i.style,{position:"absolute",top:`${i.offsetTop+window.scrollY}px`,left:`${i.offsetLeft+window.scrollX}px`,bottom:"auto",right:"auto",width:`${c.width}px`,height:`${c.height}px`,overflow:"hidden"});const{x:d,y:u,scale:h,opacity:f}=l;if(f){const e=((e,t,i,n)=>{const s=t-e;return t=>1+((t-e)/s*-1||0)})(r.scale,h);r.on("afterTransform",(()=>{o.style.opacity=e(r.scale)+""}))}r.on("endAnimation",(()=>{t.destroy()})),r.target.a=h,r.target.b=0,r.target.c=0,r.target.d=h,r.panTo({x:d,y:u,scale:h,friction:f?.2:.33,ignoreBounds:!0}),r.isResting&&t.destroy()}setImage(e,t){const i=this.instance;e.src=t,this.process(e,t).then((t=>{const{contentEl:n,imageEl:s,thumbElSrc:o,el:r}=e;if(i.isClosing()||!n||!s)return;n.offsetHeight;const a=!!i.isOpeningSlide(e)&&this.getZoomInfo(e);if(this.option("protected")&&r){r.addEventListener("contextmenu",(e=>{e.preventDefault()}));const e=document.createElement("div");A(e,"fancybox-protected"),n.appendChild(e)}if(o&&a){const s=t.contentRect,r=Math.max(s.fullWidth,s.fullHeight);let c=null;!a.opacity&&r>1200&&(c=document.createElement("img"),A(c,"fancybox-ghost"),c.src=o,n.appendChild(c));const d=()=>{c&&(A(c,"f-fadeFastOut"),setTimeout((()=>{c&&(c.remove(),c=null)}),200))};(l=o,new Promise(((e,t)=>{const i=new Image;i.onload=e,i.onerror=t,i.src=l}))).then((()=>{i.hideLoading(e),e.state=de.Opening,this.instance.emit("reveal",e),this.zoomIn(e).then((()=>{d(),this.instance.done(e)}),(()=>{})),c&&setTimeout((()=>{d()}),r>2500?800:200)}),(()=>{i.hideLoading(e),i.revealContent(e)}))}else{const n=this.optionFor(e,"initialSize"),s=this.optionFor(e,"zoom"),o={event:i.prevMouseMoveEvent||i.options.event,friction:s?.12:0};let r=i.optionFor(e,"showClass")||void 0,a=!0;i.isOpeningSlide(e)&&("full"===n?t.zoomToFull(o):"cover"===n?t.zoomToCover(o):"max"===n?t.zoomToMax(o):a=!1,t.stop("current")),a&&r&&(r=t.isDragging?"f-fadeIn":""),i.hideLoading(e),i.revealContent(e,r)}var l}),(()=>{i.setError(e,"{{IMAGE_ERROR}}")}))}process(e,t){return new Promise(((i,n)=>{var s;const o=this.instance,r=e.el;o.clearContent(e),o.showLoading(e);let a=this.optionFor(e,"content");if("string"==typeof a&&(a=l(a)),!a||!P(a)){if(a=document.createElement("img"),a instanceof HTMLImageElement){let i="",n=e.caption;i="string"==typeof n&&n?n.replace(/<[^>]+>/gi,"").substring(0,1e3):`Image ${e.index+1} of ${(null===(s=o.carousel)||void 0===s?void 0:s.pages.length)||1}`,a.src=t||"",a.alt=i,a.draggable=!1,e.srcset&&a.setAttribute("srcset",e.srcset),this.instance.isOpeningSlide(e)&&(a.fetchPriority="high")}e.sizes&&a.setAttribute("sizes",e.sizes)}A(a,"fancybox-image"),e.imageEl=a,o.setContent(e,a,!1),e.panzoom=new _(r,v({transformParent:!0},this.option("Panzoom")||{},{content:a,width:(t,i)=>o.optionFor(e,"width","auto",i)||"auto",height:(t,i)=>o.optionFor(e,"height","auto",i)||"auto",wheel:()=>{const e=o.option("wheel");return("zoom"===e||"pan"==e)&&e},click:(t,i)=>{var n,s;if(o.isCompact||o.isClosing())return!1;if(e.index!==(null===(n=o.getSlide())||void 0===n?void 0:n.index))return!1;if(i){const e=i.composedPath()[0];if(["A","BUTTON","TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].includes(e.nodeName))return!1}let r=!i||i.target&&(null===(s=e.contentEl)||void 0===s?void 0:s.contains(i.target));return o.option(r?"contentClick":"backdropClick")||!1},dblClick:()=>o.isCompact?"toggleZoom":o.option("contentDblClick")||!1,spinner:!1,panOnlyZoomed:!0,wheelLimit:1/0,on:{ready:e=>{i(e)},error:()=>{n()},destroy:()=>{n()}}}))}))}zoomIn(e){return new Promise(((t,i)=>{const n=this.instance,s=n.container,{panzoom:o,contentEl:r,el:a}=e;o&&o.updateMetrics();const l=this.getZoomInfo(e);if(!(l&&a&&r&&o&&s))return void i();const{x:c,y:d,scale:u,opacity:h}=l,f=()=>{e.state!==de.Closing&&(h&&(r.style.opacity=Math.max(Math.min(1,1-(1-o.scale)/(1-u)),0)+""),o.scale>=1&&o.scale>o.targetScale-.1&&t(o))},p=e=>{(e.scale<.99||e.scale>1.01)&&!e.isDragging||(O(s,Se),r.style.opacity="",e.off("endAnimation",p),e.off("touchStart",p),e.off("afterTransform",f),t(e))};o.on("endAnimation",p),o.on("touchStart",p),o.on("afterTransform",f),o.on(["error","destroy"],(()=>{i()})),o.panTo({x:c,y:d,scale:u,friction:0,ignoreBounds:!0}),o.stop("current");
vendor: 13,113 bytes, line 1
1const m={event:"mousemove"===o.panMode?n.prevMouseMoveEvent||n.options.event:void 0},g=this.optionFor(e,"initialSize");A(s,Se),n.hideLoading(e),"full"===g?o.zoomToFull(m):"cover"===g?o.zoomToCover(m):"max"===g?o.zoomToMax(m):o.reset(.172)}))}getZoomInfo(e){const{el:t,imageEl:i,thumbEl:n,panzoom:s}=e,o=this.instance,r=o.container;if(!t||!i||!n||!s||ie(n)<3||!this.optionFor(e,"zoom")||!r||o.state===ce.Destroy)return!1;if("0"===getComputedStyle(r).getPropertyValue("--f-images-zoom"))return!1;const a=window.visualViewport||null;if(1!==(a?a.scale:1))return!1;let{top:l,left:c,width:d,height:u}=n.getBoundingClientRect(),{top:h,left:f,fitWidth:p,fitHeight:m}=s.contentRect;if(!(d&&u&&p&&m))return!1;const g=s.container.getBoundingClientRect();f+=g.left,h+=g.top;const v=-1*(f+.5*p-(c+.5*d)),b=-1*(h+.5*m-(l+.5*u)),y=d/p;let w=this.option("zoomOpacity")||!1;return"auto"===w&&(w=Math.abs(d/u-p/m)>.1),{x:v,y:b,scale:y,opacity:w}}attach(){const e=this,t=e.instance;t.on("Carousel.change",e.onChange),t.on("Carousel.createSlide",e.onCreateSlide),t.on("Carousel.removeSlide",e.onRemoveSlide),t.on("close",e.onClose)}detach(){const e=this,t=e.instance;t.off("Carousel.change",e.onChange),t.off("Carousel.createSlide",e.onCreateSlide),t.off("Carousel.removeSlide",e.onRemoveSlide),t.off("close",e.onClose)}}Object.defineProperty(xe,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{initialSize:"fit",Panzoom:{maxScale:1},protected:!1,zoom:!0,zoomOpacity:"auto"}}),"function"==typeof SuppressedError&&SuppressedError;const Ee="html",Te="image",Me="map",Ce="youtube",Pe="vimeo",Oe="html5video",Ae=(e,t={})=>{const i=new URL(e),n=new URLSearchParams(i.search),s=new URLSearchParams;for(const[e,i]of[...n,...Object.entries(t)]){let t=i+"";if("t"===e){let e=t.match(/((\d*)m)?(\d*)s?/);e&&s.set("start",60*parseInt(e[2]||"0")+parseInt(e[3]||"0")+"")}else s.set(e,t)}let o=s+"",r=e.match(/#t=((.*)?\d+s)/);return r&&(o+=`#t=${r[1]}`),o},ke=["image","html","ajax","inline","clone","iframe","map","pdf","html5video","youtube","vimeo"];class Ie extends W{onBeforeInitSlide(e,t,i){this.processType(i)}onCreateSlide(e,t,i){this.setContent(i)}onClearContent(e,t){t.xhr&&(t.xhr.abort(),t.xhr=null);const i=t.iframeEl;i&&(i.onload=i.onerror=null,i.src="//about:blank",t.iframeEl=null);const n=t.contentEl,s=t.placeholderEl;if("inline"===t.type&&n&&s)n.classList.remove("fancybox__content"),"none"!==getComputedStyle(n).getPropertyValue("display")&&(n.style.display="none"),setTimeout((()=>{s&&(n&&s.parentNode&&s.parentNode.insertBefore(n,s),s.remove())}),0),t.contentEl=void 0,t.placeholderEl=void 0;else for(;t.el&&t.el.firstChild;)t.el.removeChild(t.el.firstChild)}onSelectSlide(e,t,i){i.state===de.Ready&&this.playVideo()}onUnselectSlide(e,t,i){var n,s;if(i.type===Oe){try{null===(s=null===(n=i.el)||void 0===n?void 0:n.querySelector("video"))||void 0===s||s.pause()}catch(e){}return}let o;i.type===Pe?o={method:"pause",value:"true"}:i.type===Ce&&(o={event:"command",func:"pauseVideo"}),o&&i.iframeEl&&i.iframeEl.contentWindow&&i.iframeEl.contentWindow.postMessage(JSON.stringify(o),"*"),i.poller&&clearTimeout(i.poller)}onDone(e,t){e.isCurrentSlide(t)&&!e.isClosing()&&this.playVideo()}onRefresh(e,t){t.slides.forEach((e=>{e.el&&(this.resizeIframe(e),this.setAspectRatio(e))}))}onMessage(e){try{let t=JSON.parse(e.data);if("https://player.vimeo.com"===e.origin){if("ready"===t.event)for(let t of Array.from(document.getElementsByClassName("fancybox__iframe")))t instanceof HTMLIFrameElement&&t.contentWindow===e.source&&(t.dataset.ready="true")}else if(e.origin.match(/^https:\/\/(www.)?youtube(-nocookie)?.com$/)&&"onReady"===t.event){const e=document.getElementById(t.id);e&&(e.dataset.ready="true")}}catch(e){}}loadAjaxContent(e){const t=this.instance.optionFor(e,"src")||"";this.instance.showLoading(e);const i=this.instance,n=new XMLHttpRequest;i.showLoading(e),n.onreadystatechange=function(){n.readyState===XMLHttpRequest.DONE&&i.state===ce.Ready&&(i.hideLoading(e),200===n.status?i.setContent(e,n.responseText):i.setError(e,404===n.status?"{{AJAX_NOT_FOUND}}":"{{AJAX_FORBIDDEN}}"))};const s=e.ajax||null;n.open(s?"POST":"GET",t+""),n.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.setRequestHeader("X-Requested-With","XMLHttpRequest"),n.send(s),e.xhr=n}setInlineContent(e){let t=null;if(P(e.src))t=e.src;else if("string"==typeof e.src){const i=e.src.split("#",2).pop();t=i?document.getElementById(i):null}if(t){if("clone"===e.type||t.closest(".fancybox__slide")){t=t.cloneNode(!0);const i=t.dataset.animationName;i&&(t.classList.remove(i),delete t.dataset.animationName);let n=t.getAttribute("id");n=n?`${n}--clone`:`clone-${this.instance.id}-${e.index}`,t.setAttribute("id",n)}else if(t.parentNode){const i=document.createElement("div");i.classList.add("fancybox-placeholder"),t.parentNode.insertBefore(i,t),e.placeholderEl=i}this.instance.setContent(e,t)}else this.instance.setError(e,"{{ELEMENT_NOT_FOUND}}")}setIframeContent(e){const{src:t,el:i}=e;if(!t||"string"!=typeof t||!i)return;i.classList.add("is-loading");const n=this.instance,s=document.createElement("iframe");s.className="fancybox__iframe",s.setAttribute("id",`fancybox__iframe_${n.id}_${e.index}`);for(const[t,i]of Object.entries(this.optionFor(e,"iframeAttr")||{}))s.setAttribute(t,i);s.onerror=()=>{n.setError(e,"{{IFRAME_ERROR}}")},e.iframeEl=s;const o=this.optionFor(e,"preload");if("iframe"!==e.type||!1===o)return s.setAttribute("src",e.src+""),n.setContent(e,s,!1),this.resizeIframe(e),void n.revealContent(e);n.showLoading(e),s.onload=()=>{if(!s.src.length)return;const t="true"!==s.dataset.ready;s.dataset.ready="true",this.resizeIframe(e),t?n.revealContent(e):n.hideLoading(e)},s.setAttribute("src",t),n.setContent(e,s,!1)}resizeIframe(e){const{type:t,iframeEl:i}=e;if(t===Ce||t===Pe)return;const n=null==i?void 0:i.parentElement;if(!i||!n)return;let s=e.autoSize;void 0===s&&(s=this.optionFor(e,"autoSize"));let o=e.width||0,r=e.height||0;o&&r&&(s=!1);const a=n&&n.style;if(!1!==e.preload&&!1!==s&&a)try{const e=window.getComputedStyle(n),t=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight),s=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom),l=i.contentWindow;if(l){const e=l.document,i=e.getElementsByTagName(Ee)[0],n=e.body;a.width="",n.style.overflow="hidden",o=o||i.scrollWidth+t,a.width=`${o}px`,n.style.overflow="",a.flex="0 0 auto",a.height=`${n.scrollHeight}px`,r=i.scrollHeight+s}}catch(e){}if(o||r){const e={flex:"0 1 auto",width:"",height:""};o&&"auto"!==o&&(e.width=`${o}px`),r&&"auto"!==r&&(e.height=`${r}px`),Object.assign(a,e)}}playVideo(){const e=this.instance.getSlide();if(!e)return;const{el:t}=e;if(!t||!t.offsetParent)return;if(!this.optionFor(e,"videoAutoplay"))return;if(e.type===Oe)try{const e=t.querySelector("video");if(e){const t=e.play();void 0!==t&&t.then((()=>{})).catch((t=>{e.muted=!0,e.play()}))}}catch(e){}if(e.type!==Ce&&e.type!==Pe)return;const i=()=>{if(e.iframeEl&&e.iframeEl.contentWindow){let t;if("true"===e.iframeEl.dataset.ready)return t=e.type===Ce?{event:"command",func:"playVideo"}:{method:"play",value:"true"},t&&e.iframeEl.contentWindow.postMessage(JSON.stringify(t),"*"),void(e.poller=void 0);e.type===Ce&&(t={event:"listening",id:e.iframeEl.getAttribute("id")},e.iframeEl.contentWindow.postMessage(JSON.stringify(t),"*"))}e.poller=setTimeout(i,250)};i()}processType(e){if(e.html)return e.type=Ee,e.src=e.html,void(e.html="");const t=this.instance.optionFor(e,"src","");if(!t||"string"!=typeof t)return;let i=e.type,n=null;if(n=t.match(/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(?:watch\?(?:.*&)?v=|v\/|u\/|shorts\/|embed\/?)?(videoseries\?list=(?:.*)|[\w-]{11}|\?listType=(?:.*)&list=(?:.*))(?:.*)/i)){const s=this.optionFor(e,Ce),{nocookie:o}=s,r=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(i[n[s]]=e[n[s]])}return i}(s,["nocookie"]),a=`www.youtube${o?"-nocookie":""}.com`,l=Ae(t,r),c=encodeURIComponent(n[2]);e.videoId=c,e.src=`https://${a}/embed/${c}?${l}`,e.thumbSrc=e.thumbSrc||`https://i.ytimg.com/vi/${c}/mqdefault.jpg`,i=Ce}else if(n=t.match(/^.+vimeo.com\/(?:\/)?([\d]+)((\/|\?h=)([a-z0-9]+))?(.*)?/)){const s=Ae(t,this.optionFor(e,Pe)),o=encodeURIComponent(n[1]),r=n[4]||"";e.videoId=o,e.src=`https://player.vimeo.com/video/${o}?${r?`h=${r}${s?"&":""}`:""}${s}`,i=Pe}if(!i&&e.triggerEl){const t=e.triggerEl.dataset.type;ke.includes(t)&&(i=t)}i||"string"==typeof t&&("#"===t.charAt(0)?i="inline":(n=t.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(i=Oe,e.videoFormat=e.videoFormat||"video/"+("ogv"===n[1]?"ogg":n[1])):t.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?i=Te:t.match(/\.(pdf)((\?|#).*)?$/i)&&(i="pdf")),(n=t.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:(?:(?:maps\/(?:place\/(?:.*)\/)?\@(.*),(\d+.?\d+?)z))|(?:\?ll=))(.*)?/i))?(e.src=`https://maps.google.${n[1]}/?ll=${(n[2]?n[2]+"&z="+Math.floor(parseFloat(n[3]))+(n[4]?n[4].replace(/^\//,"&"):""):n[4]+"").replace(/\?/,"&")}&output=${n[4]&&n[4].indexOf("layer=c")>0?"svembed":"embed"}`,i=Me):(n=t.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:maps\/search\/)(.*)/i))&&(e.src=`https://maps.google.${n[1]}/maps?q=${n[2].replace("query=","q=").replace("api=1","")}&output=embed`,i=Me),i=i||this.instance.option("defaultType"),e.type=i,i===Te&&(e.thumbSrc=e.thumbSrc||e.src)}setContent(e){const t=this.instance.optionFor(e,"src")||"";if(e&&e.type&&t){switch(e.type){case Ee:this.instance.setContent(e,t);break;case Oe:const i=this.option("videoTpl");i&&this.instance.setContent(e,i.replace(/\{\{src\}\}/gi,t+"").replace(/\{\{format\}\}/gi,this.optionFor(e,"videoFormat")||"").replace(/\{\{poster\}\}/gi,e.poster||e.thumbSrc||""));break;case"inline":case"clone":this.setInlineContent(e);break;case"ajax":this.loadAjaxContent(e);break;case"pdf":case Me:case Ce:case Pe:e.preload=!1;case"iframe":this.setIframeContent(e)}this.setAspectRatio(e)}}setAspectRatio(e){const t=e.contentEl;if(!(e.el&&t&&e.type&&[Ce,Pe,Oe].includes(e.type)))return;let i,n=e.width||"auto",s=e.height||"auto";if("auto"===n||"auto"===s){i=this.optionFor(e,"videoRatio");const t=(i+"").match(/(\d+)\s*\/\s?(\d+)/);i=t&&t.length>2?parseFloat(t[1])/parseFloat(t[2]):parseFloat(i+"")}else n&&s&&(i=n/s);if(!i)return;t.style.aspectRatio="",t.style.width="",t.style.height="",t.offsetHeight;const o=t.getBoundingClientRect(),r=o.width||1,a=o.height||1;t.style.aspectRatio=i+"",i<r/a?(s="auto"===s?a:Math.min(a,s),t.style.width="auto",t.style.height=`${s}px`):(n="auto"===n?r:Math.min(r,n),t.style.width=`${n}px`,t.style.height="auto")}attach(){const e=this,t=e.instance;t.on("Carousel.beforeInitSlide",e.onBeforeInitSlide),t.on("Carousel.createSlide",e.onCreateSlide),t.on("Carousel.selectSlide",e.onSelectSlide),t.on("Carousel.unselectSlide",e.onUnselectSlide),t.on("Carousel.Panzoom.refresh",e.onRefresh),t.on("done",e.onDone),t.on("clearContent",e.onClearContent),window.addEventListener("message",e.onMessage)}detach(){const e=this,t=e.instance;t.off("Carousel.beforeInitSlide",e.onBeforeInitSlide),t.off("Carousel.createSlide",e.onCreateSlide),t.off("Carousel.selectSlide",e.onSelectSlide),t.off("Carousel.unselectSlide",e.onUnselectSlide),t.off("Carousel.Panzoom.refresh",e.onRefresh),t.off("done",e.onDone),t.off("clearContent",e.onClearContent),window.removeEventListener("message",e.onMessage)}}Object.defineProperty(Ie,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{ajax:null,autoSize:!0,iframeAttr:{allow:"autoplay; fullscreen",scrolling:"auto"},preload:!0,videoAutoplay:!0,videoRatio:16/9,videoTpl:'<video class="fancybox__html5video" playsinline controls controlsList="nodownload" poster="{{poster}}">\n <source src="{{src}}" type="{{format}}" />Sorry, your browser doesn\'t support embedded videos.</video>',videoFormat:"",vimeo:{byline:1,color:"00adef",controls:1,dnt:1,muted:0},youtube:{controls:1,enablejsapi:1,nocookie:1,rel:0,fs:1}}});const Le="play",Fe="pause",ze="ready";class De extends W{constructor(){super(...arguments),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:ze}),Object.defineProperty(this,"inHover",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"timer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"progressBar",{enumerable:!0,configurable:!0,writable:!0,value:null})}get isActive(){return this.state!==ze}onReady(e){this.option("autoStart")&&(e.isInfinite||e.page<e.pages.length-1)&&this.start()}onChange(){this.removeProgressBar(),this.pause()}onSettle(){this.resume()}onVisibilityChange(){"visible"===document.visibilityState?this.resume():this.pause()}onMouseEnter(){this.inHover=!0,this.pause()}onMouseLeave(){var e;this.inHover=!1,(null===(e=this.instance.panzoom)||void 0===e?void 0:e.isResting)&&this.resume()}onTimerEnd(){const e=this.instance;"play"===this.state&&(e.isInfinite||e.page!==e.pages.length-1?e.
vendor: 5,010 bytes, line 1
1slideNext():e.slideTo(0))}removeProgressBar(){this.progressBar&&(this.progressBar.remove(),this.progressBar=null)}createProgressBar(){var e;if(!this.option("showProgress"))return null;this.removeProgressBar();const t=this.instance,i=(null===(e=t.pages[t.page])||void 0===e?void 0:e.slides)||[];let n=this.option("progressParentEl");if(n||(n=(1===i.length?i[0].el:null)||t.viewport),!n)return null;const s=document.createElement("div");return A(s,"f-progress"),n.prepend(s),this.progressBar=s,s.offsetHeight,s}set(){const e=this,t=e.instance;if(t.pages.length<2)return;if(e.timer)return;const i=e.option("timeout");e.state=Le,A(t.container,"has-autoplay");let n=e.createProgressBar();n&&(n.style.transitionDuration=`${i}ms`,n.style.transform="scaleX(1)"),e.timer=setTimeout((()=>{e.timer=null,e.inHover||e.onTimerEnd()}),i),e.emit("set")}clear(){const e=this;e.timer&&(clearTimeout(e.timer),e.timer=null),e.removeProgressBar()}start(){const e=this;if(e.set(),e.state!==ze){if(e.option("pauseOnHover")){const t=e.instance.container;t.addEventListener("mouseenter",e.onMouseEnter,!1),t.addEventListener("mouseleave",e.onMouseLeave,!1)}document.addEventListener("visibilitychange",e.onVisibilityChange,!1),e.emit("start")}}stop(){const e=this,t=e.state,i=e.instance.container;e.clear(),e.state=ze,i.removeEventListener("mouseenter",e.onMouseEnter,!1),i.removeEventListener("mouseleave",e.onMouseLeave,!1),document.removeEventListener("visibilitychange",e.onVisibilityChange,!1),O(i,"has-autoplay"),t!==ze&&e.emit("stop")}pause(){const e=this;e.state===Le&&(e.state=Fe,e.clear(),e.emit(Fe))}resume(){const e=this,t=e.instance;if(t.isInfinite||t.page!==t.pages.length-1)if(e.state!==Le){if(e.state===Fe&&!e.inHover){const t=new Event("resume",{bubbles:!0,cancelable:!0});e.emit("resume",t),t.defaultPrevented||e.set()}}else e.set();else e.stop()}toggle(){this.state===Le||this.state===Fe?this.stop():this.start()}attach(){const e=this,t=e.instance;t.on("ready",e.onReady),t.on("Panzoom.startAnimation",e.onChange),t.on("Panzoom.endAnimation",e.onSettle),t.on("Panzoom.touchMove",e.onChange)}detach(){const e=this,t=e.instance;t.off("ready",e.onReady),t.off("Panzoom.startAnimation",e.onChange),t.off("Panzoom.endAnimation",e.onSettle),t.off("Panzoom.touchMove",e.onChange),e.stop()}}Object.defineProperty(De,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{autoStart:!0,pauseOnHover:!0,progressParentEl:null,showProgress:!0,timeout:3e3}});class Re extends W{constructor(){super(...arguments),Object.defineProperty(this,"ref",{enumerable:!0,configurable:!0,writable:!0,value:null})}onPrepare(e){const t=e.carousel;if(!t)return;const i=e.container;i&&(t.options.Autoplay=v({autoStart:!1},this.option("Autoplay")||{},{pauseOnHover:!1,timeout:this.option("timeout"),progressParentEl:()=>this.option("progressParentEl")||null,on:{start:()=>{e.emit("startSlideshow")},set:t=>{var n;i.classList.add("has-slideshow"),(null===(n=e.getSlide())||void 0===n?void 0:n.state)!==de.Ready&&t.pause()},stop:()=>{i.classList.remove("has-slideshow"),e.isCompact||e.endIdle(),e.emit("endSlideshow")},resume:(t,i)=>{var n,s,o;!i||!i.cancelable||(null===(n=e.getSlide())||void 0===n?void 0:n.state)===de.Ready&&(null===(o=null===(s=e.carousel)||void 0===s?void 0:s.panzoom)||void 0===o?void 0:o.isResting)||i.preventDefault()}}}),t.attachPlugins({Autoplay:De}),this.ref=t.plugins.Autoplay)}onReady(e){const t=e.carousel,i=this.ref;i&&t&&this.option("playOnStart")&&(t.isInfinite||t.page<t.pages.length-1)&&i.start()}onDone(e,t){const i=this.ref,n=e.carousel;if(!i||!n)return;const s=t.panzoom;s&&s.on("startAnimation",(()=>{e.isCurrentSlide(t)&&i.stop()})),e.isCurrentSlide(t)&&i.resume()}onKeydown(e,t){var i;const n=this.ref;n&&t===this.option("key")&&"BUTTON"!==(null===(i=document.activeElement)||void 0===i?void 0:i.nodeName)&&n.toggle()}attach(){const e=this,t=e.instance;t.on("Carousel.init",e.onPrepare),t.on("Carousel.ready",e.onReady),t.on("done",e.onDone),t.on("keydown",e.onKeydown)}detach(){const e=this,t=e.instance;t.off("Carousel.init",e.onPrepare),t.off("Carousel.ready",e.onReady),t.off("done",e.onDone),t.off("keydown",e.onKeydown)}}Object.defineProperty(Re,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{key:" ",playOnStart:!1,progressParentEl:e=>{var t;return(null===(t=e.instance.container)||void 0===t?void 0:t.querySelector(".fancybox__toolbar [data-fancybox-toggle-slideshow]"))||e.instance.container},timeout:3e3}});const je={classes:{container:"f-thumbs f-carousel__thumbs",viewport:"f-thumbs__viewport",track:"f-thumbs__track",slide:"f-thumbs__slide",isResting:"is-resting",isSelected:"is-selected",isLoading:"is-loading",hasThumbs:"has-thumbs"},minCount:2,parentEl:null,thumbTpl:'<button class="f-thumbs__slide__button" tabindex="0" type="button" aria-label="{{GOTO}}" data-carousel-index="%i"><img class="f-thumbs__slide__img" data-lazy-src="{{%s}}" alt="" /></button>',type:"modern"};var _e;!function(e){e[e.Init=0]="Init",e[e.Ready=1]="Ready",e[e.Hidden=2]="Hidden"}(_e||(_e={}));
vendor: 2,399 bytes, line 1
1const $e="isResting",Ne="thumbWidth",Be="thumbHeight",He="thumbClipWidth";let Ve=class extends W{constructor(){super(...arguments),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:"modern"}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"track",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"carousel",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"thumbWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbClipWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbHeight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbGap",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbExtraGap",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:_e.Init})}get isModern(){return"modern"===this.type}onInitSlide(e,t){const i=t.el?t.el.dataset:void 0;i&&(t.thumbSrc=i.thumbSrc||t.thumbSrc||"",t[He]=parseFloat(i[He]||"")||t[He]||0,t[Be]=parseFloat(i.thumbHeight||"")||t[Be]||0),this.addSlide(t)}onInitSlides(){this.build()}onChange(){var e;if(!this.isModern)return;const t=this.container,i=this.instance,n=i.panzoom,s=this.carousel,o=s?s.panzoom:null,r=i.page;if(n&&s&&o){if(n.isDragging){O(t,this.cn($e));let n=(null===(e=s.pages[r])||void 0===e?void 0:e.pos)||0;n+=i.getProgress(r)*(this[He]+this.thumbGap);let a=o.getBounds();-1*n>a.x.min&&-1*n<a.x.max&&o.panTo({x:-1*n,friction:.12})}else d(t,this.cn($e),n.isResting);this.shiftModern()}}onRefresh(){this.updateProps();for(const e of this.instance.slides||[])this.resizeModernSlide(e);this.shiftModern()}isDisabled(){const e=this.option("minCount")||0;if(e){const t=this.instance;let i=0;for(const e of t.slides||[])e.thumbSrc&&i++;if(i<e)return!0}const t=this.option("type");return["modern","classic"].indexOf(t)<0}getThumb(e){const t=this.option("thumbTpl")||"";return{html:this.instance.localize(t,[["%i",e.index],["%d",e.index+1],["%s",e.thumbSrc||"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"]])}}addSlide(e){const t=this.carousel;t&&t.addSlide(e.index,this.getThumb(e))}getSlides(){const e=[];
vendor: 15,582 bytes, line 1
1for(const t of this.instance.slides||[])e.push(this.getThumb(t));return e}resizeModernSlide(e){this.isModern&&(e[Ne]=e[He]&&e[Be]?Math.round(this[Be]*(e[He]/e[Be])):this[Ne])}updateProps(){const e=this.container;if(!e)return;const t=t=>parseFloat(getComputedStyle(e).getPropertyValue("--f-thumb-"+t))||0;this.thumbGap=t("gap"),this.thumbExtraGap=t("extra-gap"),this[Ne]=t("width")||40,this[He]=t("clip-width")||40,this[Be]=t("height")||40}build(){const e=this;if(e.state!==_e.Init)return;if(e.isDisabled())return void e.emit("disabled");const t=e.instance,i=t.container,n=e.getSlides(),s=e.option("type");e.type=s;const o=e.option("parentEl"),r=e.cn("container"),a=e.cn("track");let l=null==o?void 0:o.querySelector("."+r);l||(l=document.createElement("div"),A(l,r),o?o.appendChild(l):i.after(l)),A(l,`is-${s}`),A(i,e.cn("hasThumbs")),e.container=l,e.updateProps();let c=l.querySelector("."+a);c||(c=document.createElement("div"),A(c,e.cn("track")),l.appendChild(c)),e.track=c;const d=v({},{track:c,infinite:!1,center:!0,fill:"classic"===s,dragFree:!0,slidesPerPage:1,transition:!1,preload:.25,friction:.12,Panzoom:{maxVelocity:0},Dots:!1,Navigation:!1,classes:{container:"f-thumbs",viewport:"f-thumbs__viewport",track:"f-thumbs__track",slide:"f-thumbs__slide"}},e.option("Carousel")||{},{Sync:{target:t},slides:n}),u=new t.constructor(l,d);u.on("createSlide",((t,i)=>{e.setProps(i.index),e.emit("createSlide",i,i.el)})),u.on("ready",(()=>{e.shiftModern(),e.emit("ready")})),u.on("refresh",(()=>{e.shiftModern()})),u.on("Panzoom.click",((t,i,n)=>{e.onClick(n)})),e.carousel=u,e.state=_e.Ready}onClick(e){e.preventDefault(),e.stopPropagation();const t=this.instance,{pages:i,page:n}=t,s=e=>{if(e){const t=e.closest("[data-carousel-index]");if(t)return[parseInt(t.dataset.carouselIndex||"",10)||0,t]}return[-1,void 0]},o=(e,t)=>{const i=document.elementFromPoint(e,t);return i?s(i):[-1,void 0]};let[r,a]=s(e.target);if(r>-1)return;const l=this[He],c=e.clientX,d=e.clientY;let[u,h]=o(c-l,d),[f,p]=o(c+l,d);h&&p?(r=Math.abs(c-h.getBoundingClientRect().right)<Math.abs(c-p.getBoundingClientRect().left)?u:f,r===n&&(r=r===u?f:u)):h?r=u:p&&(r=f),r>-1&&i[r]&&t.slideTo(r)}getShift(e){var t;const i=this,{instance:n}=i,s=i.carousel;if(!n||!s)return 0;const o=i[Ne],r=i[He],a=i.thumbGap,l=i.thumbExtraGap;if(!(null===(t=s.slides[e])||void 0===t?void 0:t.el))return 0;const c=.5*(o-r),d=n.pages.length-1;let u=n.getProgress(0),h=n.getProgress(d),f=n.getProgress(e,!1,!0),p=0,m=c+l+a;const g=u<0&&u>-1,v=h>0&&h<1;return 0===e?(p=m*Math.abs(u),v&&1===u&&(p-=m*Math.abs(h))):e===d?(p=m*Math.abs(h)*-1,g&&-1===h&&(p+=m*Math.abs(u))):g||v?(p=-1*m,p+=m*Math.abs(u),p+=m*(1-Math.abs(h))):p=m*f,p}setProps(e){var t;const i=this;if(!i.isModern)return;const{instance:n}=i,s=i.carousel;if(n&&s){const r=null===(t=s.slides[e])||void 0===t?void 0:t.el;if(r&&r.childNodes.length){let t=o(1-Math.abs(n.getProgress(e))),s=o(i.getShift(e));r.style.setProperty("--progress",t?t+"":""),r.style.setProperty("--shift",s+"")}}}shiftModern(){const e=this;if(!e.isModern)return;const{instance:t,track:i}=e,n=t.panzoom,s=e.carousel;if(!(t&&i&&n&&s))return;if(n.state===S.Init||n.state===S.Destroy)return;for(const i of t.slides)e.setProps(i.index);let o=(e[He]+e.thumbGap)*(s.slides.length||0);i.style.setProperty("--width",o+"")}cleanup(){const e=this;e.carousel&&e.carousel.destroy(),e.carousel=null,e.container&&e.container.remove(),e.container=null,e.track&&e.track.remove(),e.track=null,e.state=_e.Init,O(e.instance.container,e.cn("hasThumbs"))}attach(){const e=this,t=e.instance;t.on("initSlide",e.onInitSlide),t.state===B.Init?t.on("initSlides",e.onInitSlides):e.onInitSlides(),t.on(["change","Panzoom.afterTransform"],e.onChange),t.on("Panzoom.refresh",e.onRefresh)}detach(){const e=this,t=e.instance;t.off("initSlide",e.onInitSlide),t.off("initSlides",e.onInitSlides),t.off(["change","Panzoom.afterTransform"],e.onChange),t.off("Panzoom.refresh",e.onRefresh),e.cleanup()}};Object.defineProperty(Ve,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:je});const We=Object.assign(Object.assign({},je),{key:"t",showOnStart:!0,parentEl:null}),Ge="is-masked",Ue="aria-hidden";class qe extends W{constructor(){super(...arguments),Object.defineProperty(this,"ref",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"hidden",{enumerable:!0,configurable:!0,writable:!0,value:!1})}get isEnabled(){const e=this.ref;return e&&!e.isDisabled()}get isHidden(){return this.hidden}onClick(e,t){t.stopPropagation()}onCreateSlide(e,t){var i,n,s;const o=(null===(s=null===(n=null===(i=this.instance)||void 0===i?void 0:i.carousel)||void 0===n?void 0:n.slides[t.index])||void 0===s?void 0:s.type)||"",r=t.el;if(r&&o){let e=`for-${o}`;["video","youtube","vimeo","html5video"].includes(o)&&(e+=" for-video"),A(r,e)}}onInit(){var e;const t=this,i=t.instance,n=i.carousel;if(t.ref||!n)return;const s=t.option("parentEl")||i.footer||i.container;if(!s)return;const o=v({},t.options,{parentEl:s,classes:{container:"f-thumbs fancybox__thumbs"},Carousel:{Sync:{friction:i.option("Carousel.friction")||0}},on:{ready:e=>{const i=e.container;i&&this.hidden&&(t.refresh(),i.style.transition="none",t.hide(),i.offsetHeight,queueMicrotask((()=>{i.style.transition="",t.show()})))}}});o.Carousel=o.Carousel||{},o.Carousel.on=v((null===(e=t.options.Carousel)||void 0===e?void 0:e.on)||{},{click:this.onClick,createSlide:this.onCreateSlide}),n.options.Thumbs=o,n.attachPlugins({Thumbs:Ve}),t.ref=n.plugins.Thumbs,t.option("showOnStart")||(t.ref.state=_e.Hidden,t.hidden=!0)}onResize(){var e;const t=null===(e=this.ref)||void 0===e?void 0:e.container;t&&(t.style.maxHeight="")}onKeydown(e,t){const i=this.option("key");i&&i===t&&this.toggle()}toggle(){const e=this.ref;if(e&&!e.isDisabled())return e.state===_e.Hidden?(e.state=_e.Init,void e.build()):void(this.hidden?this.show():this.hide())}show(){const e=this.ref;if(!e||e.isDisabled())return;const t=e.container;t&&(this.refresh(),t.offsetHeight,t.removeAttribute(Ue),t.classList.remove(Ge),this.hidden=!1)}hide(){const e=this.ref,t=e&&e.container;t&&(this.refresh(),t.offsetHeight,t.classList.add(Ge),t.setAttribute(Ue,"true")),this.hidden=!0}refresh(){const e=this.ref;if(!e||!e.state)return;const t=e.container,i=(null==t?void 0:t.firstChild)||null;t&&i&&i.childNodes.length&&(t.style.maxHeight=`${i.getBoundingClientRect().height}px`)}attach(){const e=this,t=e.instance;t.state===ce.Init?t.on("Carousel.init",e.onInit):e.onInit(),t.on("resize",e.onResize),t.on("keydown",e.onKeydown)}detach(){var e;const t=this,i=t.instance;i.off("Carousel.init",t.onInit),i.off("resize",t.onResize),i.off("keydown",t.onKeydown),null===(e=i.carousel)||void 0===e||e.detachPlugins(["Thumbs"]),t.ref=null}}Object.defineProperty(qe,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:We});const Xe={panLeft:{icon:'<svg><path d="M5 12h14M5 12l6 6M5 12l6-6"/></svg>',change:{panX:-100}},panRight:{icon:'<svg><path d="M5 12h14M13 18l6-6M13 6l6 6"/></svg>',change:{panX:100}},panUp:{icon:'<svg><path d="M12 5v14M18 11l-6-6M6 11l6-6"/></svg>',change:{panY:-100}},panDown:{icon:'<svg><path d="M12 5v14M18 13l-6 6M6 13l6 6"/></svg>',change:{panY:100}},zoomIn:{icon:'<svg><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M11 8v6M8 11h6"/></svg>',action:"zoomIn"},zoomOut:{icon:'<svg><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg>',action:"zoomOut"},toggle1to1:{icon:'<svg><path d="M3.51 3.07c5.74.02 11.48-.02 17.22.02 1.37.1 2.34 1.64 2.18 3.13 0 4.08.02 8.16 0 12.23-.1 1.54-1.47 2.64-2.79 2.46-5.61-.01-11.24.02-16.86-.01-1.36-.12-2.33-1.65-2.17-3.14 0-4.07-.02-8.16 0-12.23.1-1.36 1.22-2.48 2.42-2.46Z"/><path d="M5.65 8.54h1.49v6.92m8.94-6.92h1.49v6.92M11.5 9.4v.02m0 5.18v0"/></svg>',action:"toggleZoom"},toggleZoom:{icon:'<svg><g><line x1="11" y1="8" x2="11" y2="14"></line></g><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg>',action:"toggleZoom"},iterateZoom:{icon:'<svg><g><line x1="11" y1="8" x2="11" y2="14"></line></g><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg>',action:"iterateZoom"},rotateCCW:{icon:'<svg><path d="M15 4.55a8 8 0 0 0-6 14.9M9 15v5H4M18.37 7.16v.01M13 19.94v.01M16.84 18.37v.01M19.37 15.1v.01M19.94 11v.01"/></svg>',action:"rotateCCW"},rotateCW:{icon:'<svg><path d="M9 4.55a8 8 0 0 1 6 14.9M15 15v5h5M5.63 7.16v.01M4.06 11v.01M4.63 15.1v.01M7.16 18.37v.01M11 19.94v.01"/></svg>',action:"rotateCW"},flipX:{icon:'<svg style="stroke-width: 1.3"><path d="M12 3v18M16 7v10h5L16 7M8 7v10H3L8 7"/></svg>',action:"flipX"},flipY:{icon:'<svg style="stroke-width: 1.3"><path d="M3 12h18M7 16h10L7 21v-5M7 8h10L7 3v5"/></svg>',action:"flipY"},fitX:{icon:'<svg><path d="M4 12V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v6M10 18H3M21 18h-7M6 15l-3 3 3 3M18 15l3 3-3 3"/></svg>',action:"fitX"},fitY:{icon:'<svg><path d="M12 20H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h6M18 14v7M18 3v7M15 18l3 3 3-3M15 6l3-3 3 3"/></svg>',action:"fitY"},reset:{icon:'<svg><path d="M20 11A8.1 8.1 0 0 0 4.5 9M4 5v4h4M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"/></svg>',action:"reset"},toggleFS:{icon:'<svg><g><path d="M14.5 9.5 21 3m0 0h-6m6 0v6M3 21l6.5-6.5M3 21v-6m0 6h6"/></g><g><path d="m14 10 7-7m-7 7h6m-6 0V4M3 21l7-7m0 0v6m0-6H4"/></g></svg>',action:"toggleFS"}};var Ye;!function(e){e[e.Init=0]="Init",e[e.Ready=1]="Ready",e[e.Disabled=2]="Disabled"}(Ye||(Ye={}));const Ze={tabindex:"-1",width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Je="has-toolbar",Ke="fancybox__toolbar";class Qe extends W{constructor(){super(...arguments),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:Ye.Init}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null})}onReady(e){var t;if(!e.carousel)return;let i=this.option("display"),n=this.option("absolute"),s=this.option("enabled");if("auto"===s){const e=this.instance.carousel;let t=0;if(e)for(const i of e.slides)(i.panzoom||"image"===i.type)&&t++;t||(s=!1)}s||(i=void 0);let o=0;const r={left:[],middle:[],right:[]};if(i)for(const e of["left","middle","right"])for(const n of i[e]){const i=this.createEl(n);i&&(null===(t=r[e])||void 0===t||t.push(i),o++)}let a=null;if(o&&(a=this.createContainer()),a){for(const[e,t]of Object.entries(r)){const i=document.createElement("div");A(i,Ke+"__column is-"+e);for(const e of t)i.appendChild(e);"auto"!==n||"middle"!==e||t.length||(n=!0),a.appendChild(i)}!0===n&&A(a,"is-absolute"),this.state=Ye.Ready,this.onRefresh()}else this.state=Ye.Disabled}onClick(e){var t,i;const n=this.instance,s=n.getSlide(),o=null==s?void 0:s.panzoom,r=e.target,a=r&&P(r)?r.dataset:null;if(!a)return;if(void 0!==a.fancyboxToggleThumbs)return e.preventDefault(),e.stopPropagation(),void(null===(t=n.plugins.Thumbs)||void 0===t||t.toggle());if(void 0!==a.fancyboxToggleFullscreen)return e.preventDefault(),e.stopPropagation(),void this.instance.toggleFullscreen();if(void 0!==a.fancyboxToggleSlideshow){e.preventDefault(),e.stopPropagation();const t=null===(i=n.carousel)||void 0===i?void 0:i.plugins.Autoplay;let s=t.isActive;return o&&"mousemove"===o.panMode&&!s&&o.reset(),void(s?t.stop():t.start())}const l=a.panzoomAction,c=a.panzoomChange;if((c||l)&&(e.preventDefault(),e.stopPropagation()),c){let t={};try{t=JSON.parse(c)}catch(e){}o&&o.applyChange(t)}else l&&o&&o[l]&&o[l]()}onChange(){this.onRefresh()}onRefresh(){if(this.instance.isClosing())return;const e=this.container;if(!e)return;const t=this.instance.getSlide();if(!t||t.state!==de.Ready)return;const i=t&&!t.error&&t.panzoom;for(const t of e.querySelectorAll("[data-panzoom-action]"))i?(t.removeAttribute("disabled"),t.removeAttribute("tabindex")):(t.setAttribute("disabled",""),t.setAttribute("tabindex","-1"));let n=i&&i.canZoomIn(),s=i&&i.canZoomOut();for(const t of e.querySelectorAll('[data-panzoom-action="zoomIn"]'))n?(t.removeAttribute("disabled"),t.removeAttribute("tabindex")):(t.setAttribute("disabled",""),t.setAttribute("tabindex","-1"));for(const t of e.querySelectorAll('[data-panzoom-action="zoomOut"]'))s?(t.removeAttribute("disabled"),t.removeAttribute("tabindex")):(t.setAttribute("disabled",""),t.setAttribute("tabindex","-1"));for(const t of e.querySelectorAll('[data-panzoom-action="toggleZoom"],[data-panzoom-action="iterateZoom"]')){s||n?(t.removeAttribute("disabled"),t.removeAttribute("tabindex")):(t.setAttribute("disabled",""),t.setAttribute("tabindex","-1"));const e=t.querySelector("g");e&&(e.style.display=n?"":"none")}}onDone(e,t){var i;null===(i=t.panzoom)||void 0===i||i.on("afterTransform",(()=>{this.instance.isCurrentSlide(t)&&this.onRefresh()})),this.instance.isCurrentSlide(t)&&this.onRefresh()}createContainer(){const e=this.instance.container;if(!e)return null;const t=this.option("parentEl")||e;let i=t.querySelector("."+Ke);return i||(i=document.createElement("div"),A(i,Ke),t.prepend(i)),i.addEventListener("click",this.onClick,{passive:!1,capture:!0}),e&&A(e,Je),this.container=i,i}createEl(e){const t=this.instance,i=t.carousel;if(!i)return null;if("toggleFS"===e)return null;if("fullscreen"===e&&!ae())return null;let n=null;const s=i.slides.length||0;let o=0,r=0;for(const e of i.slides)(e.panzoom||"image"===e.type)&&o++,("image"===e.type||e.downloadSrc)&&r++;if(s<2&&["infobar","prev","next"].includes(e))return n;if(void 0!==Xe[e]&&!o)return null;if("download"===e&&!r)return null;if("thumbs"===e){const e=t.plugins.Thumbs;if(!e||!e.isEnabled)return null}if("slideshow"===e&&(!i.plugins.Autoplay||s<2))return null;if(void 0!==Xe[e]){const t=Xe[e];n=document.createElement("button"),n.setAttribute("title",this.instance.localize(`{{${e.toUpperCase()}}}`)),A(n,"f-button"),t.action&&(n.dataset.panzoomAction=t.action),t.change&&(n.dataset.panzoomChange=JSON.stringify(t.change)),n.appendChild(l(this.instance.localize(t.icon)))}else{const t=(this.option("items")||[])[e];t&&(n=l(this.instance.localize(t.tpl)),"function"==typeof t.click&&n.addEventListener("click",(e=>{e.preventDefault(),e.stopPropagation(),"function"==typeof t.click&&t.click.call(this,this,e)})))}const a=null==n?void 0:n.querySelector("svg");if(a)for(const[e,t]of Object.entries(Ze))a.getAttribute(e)||a.setAttribute(e,String(t));return n}removeContainer(){const e=this.container;e&&e.remove(),this.container=null,this.state=Ye.Disabled;const t=this.instance.container;t&&O(t,Je)}attach(){const e=this,t=e.instance;t.on("Carousel.initSlides",e.onReady),t.on("done",e.onDone),t.on(["reveal","Carousel.change"],e.onChange),e.onReady(e.instance)}detach(){const e=this,t=e.instance;t.off("Carousel.initSlides",e.onReady),t.off("done",e.onDone),t.off(["reveal","Carousel.change"],e.onChange),e.removeContainer()}}Object.defineProperty(Qe,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{absolute:"auto",display:{left:["infobar"],middle:[],right:["iterateZoom","slideshow","fullscreen","thumbs","close"]},enabled:"auto",items:{infobar:{tpl:'<div class="fancybox__infobar" tabindex="-1"><span data-fancybox-current-index></span>/<span data-fancybox-count></span></div>'},download:{tpl:'<a class="f-button" title="{{DOWNLOAD}}" data-fancybox-download href="javasript:;"><svg><path d="M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2M7 11l5 5 5-5M12 4v12"/></svg></a>'},prev:{tpl:'<button class="f-button" title="{{PREV}}" data-fancybox-prev><svg><path d="m15 6-6 6 6 6"/></svg></button>'},next:{tpl:'<button class="f-button" title="{{NEXT}}" data-fancybox-next><svg><path d="m9 6 6 6-6 6"/></svg></button>'},slideshow:{tpl:'<button class="f-button" title="{{TOGGLE_SLIDESHOW}}" data-fancybox-toggle-slideshow><svg><g><path d="M8 4v16l13 -8z"></path></g><g>
1<path d="M8 4v15M17 4v15"/></g></svg></button>'},fullscreen:{tpl:'<button class="f-button" title="{{TOGGLE_FULLSCREEN}}" data-fancybox-toggle-fullscreen><svg><g><path d="M4 8V6a2 2 0 0 1 2-2h2M4 16v2a2 2 0 0 0 2 2h2M16 4h2a2 2 0 0 1 2 2v2M16 20h2a2 2 0 0 0 2-2v-2"/></g><g><path d="M15 19v-2a2 2 0 0 1 2-2h2M15 5v2a2 2 0 0 0 2 2h2M5 15h2a2 2 0 0 1 2 2v2M5 9h2a2 2 0 0 0 2-2V5"/></g></svg></button>'},thumbs:{tpl:'<button class="f-button" title="{{TOGGLE_THUMBS}}" data-fancybox-toggle-thumbs><svg><circle cx="5.5" cy="5.5" r="1"/><circle cx="12" cy="5.5" r="1"/><circle cx="18.5" cy="5.5" r="1"/><circle cx="5.5" cy="12" r="1"/><circle cx="12" cy="12" r="1"/><circle cx="18.5" cy="12" r="1"/><circle cx="5.5" cy="18.5" r="1"/><circle cx="12" cy="18.5" r="1"/><circle cx="18.5" cy="18.5" r="1"/></svg></button>'},close:{tpl:'<button class="f-button" title="{{CLOSE}}" data-fancybox-close><svg><path d="m19.5 4.5-15 15M4.5 4.5l15 15"/></svg></button>'}},parentEl:null}});const et={Hash:class extends W{onReady(){he=!1}onChange(e){pe&&clearTimeout(pe);const{hash:t}=me(),{hash:i}=ge(),n=e.isOpeningSlide(e.getSlide());n&&(ue=i===t?"":i),t&&t!==i&&(pe=setTimeout((()=>{try{if(e.state===ce.Ready){let e="replaceState";n&&!fe&&(e="pushState",fe=!0),window.history[e]({},document.title,window.location.pathname+window.location.search+t)}}catch(e){}}),300))}onClose(e){if(pe&&clearTimeout(pe),!he&&fe)return fe=!1,he=!1,void window.history.back();if(!he)try{window.history.replaceState({},document.title,window.location.pathname+window.location.search+(ue||""))}catch(e){}}attach(){const e=this.instance;e.on("ready",this.onReady),e.on(["Carousel.ready","Carousel.change"],this.onChange),e.on("close",this.onClose)}detach(){const e=this.instance;e.off("ready",this.onReady),e.off(["Carousel.ready","Carousel.change"],this.onChange),e.off("close",this.onClose)}static parseURL(){return ge()}static startFromUrl(){ve()}static destroy(){window.removeEventListener("hashchange",ye,!1)}},Html:Ie,Images:xe,Slideshow:Re,Thumbs:qe,Toolbar:Qe},tt="with-fancybox",it="hide-scrollbar",nt="--fancybox-scrollbar-compensate",st="--fancybox-body-margin",ot="aria-hidden",rt="is-using-tab",at="is-animated",lt="is-compact",ct="is-loading",dt="is-opening",ut="has-caption",ht="disabled",ft="tabindex",pt="download",mt="href",gt="src",vt=e=>"string"==typeof e,bt=function(){var e=window.getSelection();return!!e&&"Range"===e.type};let yt,wt=null,St=null,xt=0,Et=0,Tt=0,Mt=0;const Ct=new Map;let Pt=0;class Ot extends w{get isIdle(){return this.idle}get isCompact(){return this.option("compact")}constructor(e=[],t={},i={}){super(t),Object.defineProperty(this,"userSlides",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"userPlugins",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"idle",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"idleTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"clickTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"pwt",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"ignoreFocusChange",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"startedFs",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:ce.Init}),Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"footer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"carousel",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"lastFocus",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"prevMouseMoveEvent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),yt||(yt=ae()),this.id=t.id||++Pt,Ct.set(this.id,this),this.userSlides=e,this.userPlugins=i,queueMicrotask((()=>{this.init()}))}init(){if(this.state===ce.Destroy)return;this.state=ce.Init,this.attachPlugins(Object.assign(Object.assign({}
vendor: 8,972 bytes, line 1
1,Ot.Plugins),this.userPlugins)),this.emit("init"),this.emit("attachPlugins"),!0===this.option("hideScrollbar")&&(()=>{if(!ne)return;const e=document,t=e.body,i=e.documentElement;if(t.classList.contains(it))return;let n=window.innerWidth-i.getBoundingClientRect().width;const s=parseFloat(window.getComputedStyle(t).marginRight);n<0&&(n=0),i.style.setProperty(nt,`${n}px`),s&&t.style.setProperty(st,`${s}px`),t.classList.add(it)})(),this.initLayout(),this.scale();const e=()=>{this.initCarousel(this.userSlides),this.state=ce.Ready,this.attachEvents(),this.emit("ready"),setTimeout((()=>{this.container&&this.container.setAttribute(ot,"false")}),16)};this.option("Fullscreen.autoStart")&&yt&&!yt.isFullscreen()?yt.request().then((()=>{this.startedFs=!0,e()})).catch((()=>e())):e()}initLayout(){var e,t;const i=this.option("parentEl")||document.body,n=l(this.localize(this.option("tpl.main")||""));if(n){if(n.setAttribute("id",`fancybox-${this.id}`),n.setAttribute("aria-label",this.localize("{{MODAL}}")),n.classList.toggle(lt,this.isCompact),A(n,this.option("mainClass")||""),A(n,dt),this.container=n,this.footer=n.querySelector(".fancybox__footer"),i.appendChild(n),A(document.documentElement,tt),wt&&St||(wt=document.createElement("span"),A(wt,"fancybox-focus-guard"),wt.setAttribute(ft,"0"),wt.setAttribute(ot,"true"),wt.setAttribute("aria-label","Focus guard"),St=wt.cloneNode(),null===(e=n.parentElement)||void 0===e||e.insertBefore(wt,n),null===(t=n.parentElement)||void 0===t||t.append(St)),n.addEventListener("mousedown",(e=>{xt=e.pageX,Et=e.pageY,O(n,rt)})),this.option("closeExisting"))for(const e of Ct.values())e.id!==this.id&&e.close();else this.option("animated")&&(A(n,at),setTimeout((()=>{this.isClosing()||O(n,at)}),350));this.emit("initLayout")}}initCarousel(e){const t=this.container;if(!t)return;const i=t.querySelector(".fancybox__carousel");if(!i)return;const n=this.carousel=new te(i,v({},{slides:e,transition:"fade",Panzoom:{lockAxis:this.option("dragToClose")?"xy":"x",infinite:!!this.option("dragToClose")&&"y"},Dots:!1,Navigation:{classes:{container:"fancybox__nav",button:"f-button",isNext:"is-next",isPrev:"is-prev"}},initialPage:this.option("startIndex"),l10n:this.option("l10n")},this.option("Carousel")||{}));n.on("*",((e,t,...i)=>{this.emit(`Carousel.${t}`,e,...i)})),n.on(["ready","change"],(()=>{this.manageCaption()})),this.on("Carousel.removeSlide",((e,t,i)=>{this.clearContent(i),i.state=void 0})),n.on("Panzoom.touchStart",(()=>{var e,t;this.isCompact||this.endIdle(),(null===(e=document.activeElement)||void 0===e?void 0:e.closest(".f-thumbs"))&&(null===(t=this.container)||void 0===t||t.focus())})),n.on("settle",(()=>{this.idleTimer||this.isCompact||!this.option("idle")||this.setIdle(),this.option("autoFocus")&&!this.isClosing&&this.checkFocus()})),this.option("dragToClose")&&(n.on("Panzoom.afterTransform",((e,t)=>{const i=this.getSlide();if(i&&r(i.el))return;const n=this.container;if(n){const e=Math.abs(t.current.f),i=e<1?"":Math.max(.5,Math.min(1,1-e/t.contentRect.fitHeight*1.5));n.style.setProperty("--fancybox-ts",i?"0s":""),n.style.setProperty("--fancybox-opacity",i+"")}})),n.on("Panzoom.touchEnd",((e,t,i)=>{var n;const s=this.getSlide();if(s&&r(s.el))return;if(t.isMobile&&document.activeElement&&-1!==["TEXTAREA","INPUT"].indexOf(null===(n=document.activeElement)||void 0===n?void 0:n.nodeName))return;const o=Math.abs(t.dragOffset.y);"y"===t.lockedAxis&&(o>=200||o>=50&&t.dragOffset.time<300)&&(i&&i.cancelable&&i.preventDefault(),this.close(i,"f-throwOut"+(t.current.f<0?"Up":"Down")))}))),n.on("change",(e=>{var t;let i=null===(t=this.getSlide())||void 0===t?void 0:t.triggerEl;if(i){const t=new CustomEvent("slideTo",{bubbles:!0,cancelable:!0,detail:e.page});i.dispatchEvent(t)}})),n.on(["refresh","change"],(e=>{const t=this.container;if(!t)return;for(const i of t.querySelectorAll("[data-fancybox-current-index]"))i.innerHTML=e.page+1;for(const i of t.querySelectorAll("[data-fancybox-count]"))i.innerHTML=e.pages.length;if(!e.isInfinite){for(const i of t.querySelectorAll("[data-fancybox-next]"))e.page<e.pages.length-1?(i.removeAttribute(ht),i.removeAttribute(ft)):(i.setAttribute(ht,""),i.setAttribute(ft,"-1"));for(const i of t.querySelectorAll("[data-fancybox-prev]"))e.page>0?(i.removeAttribute(ht),i.removeAttribute(ft)):(i.setAttribute(ht,""),i.setAttribute(ft,"-1"))}const i=this.getSlide();if(!i)return;let n=i.downloadSrc||"";n||"image"!==i.type||i.error||!vt(i[gt])||(n=i[gt]);for(const e of t.querySelectorAll("[data-fancybox-download]")){const t=i.downloadFilename;n?(e.removeAttribute(ht),e.removeAttribute(ft),e.setAttribute(mt,n),e.setAttribute(pt,t||n),e.setAttribute("target","_blank")):(e.setAttribute(ht,""),e.setAttribute(ft,"-1"),e.removeAttribute(mt),e.removeAttribute(pt))}})),this.emit("initCarousel")}attachEvents(){const e=this,t=e.container;if(!t)return;t.addEventListener("click",e.onClick,{passive:!1,capture:!1}),t.addEventListener("wheel",e.onWheel,{passive:!1,capture:!1}),document.addEventListener("keydown",e.onKeydown,{passive:!1,capture:!0}),document.addEventListener("visibilitychange",e.onVisibilityChange,!1),document.addEventListener("mousemove",e.onMousemove),e.option("trapFocus")&&document.addEventListener("focus",e.onFocus,!0),window.addEventListener("resize",e.onResize);const i=window.visualViewport;i&&(i.addEventListener("scroll",e.onResize),i.addEventListener("resize",e.onResize))}detachEvents(){const e=this,t=e.container;if(!t)return;document.removeEventListener("keydown",e.onKeydown,{passive:!1,capture:!0}),t.removeEventListener("wheel",e.onWheel,{passive:!1,capture:!1}),t.removeEventListener("click",e.onClick,{passive:!1,capture:!1}),document.removeEventListener("mousemove",e.onMousemove),window.removeEventListener("resize",e.onResize);const i=window.visualViewport;i&&(i.removeEventListener("resize",e.onResize),i.removeEventListener("scroll",e.onResize)),document.removeEventListener("visibilitychange",e.onVisibilityChange,!1),document.removeEventListener("focus",e.onFocus,!0)}scale(){const e=this.container;if(!e)return;const t=window.visualViewport,i=Math.max(1,(null==t?void 0:t.scale)||1);let n="",s="",o="";if(t&&i>1){let e=`${t.offsetLeft}px`,r=`${t.offsetTop}px`;n=t.width*i+"px",s=t.height*i+"px",o=`translate3d(${e}, ${r}, 0) scale(${1/i})`}e.style.transform=o,e.style.width=n,e.style.height=s}onClick(e){var t;const{container:i,isCompact:n}=this;if(!i||this.isClosing())return;!n&&this.option("idle")&&this.resetIdle();const s=e.composedPath()[0];if(s.closest(".fancybox-spinner")||s.closest("[data-fancybox-close]"))return e.preventDefault(),void this.close(e);if(s.closest("[data-fancybox-prev]"))return e.preventDefault(),void this.prev();if(s.closest("[data-fancybox-next]"))return e.preventDefault(),void this.next();if("click"===e.type&&0===e.detail)return;if(Math.abs(e.pageX-xt)>30||Math.abs(e.pageY-Et)>30)return;const o=document.activeElement;if(bt()&&o&&i.contains(o))return;if(n&&"image"===(null===(t=this.getSlide())||void 0===t?void 0:t.type))return void(this.clickTimer?(clearTimeout(this.clickTimer),this.clickTimer=null):this.clickTimer=setTimeout((()=>{this.toggleIdle(),this.clickTimer=null}),350));if(this.emit("click",e),e.defaultPrevented)return;let r=!1;if(s.closest(".fancybox__content")){if(o){if(o.closest("[contenteditable]"))return;s.matches(oe)||o.blur()}if(bt())return;r=this.option("contentClick")}else s.closest(".fancybox__carousel")&&!s.matches(oe)&&(r=this.option("backdropClick"));"close"===r?(e.preventDefault(),this.close(e)):"next"===r?(e.preventDefault(),this.next()):"prev"===r&&(e.preventDefault(),this.prev())}onWheel(e){const t=e.target;let i=this.option("wheel",e);t.closest(".fancybox__thumbs")&&(i="slide");const n="slide"===i,s=[-e.deltaX||0,-e.deltaY||0,-e.detail||0].reduce((function(e,t){return Math.abs(t)>Math.abs(e)?t:e})),o=Math.max(-1,Math.min(1,s)),r=Date.now();this.pwt&&r-this.pwt<300?n&&e.preventDefault():(this.pwt=r,this.emit("wheel",e,o),e.defaultPrevented||("close"===i?(e.preventDefault(),this.close(e)):"slide"===i&&(a(t)||(e.preventDefault(),this[o>0?"prev":"next"]()))))}onScroll(){window.scrollTo(Tt,Mt)}onKeydown(e){if(!this.isTopmost())return;this.isCompact||!this.option("idle")||this.isClosing()||this.resetIdle();const t=e.key,i=this.option("keyboard");if(!i)return;const n=e.composedPath()[0],s=document.activeElement&&document.activeElement.classList,o=s&&s.contains("f-button")||n.dataset.carouselPage||n.dataset.carouselIndex;if("Escape"!==t&&!o&&P(n)&&(n.isContentEditable||-1!==["TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].indexOf(n.nodeName)))return;if("Tab"===e.key?A(this.container,rt):O(this.container,rt),e.ctrlKey||e.altKey||e.shiftKey)return;this.emit("keydown",t,e);const r=i[t];r&&"function"==typeof this[r]&&(e.preventDefault(),this[r]())}onResize(){const e=this.container;if(!e)return;const t=this.isCompact;e.classList.toggle(lt,t),this.manageCaption(this.getSlide()),this.isCompact?this.clearIdle():this.endIdle(),this.scale(),this.emit
vendor: 4,430 bytes, line 1
1("resize")}onFocus(e){this.isTopmost()&&this.checkFocus(e)}onMousemove(e){this.prevMouseMoveEvent=e,!this.isCompact&&this.option("idle")&&this.resetIdle()}onVisibilityChange(){"visible"===document.visibilityState?this.checkFocus():this.endIdle()}manageCloseBtn(e){const t=this.optionFor(e,"closeButton")||!1;if("auto"===t){const e=this.plugins.Toolbar;if(e&&e.state===Ye.Ready)return}if(!t)return;if(!e.contentEl||e.closeBtnEl)return;const i=this.option("tpl.closeButton");if(i){const t=l(this.localize(i));e.closeBtnEl=e.contentEl.appendChild(t),e.el&&A(e.el,"has-close-btn")}}manageCaption(e=void 0){var t,i;const n="fancybox__caption",s=this.container;if(!s)return;O(s,ut);const o=this.isCompact||this.option("commonCaption"),r=!o;if(this.caption&&this.stop(this.caption),r&&this.caption&&(this.caption.remove(),this.caption=null),o&&!this.caption)for(const e of(null===(t=this.carousel)||void 0===t?void 0:t.slides)||[])e.captionEl&&(e.captionEl.remove(),e.captionEl=void 0,O(e.el,ut),null===(i=e.el)||void 0===i||i.removeAttribute("aria-labelledby"));if(e||(e=this.getSlide()),!e||o&&!this.isCurrentSlide(e))return;const a=e.el;let l=this.optionFor(e,"caption","");if(!l)return void(o&&this.caption&&this.animate(this.caption,"f-fadeOut",(()=>{this.caption&&(this.caption.innerHTML="")})));let c=null;if(r){if(c=e.captionEl||null,a&&!c){const t=n+`_${this.id}_${e.index}`;c=document.createElement("div"),A(c,n),c.setAttribute("id",t),e.captionEl=a.appendChild(c),A(a,ut),a.setAttribute("aria-labelledby",t)}}else c=this.caption,c||(c=s.querySelector("."+n)),c||(c=document.createElement("div"),c.dataset.fancyboxCaption="",A(c,n),(this.footer||s).prepend(c)),A(s,ut),this.caption=c;c&&(c.innerHTML="",vt(l)||"number"==typeof l?c.innerHTML=l+"":l instanceof HTMLElement&&c.appendChild(l))}checkFocus(e){this.focus(e)}focus(e){var t;if(this.ignoreFocusChange)return;const i=document.activeElement||null,n=(null==e?void 0:e.target)||null,s=this.container,o=null===(t=this.carousel)||void 0===t?void 0:t.viewport;if(!s||!o)return;if(!e&&i&&s.contains(i))return;const r=this.getSlide(),a=r&&r.state===de.Ready?r.el:null;if(!a||a.contains(i)||s===i)return;e&&e.cancelable&&e.preventDefault(),this.ignoreFocusChange=!0;const l=Array.from(s.querySelectorAll(oe));let c=[],d=null;for(let e of l){const t=!e.offsetParent||!!e.closest('[aria-hidden="true"]'),i=a&&a.contains(e),n=!o.contains(e);if(e===s||(i||n)&&!t){c.push(e);const t=e.dataset.origTabindex;void 0!==t&&t&&(e.tabIndex=parseFloat(t)),e.removeAttribute("data-orig-tabindex"),!e.hasAttribute("autoFocus")&&d||(d=e)}else{const t=void 0===e.dataset.origTabindex?e.getAttribute("tabindex")||"":e.dataset.origTabindex;t&&(e.dataset.origTabindex=t),e.tabIndex=-1}}let u=null;e?(!n||c.indexOf(n)<0)&&(u=d||s,c.length&&(i===St?u=c[0]:this.lastFocus!==s&&i!==wt||(u=c[c.length-1]))):u=r&&"image"===r.type?s:d||s,u&&re(u),this.lastFocus=document.activeElement,this.ignoreFocusChange=!1}next(){const e=this.carousel;e&&e.pages.length>1&&e.slideNext()}prev(){const e=this.carousel;e&&e.pages.length>1&&e.slidePrev()}jumpTo(...e){this.carousel&&this.carousel.slideTo(...e)}isTopmost(){var e;return(null===(e=Ot.getInstance())||void 0===e?void 0:e.id)==this.id}animate(e=null,t="",i){if(!e||!t)return void(i&&i());this.stop(e);const n=s=>{s.target===e&&e.dataset.animationName&&(e.removeEventListener("animationend",n),delete e.dataset.animationName,i&&i(),O(e,t))};e.dataset.animationName=t,e.addEventListener("animationend",n),A(e,t)}stop(e){e&&e.dispatchEvent(new CustomEvent("animationend",{bubbles:!1,cancelable:!0,currentTarget:e}))}setContent(e,t="",i=!0){if(this.isClosing())return;const n=e.el;if(!n)return;let s=null;if(P(t)?s=t:(s=l(t+""),P(s)||(s=document.createElement("div"),s.innerHTML=t+"")),["img","picture","iframe","video","audio"].includes(s.nodeName.toLowerCase())){const e=document.createElement("div");e.appendChild(s),s=e}P(s)&&e.filter&&!e.error&&(s=s.querySelector(e.filter)),s&&P(s)?(A(s,"fancybox__content"),e.id&&s.setAttribute("id",e.id),n.classList.add(`has-${e.error?"error":e.type||"unknown"}`),n.prepend(s),"none"===s.style.display&&(s.style.display=""),"none"===getComputedStyle(s).getPropertyValue("display")&&(s.style.display=e.display||this.option("defaultDisplay")||"flex"),e.contentEl=s,i&&this.revealContent(e),this.manageCloseBtn(e),this.manageCaption(e)):this.setError(e,"{{ELEMENT_NOT_FOUND}}")}revealContent(e,t){const i=e.el,n=e.contentEl;
vendor: 6,800 bytes, line 1
1i&&n&&(this.emit("reveal",e),this.hideLoading(e),e.state=de.Opening,(t=this.isOpeningSlide(e)?void 0===t?this.optionFor(e,"showClass"):t:"f-fadeIn")?this.animate(n,t,(()=>{this.done(e)})):this.done(e))}done(e){this.isClosing()||(e.state=de.Ready,this.emit("done",e),A(e.el,"is-done"),this.isCurrentSlide(e)&&this.option("autoFocus")&&queueMicrotask((()=>{var t;null===(t=e.panzoom)||void 0===t||t.updateControls(),this.option("autoFocus")&&this.focus()})),this.isOpeningSlide(e)&&(O(this.container,dt),!this.isCompact&&this.option("idle")&&this.setIdle()))}isCurrentSlide(e){const t=this.getSlide();return!(!e||!t)&&t.index===e.index}isOpeningSlide(e){var t,i;return null===(null===(t=this.carousel)||void 0===t?void 0:t.prevPage)&&e&&e.index===(null===(i=this.getSlide())||void 0===i?void 0:i.index)}showLoading(e){e.state=de.Loading;const t=e.el;t&&(A(t,ct),this.emit("loading",e),e.spinnerEl||setTimeout((()=>{if(!this.isClosing()&&!e.spinnerEl&&e.state===de.Loading){let i=l(C);A(i,"fancybox-spinner"),e.spinnerEl=i,t.prepend(i),this.animate(i,"f-fadeIn")}}),250))}hideLoading(e){const t=e.el;if(!t)return;const i=e.spinnerEl;this.isClosing()?null==i||i.remove():(O(t,ct),i&&this.animate(i,"f-fadeOut",(()=>{i.remove()})),e.state===de.Loading&&(this.emit("loaded",e),e.state=de.Ready))}setError(e,t){if(this.isClosing())return;const i=new Event("error",{bubbles:!0,cancelable:!0});if(this.emit("error",i,e),i.defaultPrevented)return;e.error=t,this.hideLoading(e),this.clearContent(e);const n=document.createElement("div");n.classList.add("fancybox-error"),n.innerHTML=this.localize(t||"<p>{{ERROR}}</p>"),this.setContent(e,n)}clearContent(e){if(void 0===e.state)return;this.emit("clearContent",e),e.contentEl&&(e.contentEl.remove(),e.contentEl=void 0);const t=e.el;t&&(O(t,"has-error"),O(t,"has-unknown"),O(t,`has-${e.type||"unknown"}`)),e.closeBtnEl&&e.closeBtnEl.remove(),e.closeBtnEl=void 0,e.captionEl&&e.captionEl.remove(),e.captionEl=void 0,e.spinnerEl&&e.spinnerEl.remove(),e.spinnerEl=void 0}getSlide(){var e;const t=this.carousel;return(null===(e=null==t?void 0:t.pages[null==t?void 0:t.page])||void 0===e?void 0:e.slides[0])||void 0}close(e,t){if(this.isClosing())return;const i=new Event("shouldClose",{bubbles:!0,cancelable:!0});if(this.emit("shouldClose",i,e),i.defaultPrevented)return;e&&e.cancelable&&(e.preventDefault(),e.stopPropagation());const n=()=>{this.proceedClose(e,t)};this.startedFs&&yt&&yt.isFullscreen()?Promise.resolve(yt.exit()).then((()=>n())):n()}clearIdle(){this.idleTimer&&clearTimeout(this.idleTimer),this.idleTimer=null}setIdle(e=!1){const t=()=>{this.clearIdle(),this.idle=!0,A(this.container,"is-idle"),this.emit("setIdle")};if(this.clearIdle(),!this.isClosing())if(e)t();else{const e=this.option("idle");e&&(this.idleTimer=setTimeout(t,e))}}endIdle(){this.clearIdle(),this.idle&&!this.isClosing()&&(this.idle=!1,O(this.container,"is-idle"),this.emit("endIdle"))}resetIdle(){this.endIdle(),this.setIdle()}toggleIdle(){this.idle?this.endIdle():this.setIdle(!0)}toggleFullscreen(){yt&&(yt.isFullscreen()?yt.exit():yt.request().then((()=>{this.startedFs=!0})))}isClosing(){return[ce.Closing,ce.CustomClosing,ce.Destroy].includes(this.state)}proceedClose(e,t){var i,n;this.state=ce.Closing,this.clearIdle(),this.detachEvents();const s=this.container,o=this.carousel,r=this.getSlide(),a=r&&this.option("placeFocusBack")?r.triggerEl||this.option("triggerEl"):null;if(a&&(ie(a)?re(a):a.focus()),s&&(O(s,dt),A(s,"is-closing"),s.setAttribute(ot,"true"),this.option("animated")&&A(s,at),s.style.pointerEvents="none"),o){o.clearTransitions(),null===(i=o.panzoom)||void 0===i||i.destroy(),null===(n=o.plugins.Navigation)||void 0===n||n.detach();for(const e of o.slides){e.state=de.Closing,this.hideLoading(e);const t=e.contentEl;t&&this.stop(t);const i=null==e?void 0:e.panzoom;i&&(i.stop(),i.detachEvents(),i.detachObserver()),this.isCurrentSlide(e)||o.emit("removeSlide",e)}}Tt=window.scrollX,Mt=window.scrollY,window.addEventListener("scroll",this.onScroll),this.emit("close",e),this.state!==ce.CustomClosing?(void 0===t&&r&&(t=this.optionFor(r,"hideClass")),t&&r?(this.animate(r.contentEl,t,(()=>{o&&o.emit("removeSlide",r)})),setTimeout((()=>{this.destroy()}),500)):this.destroy()):setTimeout((()=>{this.destroy()}),500)}destroy(){var e;if(this.state===ce.Destroy)return;window.removeEventListener("scroll",this.onScroll),this.state=ce.Destroy,null===(e=this.carousel)||void 0===e||e.destroy();const t=this.container;t&&t.remove(),Ct.delete(this.id);const i=Ot.getInstance();i?i.focus():(wt&&(wt.remove(),wt=null),St&&(St.remove(),St=null),O(document.documentElement,tt),(()=>{if(!ne)return;const e=document,t=e.body;t.classList.remove(it),t.style.setProperty(st,""),e.documentElement.style.setProperty(nt,"")})(),this.emit("destroy"))}static bind(e,t,i){if(!ne)return;let n,s="",o={};if(void 0===e?n=document.body:vt(e)?(n=document.body,s=e,"object"==typeof t&&(o=t||{})):(n=e,vt(t)&&(s=t),"object"==typeof i&&(o=i||{})),!n||!P(n))return;s=s||"[data-fancybox]";const r=Ot.openers.get(n)||new Map;r.set(s,o),Ot.openers.set(n,r),1===r.size&&n.addEventListener("click",Ot.fromEvent)}static unbind(e,t){let i,n="";if(vt(e)?(i=document.body,n=e):(i=e,vt(t)&&(n=t)),!i)return;const s=Ot.openers.get(i);s&&n&&s.delete(n),n&&s||(Ot.openers.delete(i),i.removeEventListener("click",Ot.fromEvent))}static destroy(){let e;for(;e=Ot.getInstance();)e.destroy();for(const e of Ot.openers.keys())e.removeEventListener("click",Ot.fromEvent);Ot.openers=new Map}static fromEvent(e){if(e.defaultPrevented)return;if(e.button&&0!==e.button)return;if(e.ctrlKey||e.metaKey||e.shiftKey)return;let t=e.composedPath()[0];const i=t.closest("[data-fancybox-trigger]");if(i){const e=i.dataset.fancyboxTrigger||"",n=document.querySelectorAll(`[data-fancybox="${e}"]`),s=parseInt(i.dataset.fancyboxIndex||"",10)||0;t=n[s]||t}if(!(t&&t instanceof Element))return;let n,s,o,r;if([...Ot.openers].reverse().find((([e,i])=>!(!e.contains(t)||![...i].reverse().find((([i,a])=>{let l=t.closest(i);return!!l&&(n=e,s=i,o=l,r=a,!0)}))))),!n||!s||!o)return;r=r||{},e.preventDefault(),t=o;let a=[],l=v({},le,r);l.event=e,l.triggerEl=t,l.delegate=i;const c=l.groupAll,d=l.groupAttr,u=d&&t?t.getAttribute(`${d}`):"";if((!t||u||c)&&(a=[].slice.call(n.querySelectorAll(s))),t&&!c&&(a=u?a.filter((e=>e.getAttribute(`${d}`)===u)):[t]),!a.length)return;const h=Ot.getInstance();return h&&h.options.triggerEl&&a.indexOf(h.options.triggerEl)>-1?void 0:(t&&(l.startIndex=a.indexOf(t)),Ot.fromNodes(a,l))}static fromSelector(e,t,i){let n=null,s="",o={};if(vt(e)?(n=document.body,s=e,"object"==typeof t&&(o=t||{})):e instanceof HTMLElement&&vt(t)&&(n=e,s=t,"object"==typeof i&&(o=i||{})),!n||!s)return!1;const r=Ot.openers.get(n);return!!r&&(o=v({},r.get(s)||{},o),!!o&&Ot.fromNodes(Array.from(n.querySelectorAll(s)),o))}
1static fromNodes(e,t){t=v({},le,t||{});const i=[];for(const n of e){const e=n.dataset||{},s=e[gt]||n.getAttribute(mt)||n.getAttribute("currentSrc")||n.getAttribute(gt)||void 0;let o;const r=t.delegate;let a;r&&i.length===t.startIndex&&(o=r instanceof HTMLImageElement?r:r.querySelector("img:not([aria-hidden])")),o||(o=n instanceof HTMLImageElement?n:n.querySelector("img:not([aria-hidden])")),o&&(a=o.currentSrc||o[gt]||void 0,!a&&o.dataset&&(a=o.dataset.lazySrc||o.dataset[gt]||void 0));const l={src:s,triggerEl:n,thumbEl:o,thumbElSrc:a,thumbSrc:a};for(const t in e){let i=e[t]+"";i="false"!==i&&("true"===i||i),l[t]=i}i.push(l)}return new Ot(i,t)}static getInstance(e){return e?Ct.get(e):Array.from(Ct.values()).reverse().find((e=>!e.isClosing()&&e))||null}static getSlide(){var e;return(null===(e=Ot.getInstance())||void 0===e?void 0:e.getSlide())||null}static show(e=[],t={}){return new Ot(e,t)}static next(){const e=Ot.getInstance();e&&e.next()}static prev(){const e=Ot.getInstance();e&&e.prev()}static close(e=!0,...t){if(e)for(const e of Ct.values())e.close(...t);else{const e=Ot.getInstance();e&&e.close(...t)}}}Object.defineProperty(Ot,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.0.36"}),Object.defineProperty(Ot,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:le}),Object.defineProperty(Ot,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:et}),Object.defineProperty(Ot,"openers",{enumerable:!0,configurable:!0,writable:!0,value:new Map});var At=i(2690);function kt(e){return kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kt(e)}function It(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Lt(n.key),n)}}function Lt(e){var t=function(e,t){if("object"!=kt(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=kt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==kt(t)?t:t+""}var Ft=function(){function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.inModal=!!i.trigger&&s.default.getModalParent(i.trigger),this.settings=i,this.slides=Array.isArray(t)?t:[t],this.fancybox=null,this.$focusElOnClose=null}return t=e,i=[{key:"show",value:function(){var e=this;return document.activeElement&&document.activeElement!==document.body&&(this.$focusElOnClose=(0,At.A)(document.activeElement)),this.fancybox=new Ot(this.slides,{parentEl:n.A.$app.get(0),init:!1,loop:!1,wheel:!1,Toolbar:!1,on:{init:function(){e.inModal&&e.inModal.lock()},loading:function(e,t){t.iframeEl&&(t.iframeEl.setAttribute("allow","autoplay;fullscreen;clipboard-write"),t.iframe_id&&t.iframeEl.setAttribute("id",t.iframe_id))},loaded:function(t,i){(0,At.A)(e.fancybox.container).find(".f-thumbs__viewport").on("wheel",(function(e){e.preventDefault(),e.stopPropagation()})),i.iframeEl&&e.settings.on&&e.settings.on.iframeLoaded&&e.settings.on.iframeLoaded(e,i.iframeEl,i)},ready:function(t){(0,At.A)(e.fancybox.container).css("z-index",n.A.nextZ()),e.settings.on&&e.settings.on.ready&&e.settings.on.ready(e,t)},reveal:function(){e.inModal&&(e.inModal.lock(),e.inModal.mask()),"undefined"!=typeof JonahWidget&&JonahWidget.mask(),setTimeout((function(){if(e.fancybox&&e.fancybox.container){var t=(0,At.A)(e.fancybox.container),i=t.find("[data-fancybox-close], .is-close-btn").filter(":visible").first(),n=i.length?i:t.find('button:not([disabled]), [tabindex]:not([tabindex="-1"]), a[href]').filter(":visible").first();n.length||(t.attr("tabindex","-1"),n=t),n.focus()}}),50)},close:function(){e.inModal&&e.inModal.mask(!1),"undefined"!=typeof JonahWidget&&JonahWidget.unmask()},destroy:function(){e.inModal&&e.inModal.lock(!1),"undefined"!=typeof JonahWidget&&JonahWidget.unmask();var t=e.$focusElOnClose;if(t&&t.length&&!t.is(":visible")){var i=t.closest('[data-jd-fp-selector="dropdown"], [role="menu"]');if(i.length&&i.attr("id")){var n=(0,At.A)('[aria-controls="'+i.attr("id")+'"]').filter(":visible").first();n.length&&(t=n)}}
1t&&t.length&&t.focus(),e.$focusElOnClose=null}}}),this.fancybox}},{key:"hide",value:function(){this.fancybox.close()}}],o=[{key:"open",value:function(t){return new e(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).show()}}],i&&It(t.prototype,i),o&&It(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,i,o}()},130:(e,t,i)=>{i.d(t,{E:()=>P,A:()=>A});var n=i(4692),s=i.n(n),o=i(6495),r=i(6826),a=i(2376);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,d(n.key),n)}}function d(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l(t)?t:t+""}function u(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function h(e,t,i){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:i;throw new TypeError("Private element is not present on this object")}var f=new WeakSet,p=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,f),this.booted=!1,this.config=t,this.units=[],this.matchingUnits=[],this.matchingUnitsForActiveFloor=[],this.visibleUnits=[],this.floors={},this.floorsSorted=[],this.internalIdIntersector=[],this.floorMap={},this.bootCallable=null,this.activeFloorId=null,this.explicitFloorSelectionOccured=!1,this.eventer=new o.A(["boot","show","floors-set","floor-change","floors-count-change","floors-show","floors-hide","unit-define","unit-filter","unit-establish","unit-visibility","unit-details-preload-request","unit-details-request","unit-hover-in","unit-hover-out","unit-mouse-move","unit-card-hover-in","unit-card-hover-out","active-availability-count-change"]),this.callables={allowFiltering:function(){return!1},unitBelongsToInstance:function(){return!0},unitBelongsToFloor:function(){return!1},unitNormalizer:function(e){return e},floorNormalizer:function(e){return e},defaultFloor:function(){return null},getUnitByInternalId:function(e){return null},nativeUI:function(){return[]},analyticsIdentifier:function(){return null},useNativeTooltip:function(){return!1}},r.A.pushDebug("map-service.boot",this)},t=[{key:"bootListeners",value:function(){var e=this;this.on("unit-define",(function(t){e.defineUnits(t),e.fire(["unit-establish","unit-filter"],[e.units])})),this.on("unit-filter",(function(t){e.setMatchingUnits(t),e.fire("unit-visibility",[e.getMatchingUnitsForActiveFloor()]),e.fire("floors-count-change",[e.floors]),e.fire("active-availability-count-change",[e.activeFloor().count])})),this.on("floor-change",(function(t){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&(e.explicitFloorSelectionOccured=!0),r.A.pushDebug("floor-change",{floor:t,native:i}),e.setActiveFloorFromId(t.id),e.fire("unit-visibility",[e.getMatchingUnitsForActiveFloor()]),e.fire("active-availability-count-change",[e.activeFloor().count])}))}},{key:"allowFiltering",value:function(){return this.callables.allowFiltering()}},{key:"unitBelongsToInstance",value:function(e){return this.callables.unitBelongsToInstance(e)}},{key:"unitBelongsToFloor",value:function(e,t){return this.floorNormalize(e).id===this.unitNormalize(t).floorId}},{key:"unitNormalize",value:function(e){return this.callables.unitNormalizer(e)}},{key:"floorNormalize",value:function(e){return this.callables.floorNormalizer(e)}},{key:"getUnitByInternalId",value:function(e){return this.callables.getUnitByInternalId(e)}},{key:"useNativeTooltip",value:function(){return this.callables.useNativeTooltip()}},{key:"analyticsIdentifier",value:function(){return this.callables.analyticsIdentifier()}},{key:"nativeUI",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?this.callables.nativeUI().indexOf(e)>-1:this.callables.nativeUI()}},{key:"defaultFloor",value:function(){var e=this.callables.defaultFloor();return e||(e=this.floorsSorted[0]),e}},{key:"floor",value:function(e){return this.floors[e]}},{key:"activeFloor",value:function(){return this.floor(this.activeFloorId)}},{key:"on",value:function(e,t){return this.eventer.on(e,t)}},{key:"done",value:function(e,t){return this.eventer.done(e,t)}},{key:"fire",value:function(e,t){return this.eventer.fire(e,t)}},{key:"boot",value:function(e){this.eventer.has("boot")&&!this.booted?(this.booted=!0,this.eventer.fire("boot",[e])):e&&e()}},{key:"defineUnits",value:function(e){return this.units=h(f,this,m).call(this,e),this.units.forEac
1h((function(e){e.__adaptivePricingListener=a.A.attachNewUnitListener(e.slug)})),r.A.pushDebug("map-service.unit-definition",{mapService:this,units:this.units}),this.defineFloorMap(this.units),this.resetActiveFloorToDefault(),this}},{key:"performUnitIntersectAgainstInternalIds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.internalIdIntersector=e;var i=[];if(r.A.debugMode&&(i=JSON.parse(JSON.stringify(this.units))),this.units=h(f,this,m).call(this,this.units),r.A.debugMode){var n=[],s=this.units.map((function(e){return e.id}));i.forEach((function(e){s.indexOf(e.id)<=-1&&n.push(e)})),r.A.pushDebug("map-service.unit-omission",{mapService:this,omittedUnits:n})}this.eventer.touched("unit-filter")&&(this.matchingUnits=h(f,this,m).call(this,this.matchingUnits),this.fire("unit-filter",[this.matchingUnits])),t&&t()}},{key:"defineFloorMap",value:function(e){var t=this;e.forEach((function(e){e=t.unitNormalize(e),t.floorMap[e.floorId]||(t.floorMap[e.floorId]=[]),t.floorMap[e.floorId].push(e.unitId),t.floors[e.floorId]&&++t.floors[e.floorId].count}))}},{key:"setMatchingUnits",value:function(e){var t=this;for(var i in this.matchingUnits=h(f,this,m).call(this,e),this.floorMap)this.floors[i]&&(this.floors[i].count=this.floorMap[i].filter((function(e){return t.matchingUnits.map((function(e){return t.unitNormalize(e).unitId})).includes(e)})).length)}},{key:"setVisibleUnits",value:function(e){return this.visibleUnits=e,this}},{key:"setActiveFloorFromId",value:function(e){this.activeFloorId=e}},{key:"resetActiveFloorToDefault",value:function(){this.setActiveFloorFromId(this.floorNormalize(this.defaultFloor()).id)}},{key:"defineCallable",value:function(e,t){return this.callables[e]&&(this.callables[e]=t),this}},{key:"defineFloors",value:function(e){var t=this;return Object.values(e).forEach((function(e){(e=t.floorNormalize(e)).id&&(t.floors[e.id]=e)})),Object.keys(this.floors).length&&(this.floorsSorted=Object.values(this.floors).sort((function(e,t){return e.sort<t.sort?-1:e.sort>t.sort?1:0}))),this.setActiveFloorFromId(this.floorNormalize(this.floorsSorted[0]).id),this.eventer.fireAndPropagate("floors-set",[this.floorsSorted,this.floors]),this}},{key:"getMatchingUnitsForFloor",value:function(e){var t=this;return this.matchingUnits.map((function(i){return t.unitBelongsToFloor(e,i)?i:null})).filter((function(e){return Boolean(e)}))}},{key:"getMatchingUnitsForActiveFloor",value:function(){return this.getMatchingUnitsForFloor(this.activeFloor())}},{key:"performNonAvailableFloorBehavior",value:function(e){if("next-with-availability"===e||"next-with-availability-before-explicit"===e&&!this.explicitFloorSelectionOccured){var t=this.getNextFloorWithAvailability();t&&this.fire("floor-change",[t,!0,!1])}}},{key:"getNextFloorWithAvailability",value:function(){var e=this.activeFloor();if(e&&0===e.count){var t=this.floorsSorted.indexOf(e),i=JSON.parse(JSON.stringify(this.floorsSorted)).map((function(e){return e.count})),n={index:null,count:0};if(i.forEach((function(e,i){var s=t-i;s=s<0?-1*s:s,e>0&&0!==s&&(null===n.index||s<n.stepsAway)&&(n={index:i,count:e,stepsAway:s})})),null!==n.index&&this.floorsSorted[n.index])return this.floorsSorted[n.index]}return!1}}],t&&c(e.prototype,t),i&&c(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,i}();function m(e){var t=this;return e.map((function(e){return t.unitBelongsToInstance(e)?t.internalIdIntersector.length?t.internalIdIntersector.indexOf(t.unitNormalize(e).unitId)>-1?e:null:e:null})).filter((function(e){return Boolean(e)}))}function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function v(e,t,i){return t=y(t),function(e,t){if(t&&("object"===g(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,b()?Reflect.construct(t,i||[],y(e).constructor):t.apply(e,i))}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(b=function(){return!!e})()}
1function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function w(e,t){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},w(e,t)}function S(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,C(n.key),n)}}function T(e,t,i){return t&&E(e.prototype,t),i&&E(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function M(e,t,i){return(t=C(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function C(e){var t=function(e,t){if("object"!=g(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=g(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==g(t)?t:t+""}var P=function(){function e(t){var i=this;x(this,e),this.embed=null,this.isReady=!1,this.eventer=new o.A(["ready"]),e.load((function(e){i.embed=new e.Embed(t),i.embed.getFloor((function(e){i.isReady||void 0===e||(r.A.pushDebug("sightmap-boot","from-floor-callback"),i.isReady=!0,i.eventer.fireAndPropagate("ready"))})),i.embed.on("ready",(function(){i.isReady||(r.A.pushDebug("sightmap-boot","from-ready-callback"),i.isReady=!0,i.eventer.fireAndPropagate("ready"))}))}))}return T(e,[{key:"ready",value:function(e){this.isReady?e():this.eventer.on("ready",e)}}],[{key:"load",value:function(e){var t=this;if(void 0===window.SightMap)var i=s().getScript(this.apiScript,(function(){clearInterval(n),e(window.SightMap)})),n=setTimeout((function(){void 0===window.SightMap&&(i.abort(),t.alternateSightMapAPIBoot((function(){e(window.SightMap)})))}),1500);else e(window.SightMap)}},{key:"alternateSightMapAPIBoot",value:function(e){r.A.requestCacheable({data:{action:"render-js-file-contents",url:this.apiScript}}).then((function(t){s()("body").append('<script type="text/javascript">'+t+"<\/script>");var i=null,n=0;i=setInterval((function(){++n,void 0!==window.SightMap&&(clearInterval(i),e(window.SightMap)),n>=100&&clearInterval(i)}))}))}},{key:"bootOnIframe",value:function(t,i){var n=new e(t);n.ready((function(){return i(n)}))}}])}();M(P,"apiScript","https://sightmap.com/embed/api.js");var O=new WeakSet,A=function(e){function t(e,i){var n;return x(this,t),S(n=v(this,t,[e]),O),n.$iframe=s()(i),n.SightMap=null,n.assetId=n.config.asset_id,n.disabledUi=n.config.disabled_ui,n.pendingFloorEchoes=new Set,n.unitHighlightOutTimeout=null,n.defineCallable("allowFiltering",(function(){return n.disabledUi.indexOf("filters")>-1})).defineCallable("nativeUI",(function(){return[n.disabledUi.indexOf("filters")>-1?"filters":null,n.disabledUi.indexOf("floorSelection")>-1?"floors":null,n.disabledUi.indexOf("unitList")>-1?"units":null].filter((function(e){return e}))})).defineCallable("unitBelongsToInstance",(function(e){return e.engrain_data&&e.engrain_data.asset_id===n.assetId})).defineCallable("unitNormalizer",(function(e){return{floorId:e.engrain_data.floor_id,unitId:e.engrain_data.unit_id}})).defineCallable("floorNormalizer",(function(e){return{id:e.id,label:e.short_label,name:e.name,sort:e.sort,count:0,non_residential:e.non_residential}})).defineCallable("getUnitByInternalId",(function(e){var t=null;return n.units.some((function(i){if(i.engrain_data.unit_id===e)return t=i})),t})).defineCallable("useNativeTooltip",(function(){return n.disabledUi.indexOf("unitList")>=0&&n.disabledUi.indexOf("unitToolTip")>=0&&n.disabledUi.indexOf("unitDetails")>=0})).defineCallable("defaultFloor",(function(){return function(e,t,i){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:i;throw new TypeError("Private element is not present on this object")}(O,n,k).call(n)})).defineCallable("analyticsIdentifier",(function(){return n.config.asset_id})),n.defineFloors(n.config.floors),n.on("boot",(function(e){P.bootOnIframe(n.$iframe.attr("id"),(function(t){n.SightMap=t,n.SightMap.embed.disableUI(n.disabledUi),n.disabledUi.indexOf("filters")>-1?n.SightMap.embed.getUnitIds((function(e){n.performUnitIntersectAgainstInternalIds(e,(function(){n.resetActiveFloorToDefault(),n.fire("floor-change",[n.activeFloor(),!0])}))})):n.fire("floor-change",[n.activeFloor(),!0]),n.SightMap.embed.on("unitDetails.show",(function(e){var t=n.getUnitByInternalId(e.data.unit.id);t&&n.fire("unit-details-request",[t])})),n.SightMap.embed.on("mapUnit.mouseEnter",(function(e){var t=n.getUnitByInternalId(e.data.unit.id);t&&n.fire("unit-hover-in",[t])})),n.SightMap.embed.on("mapUnit.mouseLeave",(function(e){var t=n.getUnitByInternalId(e.data.unit.id);t&&n.fire("unit-hover-out",[t])})),n.SightMap.embed.on("mapUnit.mouseMove",(function(e){var t=n.getUnitByInternalId(e.data.unit.id);t&&n.fire("unit-mouse-move",[{x:e.data.mouseX,y:e.data.mouseY},t])})),n.SightMap.embed.on("floor.change",(function(e){n.pendingFloorEchoes.has(String(e.id))?n.pendingFloorEchoes.delete(String(e.id)):(e=n.floor(e.id))&&n.fire("floor-change",[e,!1,!0])}
1)),n.SightMap.embed.on("mapView.change",(function(e){"floorPlate"!==e.type?n.fire("floors-hide"):n.fire("floors-show")})),setTimeout((function(){e()}),300)}))})),n.bootListeners(),n.on("floor-change",(function(e){if(n.SightMap){var t=String(e.id);n.pendingFloorEchoes.add(t),setTimeout((function(){return n.pendingFloorEchoes.delete(t)}),1e3),n.SightMap.embed.setFloor(e.id)}})),n.on("unit-filter",(function(){n.SightMap&&(n.SightMap.embed.setUnitIdMatches(n.matchingUnits.map((function(e){return n.unitNormalize(e).unitId}))),n.performNonAvailableFloorBehavior(r.A.data.non_available_floor_behavior))})),n.on("unit-card-hover-in",(function(e){n.SightMap&&(n.unitHighlightOutTimeout&&clearTimeout(n.unitHighlightOutTimeout),n.SightMap.embed.setHighlightedUnitById(n.unitNormalize(e).unitId))})),n.on("unit-card-hover-out",(function(){n.SightMap&&(n.unitHighlightOutTimeout=setTimeout((function(){return n.SightMap.embed.setHighlightedUnitById(null)}),50))})),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&w(e,t)}(t,e),T(t)}(p);function k(){var e=this;if(this.floorsSorted.length){var t=null;if(this.config.default_floor_explicit&&this.floorsSorted.some((function(i){if(i.name==e.config.default_floor_explicit)return t=i})),!t||0===t.count)switch(this.config.default_floor){case"lowest":this.floorsSorted.some((function(e){if(e.count>0&&!e.non_residential)return t=e}));break;case"highest":JSON.parse(JSON.stringify(this.floorsSorted)).reverse().some((function(e){if(e.count>0&&!e.non_residential)return t=e}));break;case"highest_most":case"lowest_most":var i=Math.ceil(this.floorsSorted.length/2),n="highest_most"===this.config.default_floor?i:0,s="highest_most"===this.config.default_floor?this.floorsSorted.length:i,o=this.floorsSorted.slice(n,s),r=0,a=null;"lowest_most"===this.config.default_floor&&(o=o.reverse()),o.forEach((function(e){if(!e.non_residential){var t=e.count||0;0!==t&&((!a||t>=r)&&(a=e),r=t)}})),t=a}return t}return null}M(A,"apiScript","https://sightmap.com/embed/api.js")},6031:(e,t,i)=>{function n(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).onFocus,i=void 0===t?null:t;if(e&&e.length){var n=function(t){e.attr("tabindex","-1"),e.eq(t).attr("tabindex","0")},s=e.index(e.filter('[aria-selected="true"]').first());n(s<0?0:s),e.on("keydown",(function(t){var s,o=e.index(t.currentTarget),r=e.length-1;switch(t.key){case"ArrowRight":case"ArrowDown":s=o===r?0:o+1;break;case"ArrowLeft":case"ArrowUp":s=0===o?r:o-1;break;case"Home":s=0;break;case"End":s=r;break;default:return}t.preventDefault(),function(t){n(t),e.eq(t).focus(),i&&i(t,e.eq(t))}(s)}))}}i.d(t,{q:()=>n})}}]);
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.