1const xe=e=>typeof e=="string";const vt=e=>e&&e!==null&&e instanceof Element&&"nodeType"in e;const Bn=function(e){if(!(e&&e instanceof Element&&e.offsetParent))return!1;let t=!1,l=!1;if(e.scrollWidth>e.clientWidth){const n=window.getComputedStyle(e).overflowX,s=n.indexOf("hidden")!==-1,f=n.indexOf("clip")!==-1,u=n.indexOf("visible")!==-1;t=!s&&!f&&!u}if(e.scrollHeight>e.clientHeight){const n=window.getComputedStyle(e).overflowY,s=n.indexOf("hidden")!==-1,f=n.indexOf("clip")!==-1,u=n.indexOf("visible")!==-1;l=!s&&!f&&!u}return t||l},ut=function(e,t=void 0){return!e||e===document.body||t&&e===t?null:Bn(e)?e:ut(e.parentElement,t)};const tt=function(e){var t=new DOMParser().parseFromString(e,"text/html").body;if(t.childElementCount>1){for(var l=document.createElement("div");t.firstChild;)l.appendChild(t.firstChild);return l}let n=t.firstChild;return!n||n instanceof HTMLElement?n:((l=document.createElement("div")).appendChild(n),l)};const ye=function(e=0,t=0,l=0){return Math.max(Math.min(t,l),e)};const Ie=e=>typeof e=="object"&&e!==null&&e.constructor===Object&&Object.prototype.toString.call(e)==="[object Object]";function tn(e){return Ie(e)||Array.isArray(e)}function Mt(e,t){const l=Object.keys(e),n=Object.keys(t);return l.length===n.length&&l.every(s=>{const f=e[s],u=t[s];return typeof f=="function"?`${f}`==`${u}`:tn(f)&&tn(u)?Mt(f,u):f===u})}const zn=function(e){for(const t of Ct)t.getState()===qe.Running&&t.tick(kt?e-kt:0);kt=e,pt=window.requestAnimationFrame(zn)};var qe,st,mt;(function(e){e[e.Initializing=0]="Initializing",e[e.Running=1]="Running",e[e.Paused=2]="Paused",e[e.Completed=3]="Completed",e[e.Destroyed=4]="Destroyed"})(qe||(qe={})),(function(e){e[e.Spring=0]="Spring",e[e.Ease=1]="Ease"})(st||(st={})),(function(e){e[e.Loop=0]="Loop",e[e.Reverse=1]="Reverse"})(mt||(mt={}));const Ct=new Set;let pt=null,kt=0;function lt(){let e=qe.Initializing,t=st.Ease,l=0,n=0,s=lt.Easings.Linear,f=500,u=0,v=0,g=0,E=0,m=1/0,b=.01,d=.01,r=!1,p={},c=null,P={},S={},j={},D=0,Z=0,z=mt.Loop,G=lt.Easings.Linear;const _=new Map;function fe($,...I){for(const V of _.get($)||[])V(...I)}function he($){return n=0,$?c=setTimeout(()=>{ae()},$):ae(),se}function ae(){e=qe.Running,fe("start",P,S)}function Me(){if(e=qe.Completed,j={},fe("end",P),e===qe.Completed)if(l<D){if(l++,z===mt.Reverse){const $=Object.assign({},p);p=Object.assign({},S),S=$}he(Z)}else l=0;return se}const se={getState:function(){return e},easing:function($){return s=$,t=st.Ease,j={},se},duration:function($){return f=$,se},spring:function($={}){t=st.Spring;const I={velocity:0,mass:1,tension:170,friction:26,restDelta:.1,restSpeed:.1,maxSpeed:1/0,clamp:!0},{velocity:V,mass:A,tension:ne,friction:ue,restDelta:re,restSpeed:F,maxSpeed:le,clamp:oe}=Object.assign(Object.assign({},I),$);return u=V,v=A,g=ne,E=ue,d=re,b=F,m=le,r=oe,j={},se},isRunning:function(){return e===qe.Running},isSpring:function(){return t===st.Spring},from:function($){return P=Object.assign({},$),se},to:function($){return S=$,se},repeat:function($,I=0,V=mt.Loop,A){return D=$,Z=I,z=V,G=A||s,se},on:function($,I){var V,A;return V=$,A=I,_.set(V,[..._.get(V)||[],A]),se},off:function($,I){var V,A;return V=$,A=I,_.has(V)&&_.set(V,_.get(V).filter(ne=>ne!==A)),se},start:function($){return Mt(P,S)||(e=qe.Initializing,p=Object.assign({},P),Ct.add(this),pt||(pt=window.requestAnimationFrame(zn)),he($)),se},pause:function(){return c&&(clearTimeout(c),c=null),e===qe.Running&&(e=qe.Paused,fe("pause",P)),se},end:Me,tick:function($){$>50&&($=50),n+=$;let I=0,V=!1;if(e!==qe.Running)return se;if(t===st.Ease){I=ye(0,n/f,1),V=I===1;const ne=z===mt.Reverse?G:s;for(const ue in P)P[ue]=p[ue]+(S[ue]-p[ue])*ne(I)}if(t===st.Spring){const ne=.001*$;let ue=0;for(const re in P){const F=S[re];let le=P[re];if(typeof F!="number"||isNaN(F)||typeof le!="number"||isNaN(le))continue;if(Math.abs(F-le)<=d){P[re]=F,j[re]=0;continue}j[re]||(typeof u=="object"&&typeof u[re]=="number"?j[re]=u[re]:j[re]=typeof u=="number"?u:0);let oe=j[re];oe=ye(-1*Math.abs(m),oe,Math.abs(m));const J=oe*v*E;oe+=((le>F?-1:1)*(Math.abs(F-le)*g)-J)/v*ne,le+=oe*ne;const ge=P[re]>F?le<F:le>F;let Se=Math.abs(oe)<b&&Math.abs(F-le)<=d;r&&ge&&(Se=!0),Se?(le=F,oe=0):ue++,P[re]=le,j[re]=oe}V=!ue}const A=Object.assign({},S);return fe("step",P,p,S,I),V&&e===qe.Running&&Mt(S,A)&&(e=qe.Completed,Me()),se},getStartValues:function(){return p},getCurrentValues:function(){return P},getCurrentVelocities:function(){return j},getEndValues:function(){return S},destroy:function(){e=qe.Destroyed,c&&(clearTimeout(c),c=null),p=P=S={},Ct.delete(this)}};return se}lt.destroy=()=>{for(const e of Ct)e.destroy();pt&&(cancelAnimationFrame(pt),pt=null)},lt.Easings={Linear:function(e){return e},EaseIn:function(e){return e===0?0:Math.pow(2,10*e-10)},EaseOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},EaseInOut:function(e){return e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2}};function wt(e){return typeof TouchEvent<"u"&&e instanceof TouchEvent}function Yt(e,t){const l=[],n=wt(e)?e[t]:e instanceof MouseEvent&&(t==="changedTouches"||e.type!=="mouseup")?[e]:[];for(const s of n)l.push({x:s.clientX,y:s.clientY,ts:Date.now()});return l}function nn(e){return Yt(e,"touches")}function on(e){return Yt(e,"targetTouches")}function In(e){return Yt(e,"changedTouches")}function it(e){const t=e[0],l=e[1]||t;return{x:(t.x+l.x)/2,y:(t.y+l.y)/2,ts:l.ts}}function Ot(e){const t=e[0],l=e[1]||e[0];return t&&l?-1*Math.sqrt((l.x-t.x)*(l.x-t.x)+(l.y-t.y)*(l.y-t.y)):0}const sn=e=>{e.cancelable&&e.preventDefault()},ot={passive:!1},Wn={panThreshold:5,swipeThreshold:3,ignore:["textarea","input","select","[contenteditable]","[data-selectable]","[data-draggable]"]};let Lt=!1,bt=!0;const ht=(e,t)=>
1{let l,n,s,f=Object.assign(Object.assign({},Wn),t),u=[],v=[],g=[],E=!1,m=!1,b=!1,d=!1,r=0,p=0,c=0,P=0,S=0,j=0,D=0,Z=0,z=0,G=[],_=0,fe=0;const he=new Map;function ae(F){const le=Ot(v),oe=Ot(g),J=le&&oe?le/oe:0,ge=Math.abs(D)>Math.abs(Z)?D:Z,Se={srcEvent:l,isPanRecognized:E,isSwipeRecognized:m,firstTouch:u,previousTouch:g,currentTouch:v,deltaX:c,deltaY:P,offsetX:S,offsetY:j,velocityX:D,velocityY:Z,velocity:ge,angle:z,axis:s,scale:J,center:n};for(const _e of he.get(F)||[])_e(Se)}function Me(F){const le=F.target,oe=F.composedPath()[0],J=f.ignore.join(","),ge=Se=>Se&&Se instanceof HTMLElement&&(Se.matches(J)||Se.closest(J));if(ge(le)||ge(oe))return!1}function se(F){const le=Date.now();if(G=G.filter(oe=>!oe.ts||oe.ts>le-100),F&&G.push(F),D=0,Z=0,G.length>3){const oe=G[0],J=G[G.length-1];if(oe&&J){const ge=J.x-oe.x,Se=J.y-oe.y,_e=oe.ts&&J.ts?J.ts-oe.ts:0;_e>0&&(D=Math.abs(ge)>3?ge/(_e/30):0,Z=Math.abs(Se)>3?Se/(_e/30):0)}}}function $(F){if(Me(F)===!1)return;if(typeof MouseEvent<"u"&&F instanceof MouseEvent){if(Lt)return}else Lt=!0;if(typeof MouseEvent<"u"&&F instanceof MouseEvent){if(!F.buttons||F.button!==0)return;sn(F)}F instanceof MouseEvent&&(window.addEventListener("mousemove",I),window.addEventListener("mouseup",V)),window.addEventListener("blur",A),l=F,v=on(F),u=[...v],g=[],p=v.length,n=it(v),p===1&&(E=!1,m=!1,b=!1),p&&se(it(v));const le=Date.now(),oe=le-(r||le);d=oe>0&&oe<=250&&p===1,r=le,clearTimeout(_),ae("start")}function I(F){var le;if(!u.length||F.defaultPrevented||Me(F)===!1)return;l=F,g=[...v],v=nn(F);const oe=it(g),J=it(nn(F));if(se(J),p=v.length,n=J,g.length===v.length?(c=J.x-oe.x,P=J.y-oe.y):(c=0,P=0),u.length){const ge=it(u);S=J.x-ge.x,j=J.y-ge.y}if(v.length>1){const ge=Ot(v),Se=Ot(g);Math.abs(ge-Se)>=.1&&(b=!0,ae("pinch"))}E||(E=Math.abs(S)>f.panThreshold||Math.abs(j)>f.panThreshold,E&&(bt=!1,clearTimeout(fe),fe=0,z=Math.abs(180*Math.atan2(j,S)/Math.PI),s=z>45&&z<135?"y":"x",u=[...v],g=[...v],S=0,j=0,c=0,P=0,(le=window.getSelection())===null||le===void 0||le.removeAllRanges(),ae("panstart"))),E&&(c||P)&&ae("pan"),ae("move")}function V(F){if(l=F,!u.length)return;const le=on(F),oe=In(F);if(p=le.length,n=it(oe),oe.length&&se(it(oe)),g=[...v],v=[...le],u=[...le],p>0)ae("end"),E=!1,m=!1,G=[];else{const J=f.swipeThreshold;(Math.abs(D)>J||Math.abs(Z)>J)&&(m=!0),E&&ae("panend"),m&&ae("swipe"),E||m||b||(ae("tap"),d?ae("doubleTap"):_=setTimeout(function(){ae("singleTap")},250)),ae("end"),ne()}}function A(){clearTimeout(_),ne(),E&&ae("panend"),ae("end")}function ne(){Lt=!1,E=!1,m=!1,d=!1,p=0,G=[],v=[],g=[],u=[],c=0,P=0,S=0,j=0,D=0,Z=0,z=0,s=void 0,window.removeEventListener("mousemove",I),window.removeEventListener("mouseup",V),window.removeEventListener("blur",A),bt||fe||(fe=setTimeout(()=>{bt=!0,fe=0},100))}function ue(F){const le=F.target;Lt=!1,le&&!F.defaultPrevented&&(bt||(sn(F),F.stopPropagation()))}const re={init:function(){return e&&(e.addEventListener("click",ue,ot),e.addEventListener("mousedown",$,ot),e.addEventListener("touchstart",$,ot),e.addEventListener("touchmove",I,ot),e.addEventListener("touchend",V),e.addEventListener("touchcancel",V)),re},on:function(F,le){return(function(oe,J){he.set(oe,[...he.get(oe)||[],J])})(F,le),re},off:function(F,le){return he.has(F)&&he.set(F,he.get(F).filter(oe=>oe!==le)),re},isPointerDown:()=>p>0,destroy:function(){clearTimeout(_),clearTimeout(fe),fe=0,e&&(e.removeEventListener("click",ue,ot),e.removeEventListener("mousedown",$,ot),e.removeEventListener("touchstart",$,ot),e.removeEventListener("touchmove",I,ot),e.removeEventListener("touchend",V),e.removeEventListener("touchcancel",V)),e=null,ne()}};return re};ht.isClickAllowed=()=>bt;const Ut={IMAGE_ERROR:"This image couldn't be loaded. <br /> Please try again later.",MOVE_UP:"Move up",MOVE_DOWN:"Move down",MOVE_LEFT:"Move left",MOVE_RIGHT:"Move right",ZOOM_IN:"Zoom in",ZOOM_OUT:"Zoom out",TOGGLE_FULL:"Toggle zoom level",TOGGLE_1TO1:"Toggle zoom level",ITERATE_ZOOM:"Toggle zoom level",ROTATE_CCW:"Rotate counterclockwise",ROTATE_CW:"Rotate clockwise",FLIP_X:"Flip horizontally",FLIP_Y:"Flip vertically",RESET:"Reset",TOGGLE_FS:"Toggle fullscreen"};const te=(e,t="")=>{e&&e.classList&&t.split(" ").forEach(l=>{l&&e.classList.add(l)})};const Fe=(e,t="")=>{e&&e.classList&&t.split(" ").forEach(l=>{l&&e.classList.remove(l)})};const De=(e,t="",l)=>{e&&e.classList&&t.split(" ").forEach(n=>
1{n&&e.classList.toggle(n,l||!1)})};const rt=e=>{e.cancelable&&e.preventDefault()},Ve=(e,t=1e4)=>(e=parseFloat(e+"")||0,Math.round((e+Number.EPSILON)*t)/t),Ke=e=>e instanceof HTMLImageElement;var U,ln;(function(e){e.Reset="reset",e.Zoom="zoom",e.ZoomIn="zoomIn",e.ZoomOut="zoomOut",e.ZoomTo="zoomTo",e.ToggleCover="toggleCover",e.ToggleFull="toggleFull",e.ToggleMax="toggleMax",e.IterateZoom="iterateZoom",e.Pan="pan",e.Swipe="swipe",e.Move="move",e.MoveLeft="moveLeft",e.MoveRight="moveRight",e.MoveUp="moveUp",e.MoveDown="moveDown",e.RotateCCW="rotateCCW",e.RotateCW="rotateCW",e.FlipX="flipX",e.FlipY="flipY",e.ToggleFS="toggleFS"})(U||(U={})),(function(e){e.Cover="cover",e.Full="full",e.Max="max"})(ln||(ln={}));const Ye={x:0,y:0,scale:1,angle:0,flipX:1,flipY:1},Bt={bounds:!0,classes:{container:"f-panzoom",wrapper:"f-panzoom__wrapper",content:"f-panzoom__content",viewport:"f-panzoom__viewport"},clickAction:U.ToggleFull,dblClickAction:!1,gestures:{},height:"auto",l10n:Ut,maxScale:4,minScale:1,mouseMoveFactor:1,panMode:"drag",protected:!1,singleClickAction:!1,spinnerTpl:'<div class="f-spinner"></div>',wheelAction:U.Zoom,width:"auto"};let Tt,rn=0,an=0,Pt=0;const Wt=(e,t={},l={})=>{let n,s,f,u,v,g,E,m,b=0,d=Object.assign(Object.assign({},Bt),t),r={},p=Object.assign({},Ye),c=Object.assign({},Ye);const P=[];function S(o){let a=d[o];return a&&typeof a=="function"?a(C):a}function j(){return e&&e.parentElement&&n&&b===3}const D=new Map;function Z(o,...a){const L=[...D.get(o)||[]];d.on&&L.push(d.on[o]);for(const T of L)T&&T instanceof Function&&T(C,...a);o!=="*"&&Z("*",o,...a)}function z(o){if(!j())return;const a=o.target;if(ut(a))return;const L=Date.now(),T=[-o.deltaX||0,-o.deltaY||0,-o.detail||0].reduce(function(Y,X){return Math.abs(X)>Math.abs(Y)?X:Y}),h=ye(-1,T,1);Z("wheel",o,h);const w=S("wheelAction");if(!w||o.defaultPrevented)return;const q=c.scale;let B=q*(h>0?1.5:.5);if(w===U.Zoom){const Y=Math.abs(o.deltaY)<100&&Math.abs(o.deltaX)<100;if(L-an<(Y?200:45))return void rt(o);an=L;const X=ne(),Q=F();if(Ve(B)<Ve(X)&&Ve(q)<=Ve(X)?(Pt+=Math.abs(h),B=X):Ve(B)>Ve(Q)&&Ve(q)>=Ve(Q)?(Pt+=Math.abs(h),B=Q):(Pt=0,B=ye(X,B,Q)),Pt>7)return}switch(rt(o),w){case U.Pan:ge(w,{srcEvent:o,deltaX:2*-o.deltaX,deltaY:2*-o.deltaY});break;case U.Zoom:ge(U.ZoomTo,{srcEvent:o,scale:B,center:{x:o.clientX,y:o.clientY}});break;default:ge(w,{srcEvent:o})}}function G(o){var a,L;const T=o.composedPath()[0];if(!ht.isClickAllowed()||!vt(T)||o.defaultPrevented||!e?.contains(T)||T.hasAttribute("disabled")||T.hasAttribute("aria-disabled")||T.hasAttribute("data-carousel-go-prev")||T.hasAttribute("data-carousel-go-next"))return;const h=T.closest("[data-panzoom-action]"),w=(a=h?.dataset)===null||a===void 0?void 0:a.panzoomAction,q=((L=h?.dataset)===null||L===void 0?void 0:L.panzoomValue)||"";if(w){switch(rt(o),w){case U.ZoomTo:case U.ZoomIn:case U.ZoomOut:ge(w,{scale:parseFloat(q||"")||void 0});break;case U.MoveLeft:case U.MoveRight:ge(w,{deltaX:parseFloat(q||"")||void 0});break;case U.MoveUp:case U.MoveDown:ge(w,{deltaY:parseFloat(q||"")||void 0});break;case U.ToggleFS:H();break;default:ge(w)}return}if(!n?.contains(T))return;const B={srcEvent:o};if(ge(S("clickAction"),B),S("dblClickAction")){const Y=Date.now(),X=Y-(rn||Y);rn=Y,X>0&&X<=250?(Tt&&(clearTimeout(Tt),Tt=void 0),ge(S("dblClickAction"),B)):Tt=setTimeout(()=>{ge(S("singleClickAction"),B)},250)}}function _(o){if(m=o,!j()||!I()||p.scale<=1||c.scale<=1||(n?.dataset.animationName||"").indexOf("zoom")>-1)return;const a=V(c.scale);if(!a)return;const{x:L,y:T}=a;ge(U.Pan,{deltaX:L-c.x,deltaY:T-c.y})}function fe(){var o;e&&(Fe(e,"is-loading"),(o=e.querySelector(".f-spinner"))===null||o===void 0||o.remove())}function he(){if(!e||!s)return;if(fe(),Ke(s)&&(!s.complete||!s.naturalWidth))return b=2,n?.classList.add("has-error"),void Z("error");Z("loaded");const{width:o,height:a}=se();Ke(s)&&(s.setAttribute("width",o+""),s.setAttribute("height",a+"")),n&&(Fe(n,"has-error"),Ke(s)&&(n.setAttribute("width",o+""),n.setAttribute("height",a+""),n.style.aspectRatio=`${o/a||""}`)),g=lt().on("start",(T,h)=>{h.angle!==void 0&&(h.angle=90*Math.round(h.angle/90)),h.flipX!==void 0&&(h.flipX=h.flipX>0?1:-1),h.flipY!==void 0&&(h.flipY=h.flipY>0?1:-1),c=Object.assign(Object.assign({},Ye),h),J(),Z("animationStart")}).on("pause",T=>{c=Object.assign(Object.assign({},Ye),T)}).on("step",T=>{if(!j())return void(g==null||g.end());if(p=Object.assign(Object.assign({},Ye),T),I()||!S("bounds")||ze()||c.scale>p.scale||c.scale<ue())return void Se();
1const h=le(c.scale);let w=!1,q=!1,B=!1,Y=!1;p.x<h.x[0]&&(w=!0),p.x>h.x[1]&&(q=!0),p.y<h.y[0]&&(Y=!0),p.y>h.y[1]&&(B=!0);let X=!1,Q=!1,ve=!1,me=!1;c.x<h.x[0]&&(X=!0),c.x>h.x[1]&&(Q=!0),c.y<h.y[0]&&(me=!0),c.y>h.y[1]&&(ve=!0);let pe=!1;(q&&Q||w&&X)&&(c.x=ye(h.x[0],c.x,h.x[1]),pe=!0),(B&&ve||Y&&me)&&(c.y=ye(h.y[0],c.y,h.y[1]),pe=!0),pe&&g&&g.spring({tension:94,friction:17,maxSpeed:555*c.scale,restDelta:.1,restSpeed:.1,velocity:g.getCurrentVelocities()}).from(p).to(c).start(),Se()}).on("end",()=>{v?.isPointerDown()||oe(),g?.isRunning()||(J(),Z("animationEnd"))}),(function(){const T=S("gestures");if(!T||!u||!s)return;let h=!1;v=ht(u,T).on("start",w=>{if(!S("gestures")||!g||!j()||I())return;const q=w.srcEvent;(p.scale>1||w.currentTouch.length>1)&&(q?.stopPropagation(),g.pause(),h=!0),w.currentTouch.length===1&&Z("touchStart")}).on("move",w=>{var q;h&&(c.scale!==1||w.currentTouch.length>1)&&(rt(w.srcEvent),(q=w.srcEvent)===null||q===void 0||q.stopPropagation())}).on("pan",w=>{if(!h)return;const q=w.srcEvent;(c.scale!==1||w.currentTouch.length>1)&&(rt(q),ge(U.Pan,w))}).on("swipe",w=>{h&&c.scale>1&&ge(U.Swipe,w)}).on("tap",w=>{Z("click",w)}).on("singleTap",w=>{Z("singleClick",w)}).on("doubleTap",w=>{Z("dblClick",w)}).on("pinch",w=>{h&&(w.scale>ue()?ge(U.ZoomIn,w):w.scale<ue()?ge(U.ZoomOut,w):ge(U.Pan,w))}).on("end",w=>{h&&(w.currentTouch.length?(w.srcEvent.stopPropagation(),rt(w.srcEvent),g?.end()):(h=!1,J(),oe(),Z("touchEnd")))}).init()})(),u&&(u.addEventListener("wheel",z,{passive:!1}),P.push(()=>{u?.removeEventListener("wheel",z,{passive:!1})})),e?.addEventListener("click",G),document?.addEventListener("mousemove",_),P.push(()=>{e?.removeEventListener("click",G),document?.removeEventListener("mousemove",_)});const L=ae();p=Object.assign({},L),c=Object.assign({},L),b=3,Se(),J(),Z("ready"),requestAnimationFrame(()=>{b===3&&(fe(),u&&(u.style.visibility=""))})}function ae(){const o=Object.assign({},S("startPos")||{});let a=o.scale,L=1;L=typeof a=="string"?A(a):typeof a=="number"?a:ue();const T=Object.assign(Object.assign(Object.assign({},Ye),o),{scale:L}),h=I()?V(L):void 0;if(h){const{x:w,y:q}=h;T.x=w,T.y=q}return T}function Me(){const o={top:0,left:0,width:0,height:0};if(n){const a=n.getBoundingClientRect();c.angle%180==90?(o.top=a.top+.5*a.height-.5*a.width,o.left=a.left+.5*a.width-.5*a.height,o.width=a.height,o.height=a.width):(o.top=a.top,o.left=a.left,o.width=a.width,o.height=a.height)}return o}function se(){let o=S("width"),a=S("height");if(s&&o==="auto"){const L=s.getAttribute("width");o=L?parseFloat(L+""):s.dataset.width!==void 0?parseFloat(s.dataset.width+""):Ke(u)?u.naturalWidth:Ke(s)?s.naturalWidth:n?.getBoundingClientRect().width||0}else o=xe(o)?parseFloat(o):o;if(s&&a==="auto"){const L=s.getAttribute("height");a=L?parseFloat(L+""):s.dataset.height!==void 0?parseFloat(s.dataset.height+""):Ke(u)?u.naturalHeight:Ke(s)?s.naturalHeight:n?.getBoundingClientRect().height||0}else a=xe(a)?parseFloat(a):a;return{width:o,height:a}}function $(){const o=Me();return{width:o.width,height:o.height}}function I(){return S("panMode")==="mousemove"&&matchMedia("(hover: hover)").matches}function V(o){const a=m||S("event"),L=n?.getBoundingClientRect();if(!a||!L||o<=1)return{x:0,y:0};const T=(a.clientX||0)-L.left,h=(a.clientY||0)-L.top,{width:w,height:q}=$(),B=le(o);if(o>1){const me=S("mouseMoveFactor");me>1&&(o*=me)}let Y=w*o,X=q*o,Q=.5*(Y-w)-T/w*100/100*(Y-w),ve=.5*(X-q)-h/q*100/100*(X-q);return Q=ye(B.x[0],Q,B.x[1]),ve=ye(B.y[0],ve,B.y[1]),{x:Q,y:ve}}function A(o){if(!o)return c.scale;if(!e)return 1;const a=e.getBoundingClientRect(),L=Me(),{width:T,height:h}=se(),w=Q=>{if(typeof Q=="number")return Q;switch(Q){case"min":case"base":return 1;case"cover":return Math.max(a.height/L.height,a.width/L.width)||1;case"full":case"max":{const ve=c.angle%180==90?h:T;return ve&&L.width?ve/L.width:1}}},q=S("minScale"),B=S("maxScale"),Y=Math.min(w("full"),w(q)),X=typeof B=="number"?w("full")*B:Math.min(w("full"),w(B));switch(o){case"min":return Y;case"base":return ye(Y,1,X);case"cover":return w("cover");case"full":return Math.min(X,w("full"));case"max":return X}}function ne(){return A("min")}function ue(){return A("base")}function re(){return A("full")}function F(){return A("max")}function le(o){const a={x:[0,0],y:[0,0]},L=e?.getBoundingClientRect();if(!L)return a;const T=Me(),h=L.width,w=L.height;
1let q=T.width,B=T.height,Y=o=o===void 0?c.scale:o,X=o;if(I()&&o>1){const Q=S("mouseMoveFactor");Q>1&&(q*o>h+.01&&(Y*=Q),B*o>w+.01&&(X*=Q))}return q*=Y,B*=X,o>1&&(q>h&&(a.x[0]=.5*(h-q),a.x[1]=.5*(q-h)),a.x[0]-=.5*(T.left-L.left),a.x[1]-=.5*(T.left-L.left),a.x[0]-=.5*(T.left+T.width-L.right),a.x[1]-=.5*(T.left+T.width-L.right),B>w&&(a.y[0]=.5*(w-B),a.y[1]=.5*(B-w)),a.y[0]-=.5*(T.top-L.top),a.y[1]-=.5*(T.top-L.top),a.y[0]-=.5*(T.top+T.height-L.bottom),a.y[1]-=.5*(T.top+T.height-L.bottom)),a}function oe(){if(!j()||!S("bounds")||!g)return;const o=ne(),a=F(),L=ye(o,c.scale,a);if(c.scale<o-.01||c.scale>a+.01)return void ge(U.ZoomTo,{scale:L});if(g.isRunning()||ze())return;const T=le(L);c.x<T.x[0]||c.x>T.x[1]||c.y<T.y[0]||c.y>T.y[1]?(c.x=ye(T.x[0],c.x,T.x[1]),c.y=ye(T.y[0],c.y,T.y[1]),g.spring({tension:170,friction:17,restDelta:.001,restSpeed:.001,maxSpeed:1/0,velocity:g.getCurrentVelocities()}),g.from(p).to(c).start()):Se()}function J(o){var a;if(!j())return;const L=nt(),T=ze(),h=Ae(),w=x(),q=Ue(),B=Ge();De(n,"is-fullsize",w),De(n,"is-expanded",h),De(n,"is-dragging",T),De(n,"can-drag",L),De(n,"will-zoom-in",q),De(n,"will-zoom-out",B);const Y=Qe(),X=Ne(),Q=Xe(),ve=!j();for(const me of((a=o||e)===null||a===void 0?void 0:a.querySelectorAll("[data-panzoom-action]"))||[]){const pe=me.dataset.panzoomAction;let be=!1;if(ve)be=!0;else switch(pe){case U.ZoomIn:Y||(be=!0);break;case U.ZoomOut:Q||(be=!0);break;case U.ToggleFull:{X||Q||(be=!0);const we=me.querySelector("g");we&&(we.style.display=w&&!be?"none":"");break}case U.IterateZoom:{Y||Q||(be=!0);const we=me.querySelector("g");we&&(we.style.display=Y||be?"":"none");break}case U.ToggleCover:case U.ToggleMax:Y||Q||(be=!0)}be?(me.setAttribute("aria-disabled",""),me.setAttribute("tabindex","-1")):(me.removeAttribute("aria-disabled"),me.removeAttribute("tabindex"))}}function ge(o,a){var L;if(!(o&&e&&s&&g&&j())||o===U.Swipe&&Math.abs(g.getCurrentVelocities().scale)>.01)return;const T=Object.assign({},c);let h=Object.assign({},c),w=le(I()?T.scale:p.scale);const q=g.getCurrentVelocities(),B=Me(),Y=(((L=(a=a||{}).currentTouch)===null||L===void 0?void 0:L.length)||0)>1,X=a.velocityX||0,Q=a.velocityY||0;let ve=a.center;a.srcEvent&&(ve=it(In(a.srcEvent)));let me=a.deltaX||0,pe=a.deltaY||0;switch(o){case U.MoveRight:me=a.deltaX||100;break;case U.MoveLeft:me=a.deltaX||-100;break;case U.MoveUp:pe=a.deltaY||-100;break;case U.MoveDown:pe=a.deltaY||100}let be=[];if(typeof o=="number")h.scale=o;else switch(o){case U.Reset:h=Object.assign({},Ye),h.scale=ue();break;case U.ZoomTo:case U.ZoomIn:case U.ZoomOut:case U.ToggleCover:case U.ToggleFull:case U.ToggleMax:case U.IterateZoom:case U.Zoom:h.scale=_e(o,a);break;case U.Pan:case U.Move:case U.MoveLeft:case U.MoveRight:case U.MoveUp:case U.MoveDown:if(ze()){let Oe=1,de=1;h.x<=w.x[0]&&X<=0&&(Oe=Math.max(.01,1-Math.abs(1/B.width*Math.abs(h.x-w.x[0]))),Oe*=.2),h.x>=w.x[1]&&X>=0&&(Oe=Math.max(.01,1-Math.abs(1/B.width*Math.abs(h.x-w.x[1]))),Oe*=.2),h.y<=w.y[0]&&Q<=0&&(de=Math.max(.01,1-Math.abs(1/B.height*Math.abs(h.y-w.y[0]))),de*=.2),h.y>=w.y[1]&&Q>=0&&(de=Math.max(.01,1-Math.abs(1/B.height*Math.abs(h.y-w.y[1]))),de*=.2),h.x+=me*Oe,h.y+=pe*de}else h.x=ye(w.x[0],h.x+me,w.x[1]),h.y=ye(w.y[0],h.y+pe,w.y[1]);break;case U.Swipe:const we=(Oe=0)=>Math.sign(Oe)*Math.pow(Math.abs(Oe),1.5);h.x+=ye(-1e3,we(X),1e3),h.y+=ye(-1e3,we(Q),1e3),Q&&!X&&(h.x=ye(w.x[0],h.x,w.x[1])),!Q&&X&&(h.y=ye(w.y[0],h.y,w.y[1])),q.x=X,q.y=Q;break;case U.RotateCW:h.angle+=90;break;case U.RotateCCW:h.angle-=90;break;case U.FlipX:h.flipX*=-1;break;case U.FlipY:h.flipY*=-1}if(p.angle!==void 0&&Math.abs(p.angle)>=360&&(h.angle-=360*Math.floor(p.angle/360),p.angle-=360*Math.floor(p.angle/360)),be.length){const we=be.findIndex(Oe=>Oe>h.scale+1e-4);h.scale=be[we]||be[0]}if(Y&&(h.scale=ye(ne()*(Y?.8:1),h.scale,F()*(Y?1.6:1))),I()){const we=V(h.scale);if(we){const{x:Oe,y:de}=we;h.x=Oe,h.y=de}}else if(Math.abs(h.scale-T.scale)>1e-4){let we=0,Oe=0;if(ve)we=ve.x,Oe=ve.y;else{const O=e.getBoundingClientRect();we=O.x+.5*O.width,Oe=O.y+.5*O.height}let de=we-B.left,i=Oe-B.top;de-=.5*B.width,i-=.5*B.height;const y=(de-T.x)/T.scale,M=(i-T.y)/T.scale;h.x=de-y*h.scale,h.y=i-M*h.scale,!Y&&S("bounds")&&(w=le(h.scale),h.x=ye(w.x[0],h.x,w.x[1]),h.y=ye(w.y[0],h.y,w.y[1]))}if(o===U.Swipe){let we=94,Oe=17,de=500*h.scale,i=q;g.spring({tension:we,friction:Oe,maxSpeed:de,restDelta:.1,restSpeed:.1,velocity:i})}else o===U.Pan||Y?g.spring({tension:900,friction:17,restDelta:.01,restSpeed:.01,maxSpeed:1}):g.spring({tension:170,friction:17,restDelta:.001,restSpeed:.001,maxSpeed:1/0,velocity:q});if(a.velocity===0||Mt(p,h))p=Object.assign({},h),c=Object.assign({},h),g.end(),Se(),J();else{if(Mt(c,h))return;g.from(p).to(h).start()}Z("action",o)}function Se(){if(!s||!n||!u)return;const{width:o,height:a}=se();Object.assign(n.style,{maxWidth:`min(${o}px, 100%)`,maxHeight:`min(${a}px, 100%)`});const L=(function(){const{width:me,height:pe}=se(),{width:be,height:we}
1=$();if(!e)return{x:0,y:0,width:0,height:0,scale:0,flipX:0,flipY:0,angle:0,fitWidth:be,fitHeight:we,fullWidth:me,fullHeight:pe};let{x:Oe,y:de,scale:i,angle:y,flipX:M,flipY:O}=p,k=1/re(),R=me,N=pe,W=p.scale*k,ee=c.scale*k;const ie=Math.max(be,we),ce=Math.min(be,we);me>pe?(R=ie,N=ce):(R=ce,N=ie),W=me>pe?ie*i/me||1:ie*i/pe||1;let Ee=R?me*ee:0,Le=N?pe*ee:0,Pe=R&&N?me*W/Ee:0;return Oe=Oe+.5*R-.5*Ee,de=de+.5*N-.5*Le,{x:Oe,y:de,width:Ee,height:Le,scale:Pe,flipX:M,flipY:O,angle:y,fitWidth:be,fitHeight:we,fullWidth:me,fullHeight:pe}})(),{x:T,y:h,width:w,height:q,scale:B,angle:Y,flipX:X,flipY:Q}=L;let ve=`translate(${Ve(T)}px, ${Ve(h)}px)`;ve+=X!==1||Q!==1?` scaleX(${Ve(B*X)}) scaleY(${Ve(B*Q)})`:` scale(${Ve(B)})`,Y!==0&&(ve+=` rotate(${Y}deg)`),u.style.width=`${Ve(w)}px`,u.style.height=`${Ve(q)}px`,u.style.transform=`${ve}`,Z("render")}function _e(o=S("clickAction"),a={}){let L=c.scale,T=ue(),h=[];if(typeof o=="number")T=o;else if(o){switch(o){case U.ZoomTo:T=a.scale||1;break;case U.ZoomIn:T=L*(a.scale||2);break;case U.ZoomOut:T=L*(a.scale||.5);break;case U.ToggleCover:h=[ue(),A("cover")];break;case U.ToggleFull:h=[ue(),re()];break;case U.ToggleMax:h=[ue(),F()];break;case U.IterateZoom:h=[ue(),re(),F()];break;case U.Zoom:const w=re();T=L>=w-.05?ue():Math.min(w,L*(a.scale||2))}if(h.length){const w=h.findIndex(q=>q>L+1e-4);T=h[w]||ue()}}return o!==U.ZoomTo&&(T=ye(ne(),T,F())),T}function Ue(){return!!(j()&&_e()>c.scale)}function Ge(){return!!(j()&&_e()<c.scale)}function Xe(){return!!(j()&&c.scale>ne())}function Qe(){return!!(j()&&c.scale<F())}function Ne(){return!!(j()&&c.scale<re())}function nt(){return!(!(j()&&Ae()&&v)||I())}function ze(){return!(!j()||!v?.isPointerDown()||I())}function Ae(){return!!(j()&&c.scale>ue())}function x(){return!!(j()&&c.scale>=re())}function H(){const o="in-fullscreen",a="with-panzoom-in-fullscreen";e?.classList.toggle(o);const L=e?.classList.contains(o);L?(document.documentElement.classList.add(a),document.addEventListener("keydown",K,!0)):(document.documentElement.classList.remove(a),document.removeEventListener("keydown",K,!0)),Se(),Z(L?"enterFS":"exitFS")}function K(o){o.key!=="Escape"||o.defaultPrevented||H()}const C={canDrag:nt,canZoomIn:Qe,canZoomOut:Xe,canZoomToFull:Ne,destroy:function(){Z("destroy");for(const o of Object.values(r))o?.destroy(C);for(const o of P)o();return n&&(n.style.aspectRatio="",n.style.maxWidth="",n.style.maxHeight=""),u&&(u.style.width="",u.style.height="",u.style.transform=""),n=void 0,s=void 0,u=void 0,p=Object.assign({},Ye),c=Object.assign({},Ye),g?.destroy(),g=void 0,v?.destroy(),v=void 0,b=4,C},emit:Z,execute:ge,getBoundaries:le,getContainer:function(){return e},getContent:function(){return s},getFullDim:se,getGestures:function(){return v},getMousemovePos:V,getOptions:function(){return d},getPlugins:function(){return r},getScale:A,getStartPosition:ae,getState:function(){return b},getTransform:function(o){return o===!0?c:p},getTween:function(){return g},getViewport:function(){return u},getWrapper:function(){return n},init:function(){return b=0,Z("init"),(function(){for(const[o,a]of Object.entries(Object.assign(Object.assign({},l),d.plugins||{})))if(o&&!r[o]&&a instanceof Function){const L=a();L.init(C),r[o]=L}Z("initPlugins")})(),(function(){var o,a,L;const T=Object.assign(Object.assign({},Bt.classes),S("classes"));if(!e)return;te(e,T.container);const h=(o=T.content)===null||o===void 0?void 0:o.split(" ").shift();if(h&&(s=e.querySelector(`.${h}`)),!s)return;s.setAttribute("draggable","false");const w=(a=T.wrapper)===null||a===void 0?void 0:a.split(" ").shift();w&&(n=e.querySelector(`.${w}`)),n||(n=document.createElement("div"),te(n,T.wrapper),s.insertAdjacentElement("beforebegin",n),n.insertAdjacentElement("afterbegin",s));const q=(L=T.viewport)===null||L===void 0?void 0:L.split(" ").shift();if(q&&(u=e.querySelector(`.${q}`)),u||(u=document.createElement("div"),te(u,T.viewport),u.insertAdjacentElement("afterbegin",s),n.insertAdjacentElement("beforeend",u)),f=s.cloneNode(!0),f.removeAttribute("id"),n.insertAdjacentElement("afterbegin",f),s instanceof HTMLPictureElement&&(s=s.querySelector("img")),f instanceof HTMLPictureElement&&(f=f.querySelector("img")),u instanceof HTMLPictureElement&&(u=u.querySelector("img")),u&&(u.style.visibility="hidden",S("protected"))){u.addEventListener("contextmenu",Y=>{rt(Y)});const B=document.createElement("div");te(B,"f-panzoom__protected"),u.appendChild(B)}Z("initLayout")})(),(function(){if(e&&n&&!E){let o=null;E=new ResizeObserver(()=>{j()&&(o=o||requestAnimationFrame(()=>{j()&&(J(),oe(),Z("refresh")),o=null}))}),E.observe(n),P.push(()=>{E?.disconnect(),E=void 0,o&&(cancelAnimationFrame(o),o=null)})}})(),(function(){if(!e||!s)return;if(!Ke(s)||!Ke(f))return void he();const o=()=>{s&&Ke(s)&&s.decode().then(()=>{he()}).catch(()=>{he()})};if(b=1,e.classList.add("is-loading"),Z("loading"),f.src&&f.complete)return void o();(function(){if(!e||e?.querySelector(".f-spinner"))return;const a=S("spinnerTpl"),L=tt(a);L&&(L.classList.add("f-spinner"),e.classList.add("is-loading"),n?.insertAdjacentElement("afterbegin",L))})(),f.addEventListener("load",o,!1),f.addEventListener("error",o,!1),P.push(()=>{f?.removeEventListener("load",o,!1),f?.removeEventListener("error",o,!1)})})(),C},isDragging:ze,isExpanded:Ae,isFullsize:x,isMousemoveMode:I,localize:function(o,a=[]){const L=S("l10n")||{};o=String(o).replace(/\{\{(\w+)\}\}/g,(T,h)=>L[h]||T);for(let T=0;T<a.length;T++)o=o.split(a[T][0]).join(a[T][1]);return o=o.replace(/\{\{(.*?)\}\}/g,(T,h)=>h)}
1,off:function(o,a){for(const L of o instanceof Array?o:[o])D.has(L)&&D.set(L,D.get(L).filter(T=>T!==a));return C},on:function(o,a){for(const L of o instanceof Array?o:[o])D.set(L,[...D.get(L)||[],a]);return C},toggleFS:H,updateControls:J,version:"6.1.12",willZoomIn:Ue,willZoomOut:Ge};return C};Wt.l10n={en_EN:Ut},Wt.getDefaults=()=>Bt;const Ft=(e,t)=>{let l=[];return e.childNodes.forEach(n=>{n.nodeType!==Node.ELEMENT_NODE||t&&!n.matches(t)||l.push(n)}),l};const We=(e,...t)=>{const l=t.length;for(let n=0;n<l;n++){const s=t[n]||{};Object.entries(s).forEach(([f,u])=>{const v=Array.isArray(u)?[]:{};e[f]||Object.assign(e,{[f]:v}),Ie(u)?Object.assign(e[f],We(e[f],u)):Array.isArray(u)?Object.assign(e,{[f]:[...u]}):Object.assign(e,{[f]:u})})}return e};const jt=function(e=0,t=0,l=0,n=0,s=0,f=!1){const u=(e-t)/(l-t)*(s-n)+n;return f?n<s?ye(n,u,s):ye(s,u,n):u};const Kt=Object.assign(Object.assign({},Ut),{ERROR:"Something went wrong. <br /> Please try again later.",NEXT:"Next page",PREV:"Previous page",GOTO:"Go to page #%d",DOWNLOAD:"Download",TOGGLE_FULLSCREEN:"Toggle full-screen mode",TOGGLE_EXPAND:"Toggle full-size mode",TOGGLE_THUMBS:"Toggle thumbnails",TOGGLE_AUTOPLAY:"Toggle slideshow"});const at=e=>{e.cancelable&&e.preventDefault()},gt={adaptiveHeight:!1,center:!0,classes:{container:"f-carousel",isEnabled:"is-enabled",isLTR:"is-ltr",isRTL:"is-rtl",isHorizontal:"is-horizontal",isVertical:"is-vertical",hasAdaptiveHeight:"has-adaptive-height",viewport:"f-carousel__viewport",slide:"f-carousel__slide",isSelected:"is-selected"},dragFree:!1,enabled:!0,errorTpl:'<div class="f-html">{{ERROR}}</div>',fill:!1,infinite:!0,initialPage:0,l10n:Kt,rtl:!1,slides:[],slidesPerPage:"auto",spinnerTpl:'<div class="f-spinner"></div>',transition:"fade",tween:{clamp:!0,mass:1,tension:160,friction:25,restDelta:1,restSpeed:1,velocity:0},vertical:!1};let cn,un=0;const zt=(e,t={},l={})=>{un++;let n,s,f,u,v,g=0,E=Object.assign({},gt),m=Object.assign({},gt),b={},d=null,r=null,p=0,c=0,P=0,S=!1,j=!1,D=!1,Z="height",z=0,G=!0,_=0,fe=0,he=0,ae=0,Me="*",se=[],$=[];const I=new Set;let V=[],A=[],ne=0,ue=0,re=0;function F(i,...y){let M=m[i];return M&&M instanceof Function?M(de,...y):M}function le(i,y=[]){const M=F("l10n")||{};i=String(i).replace(/\{\{(\w+)\}\}/g,(O,k)=>M[k]||O);for(let O=0;O<y.length;O++)i=i.split(y[O][0]).join(y[O][1]);return i=i.replace(/\{\{(.*?)\}\}/g,(O,k)=>k)}const oe=new Map;function J(i,...y){const M=[...oe.get(i)||[]];m.on&&M.push(m.on[i]);for(const O of M)O&&O instanceof Function&&O(de,...y);i!=="*"&&J("*",i,...y)}function ge(){var i,y;const M=We({},gt,E);We(M,gt,E);let O="";const k=E.breakpoints||{};if(k)for(const[R,N]of Object.entries(k))window.matchMedia(R).matches&&(O+=R,We(M,N));if(v===void 0||O!==v){if(v=O,g!==0){let R=(y=(i=A[_])===null||i===void 0?void 0:i.slides[0])===null||y===void 0?void 0:y.index;R===void 0&&(R=m.initialSlide),M.initialSlide=R,M.slides=[];for(const N of se)N.isVirtual&&M.slides.push(N)}be(),m=M,F("enabled")!==!1&&(g=0,J("init"),(function(){for(const[R,N]of Object.entries(Object.assign(Object.assign({},l),m.plugins||{})))if(R&&!b[R]&&N instanceof Function){const W=N();W.init(de,zt),b[R]=W}J("initPlugins")})(),(function(){if(!d)return;const R=F("classes")||{};te(d,R.container);const N=F("style");if(N&&Ie(N))for(const[W,ee]of Object.entries(N))d.style.setProperty(W,ee);r=d.querySelector(`.${R.viewport}`),r||(r=document.createElement("div"),te(r,R.viewport),r.append(...Ft(d,`.${R.slide}`)),d.insertAdjacentElement("afterbegin",r)),d.carousel=de,J("initLayout")})(),(function(){if(!r)return;const R=F("classes")||{};se=[],[...Ft(r,`.${R.slide}`)].forEach(N=>{if(N.parentElement){const W=K(Object.assign({el:N,isVirtual:!1},N.dataset||{}));J("createSlide",W),se.push(W)}}),L();for(const N of se)J("addSlide",N);H(F("slides"));for(const N of se){const W=N.el;W?.parentElement===r&&(te(W,m.classes.slide),te(W,N.class),Q(N),J("attachSlideEl",N))}J("initSlides")})(),T(),g=1,te(d,(F("classes")||{}).isEnabled||""),pe(),Xe(),s=lt().on("start",()=>{n&&n.isPointerDown()||(Ge(),pe())}).on("step",R=>{const N=z;
1z=R.pos,z!==N&&(G=!1,pe())}).on("end",R=>{n?.isPointerDown()||(z=R.pos,s&&!S&&(z<he||z>ae)?s.spring({clamp:!0,mass:1,tension:200,friction:25,velocity:0,restDelta:1,restSpeed:1}).from({pos:z}).to({pos:ye(he,z,ae)}).start():G||(G=!0,J("settle")))}),_e(),(function(){if(!d||!r)return;d.addEventListener("click",B),document.addEventListener("mousemove",Se);const R=r.getBoundingClientRect();if(ne=R.height,ue=R.width,!f){let N=null;f=new ResizeObserver(()=>{N||(N=requestAnimationFrame(()=>{(function(){if(g!==1||!r)return;const W=A.length,ee=r.getBoundingClientRect(),ie=ee.height,ce=ee.width;W>1&&(D&&Math.abs(ie-ne)<.5||!D&&Math.abs(ce-ue)<.5)||(T(),_e(),ne=ie,ue=ce,D&&!ne||!D&&!ue||d&&r&&(W===A.length&&n?.isPointerDown()||(F("dragFree")&&(S||z>he&&z<ae)?(Ge(),pe()):ve(_,{transition:!1}))))})(),N=null}))}),f.observe(r)}})(),J("ready"))}}function Se(i){cn=i}function _e(){F("gestures")===!1?n&&(n.destroy(),n=void 0):n||(function(){const i=F("gestures");!n&&i!==!1&&r&&(n=ht(r,i).on("start",y=>{var M,O;if(!s||F("gestures",y)===!1)return;const{srcEvent:k}=y;D&&wt(k)&&!ut(k.target)&&at(k),s.pause(),s.getCurrentVelocities().pos=0;const R=(M=A[_])===null||M===void 0?void 0:M.slides[0],N=R?.el;R&&I.has(R.index)&&N&&(z=R.offset||0,z+=((function(W){const ee=window.getComputedStyle(W),ie=new DOMMatrixReadOnly(ee.transform);return{width:ie.m41||0,height:ie.m42||0}})(N)[Z]||0)*(j&&!D?1:-1)),w(),S||(z<he||z>ae)&&s.spring({clamp:!0,mass:1,tension:500,friction:25,velocity:((O=s.getCurrentVelocities())===null||O===void 0?void 0:O.pos)||0,restDelta:1,restSpeed:1}).from({pos:z}).to({pos:ye(he,z,ae)}).start()}).on("move",y=>{var M,O;if(F("gestures",y)===!1)return;const{srcEvent:k,axis:R,deltaX:N,deltaY:W}=y;if(wt(k)&&((M=k.touches)===null||M===void 0?void 0:M.length)>1)return;const ee=k.target,ie=ut(ee),ce=ie?ie.scrollHeight>ie.clientHeight?"y":"x":void 0;if(ie&&ie!==r&&(!R||R===ce))return;if(!R)return at(k),k.stopPropagation(),void k.stopImmediatePropagation();if(R==="y"&&!D||R==="x"&&D||(at(k),k.stopPropagation(),!s))return;const Ee=j&&!D?1:-1,Le=D?W:N;let Pe=s?.isRunning()?s.getEndValues().pos:z,Ce=1;S||(Pe<=he&&Le*Ee<0?(Ce=Math.max(.01,1-(Math.abs(1/ze()*Math.abs(Pe-he))||0)),Ce*=.2):Pe>=ae&&Le*Ee>0&&(Ce=Math.max(.01,1-(Math.abs(1/ze()*Math.abs(Pe-ae))||0)),Ce*=.2)),Pe+=Le*Ce*Ee,s.spring({clamp:!0,mass:1,tension:700,friction:25,velocity:((O=s.getCurrentVelocities())===null||O===void 0?void 0:O.pos)||0,restDelta:1,restSpeed:1}).from({pos:z}).to({pos:Pe}).start()}).on("panstart",y=>{F("gestures",y)!==!1&&y?.axis===(D?"y":"x")&&te(r,"is-dragging")}).on("panend",y=>{F("gestures",y)!==!1&&Fe(r,"is-dragging")}).on("end",y=>{var M,O;if(F("gestures",y)===!1)return;const{srcEvent:k,axis:R,velocityX:N,velocityY:W,currentTouch:ee}=y;if(ee.length>0||!s)return;const ie=k.target,ce=ut(ie),Ee=ce?ce.scrollHeight>ce.clientHeight?"y":"x":void 0,Le=ce&&(!R||R===Ee);D&&wt(k)&&!R&&B(k);const Pe=A.length,Ce=F("dragFree");if(!Pe)return;let je=Le?0:F("vertical")?W:N;R!==(D?"y":"x")&&(je=0);let He=s?.isRunning()?s.getEndValues().pos:z;const Be=j&&!D?1:-1;if(Le||(He+=je*(Ce?5:1)*Be),!S&&(je*Be<=0&&He<he||je*Be>=0&&He>ae)){let ke=0;return Math.abs(je)>0&&(ke=2*Math.abs(je),ke=Math.min(.3*ze(),ke)),He=ye(he+-1*ke,He,ae+ke),void s.spring({clamp:!0,mass:1,tension:380,friction:25,velocity:-1*je,restDelta:1,restSpeed:1}).from({pos:z}).to({pos:He}).start()}if(Ce||!((M=b.Autoscroll)===null||M===void 0)&&M.isEnabled())return void(Math.abs(je)>10?s.spring({clamp:!0,mass:1,tension:150,friction:25,velocity:-1*je,restDelta:1,restSpeed:1}).from({pos:z}).to({pos:He}).start():s.isRunning()||G||(G=!0,J("settle")));if(!Ce&&!(!((O=b.Autoscroll)===null||O===void 0)&&O.isEnabled())&&(!y.offsetX&&!y.offsetY||R==="y"&&!D||R==="x"&&D))return void ve(_,{transition:"tween"});let Te=Ne(He);Math.abs(je)>10&&Te===_&&(Te+=je>0?j&&!D?1:-1:j&&!D?-1:1),ve(Te,{transition:"tween",tween:{velocity:-1*je}})}).init())})(),De(r,"is-draggable",!!n&&A.length>0)}function Ue(i="*"){var y;const M=[];for(const O of se)(i==="*"||O.class&&O.class.includes(i)||O.el&&(!((y=O.el)===null||y===void 0)&&y.classList.contains(i)))&&M.push(O);u=void 0,Me=i,$=[...M]}function Ge(){if(!s)return;const i=Ne(s?.isRunning()?s.getEndValues().pos:z);
1i!==_&&(u=_,_=i,Q(),Xe(),Qe(),J("change",_,u))}function Xe(){var i,y;if(!d)return;for(const k of d.querySelectorAll("[data-carousel-index]"))k.innerHTML=_+"";for(const k of d.querySelectorAll("[data-carousel-page]"))k.innerHTML=_+1+"";for(const k of d.querySelectorAll("[data-carousel-pages]"))k.innerHTML=A.length+"";for(const k of d.querySelectorAll("[data-carousel-go-to]"))parseInt(((i=k.dataset)===null||i===void 0?void 0:i.carouselGoTo)||"-1",10)===_?k.setAttribute("aria-current","true"):k.removeAttribute("aria-current");for(const k of d.querySelectorAll("[data-carousel-go-prev]"))k.toggleAttribute("aria-disabled",!we()),we()?k.removeAttribute("tabindex"):k.setAttribute("tabindex","-1");for(const k of d.querySelectorAll("[data-carousel-go-next]"))k.toggleAttribute("aria-disabled",!Oe()),Oe()?k.removeAttribute("tabindex"):k.setAttribute("tabindex","-1");let M=!1;const O=(y=A[_])===null||y===void 0?void 0:y.slides[0];O&&(O.downloadSrc||O.type==="image"&&O.src)&&(M=!0);for(const k of d.querySelectorAll("[data-carousel-download]"))k.toggleAttribute("aria-disabled",!M)}function Qe(i){var y;i||(i=(y=A[_])===null||y===void 0?void 0:y.slides[0]);const M=i?.el;if(M)for(const O of M.querySelectorAll("[data-slide-index]"))O.innerHTML=i.index+1+""}function Ne(i){var y,M,O;if(!A.length)return 0;const k=Ae();let R=i;S?R-=Math.floor((i-((y=A[0])===null||y===void 0?void 0:y.pos))/k)*k||0:R=ye((M=A[0])===null||M===void 0?void 0:M.pos,i,(O=A[A.length-1])===null||O===void 0?void 0:O.pos);const N=new Map;let W=0;for(const ie of A){const ce=Math.abs(ie.pos-R),Ee=Math.abs(ie.pos-R-k),Le=Math.abs(ie.pos-R+k),Pe=Math.min(ce,Ee,Le);N.set(W,Pe),W++}const ee=N.size>0?[...N.entries()].reduce((ie,ce)=>ce[1]<ie[1]?ce:ie):[_,0];return parseInt(ee[0])}function nt(){return re}function ze(){return p}function Ae(i=!0){return $.length?$.reduce((y,M)=>y+M.dim,0)+($.length-(S&&i?0:1))*re:0}function x(i){const y=Ae(),M=ze();if(!y||!r||!M)return[];const O=[];i=i===void 0?z:i,S&&(i-=Math.floor(i/y)*y||0);let k=0;for(let R of $){const N=(W=0)=>{O.indexOf(R)>-1||(R.pos=k-i+W||0,R.offset+W>i-R.dim-c+.51&&R.offset+W<i+M+P-.51&&O.push(R))};R.offset=k,S&&(N(y),N(-1*y)),N(),k+=R.dim+re}return O}function H(i,y){const M=[];for(const O of Array.isArray(i)?i:[i]){const k=K(Object.assign(Object.assign({},O),{isVirtual:!0}));k.el||(k.el=document.createElement("div")),J("createSlide",k),M.push(k)}se.splice(y===void 0?se.length:y,0,...M),L();for(const O of M)J("addSlide",O),C(O);return Ue(Me),M}function K(i){return(xe(i)||i instanceof HTMLElement)&&(i={html:i}),Object.assign({index:-1,el:void 0,class:"",isVirtual:!0,dim:0,pos:0,offset:0,html:"",src:""},i)}function C(i){let y=i.el;if(!i||!y)return;const M=i.html?i.html instanceof HTMLElement?i.html:tt(i.html):void 0;M&&(te(M,"f-html"),i.htmlEl=M,te(y,"has-html"),y.append(M),J("contentReady",i))}function o(i){if(!r||!i)return;let y=i.el;if(y){if(y.setAttribute("index",i.index+""),y.parentElement!==r){let M;te(y,m.classes.slide),te(y,i.class),Q(i);for(const O of se)if(O.index>i.index){M=O.el;break}r.insertBefore(y,M&&r.contains(M)?M:null),J("attachSlideEl",i)}return Qe(i),y}}function a(i){const y=i?.el;y&&(y.remove(),h(y),J("detachSlideEl",i))}function L(){for(let i=0;i<se.length;i++){const y=se[i],M=y.el;M&&(y.index!==i&&h(M),M.setAttribute("index",`${i}`)),y.index=i}}function T(){var i,y,M,O,k;if(!d||!r)return;j=F("rtl"),D=F("vertical"),Z=D?"height":"width";const R=F("classes");if(De(d,R.isLTR,!j),De(d,R.isRTL,j),De(d,R.isHorizontal,!D),De(d,R.isVertical,D),De(d,R.hasAdaptiveHeight,F("adaptiveHeight")),p=0,c=0,P=0,re=0,r){r.childElementCount||(r.style.display="grid");const W=r.getBoundingClientRect();p=r.getBoundingClientRect()[Z]||0;const ee=window.getComputedStyle(r);re=parseFloat(ee.getPropertyValue("--f-carousel-gap"))||0,ee.getPropertyValue("overflow-"+(D?"y":"x"))==="visible"&&(c=Math.abs(W[D?"top":"left"]),P=Math.abs(window[D?"innerHeight":"innerWidth"]-W[D?"bottom":"right"])),r.style.display=""}if(!p)return;const N=(function(){let W=0;if(r){let ee=document.createElement("div");ee.style.display="block",te(ee,m.classes.slide),r.appendChild(ee),W=ee.getBoundingClientRect()[Z],ee.remove(),ee=void 0}return W})();for(const W of $){const ee=W.el;let ie=0;if(!W.isVirtual&&ee&&vt(ee)){let ce=!1;ee.parentElement&&ee.parentElement===r||(r.appendChild(ee),ce=!0),ie=ee.getBoundingClientRect()[Z],ce&&((i=ee.parentElement)===null||i===void 0||i.removeChild(ee))}else ie=N;W.dim=ie}if(S=!1,F("infinite")){S=!0;const W=Ae();let ee=p+c+P;
1for(let ie=0;ie<$.length;ie++){const ce=((y=$[ie])===null||y===void 0?void 0:y.dim)+re;if(W-ce<ee&&W-ce-ee<ce){S=!1;break}}}(function(){var W;if(!d)return;const ee=ze(),ie=Ae(!1);let ce=F("slidesPerPage");ce=ce==="auto"?1/0:parseFloat(ce+""),A=[];let Ee=0,Le=0;for(const Te of $)(!A.length||Ee+Te.dim-ee>.05||Le>=ce)&&(A.push({index:A.length,slides:[],dim:0,offset:0,pos:0}),Ee=0,Le=0),(W=A[A.length-1])===null||W===void 0||W.slides.push(Te),Ee+=Te.dim+re,Le++;const Pe=F("center"),Ce=F("fill");let je=0;for(const Te of A){Te.dim=(Te.slides.length-1)*re;for(const ke of Te.slides)Te.dim+=ke.dim;Te.offset=je,Te.pos=je,Pe!==!1&&(Te.pos-=.5*(ee-Te.dim)),Ce&&!S&&ie>ee&&(Te.pos=ye(0,Te.pos,ie-ee)),je+=Te.dim+re}const He=[];let Be;for(const Te of A){const ke=Object.assign({},Te);Be&&Math.abs(ke.pos-Be.pos)<.1?(Be.dim+=ke.dim,Be.slides=[...Be.slides,...ke.slides]):(Be=ke,ke.index=He.length,He.push(ke))}A=He,_=ye(0,_,A.length-1)})(),he=((M=A[0])===null||M===void 0?void 0:M.pos)||0,ae=((O=A[A.length-1])===null||O===void 0?void 0:O.pos)||0,g===0?(function(){var W;u=void 0,_=F("initialPage");const ee=F("initialSlide")||void 0;ee!==void 0&&(_=de.getPageIndex(ee)||0),_=ye(0,_,A.length-1),z=((W=A[_])===null||W===void 0?void 0:W.pos)||0,fe=z})():fe=((k=A[_||0])===null||k===void 0?void 0:k.pos)||0,J("refresh"),Xe()}function h(i){if(!i||!vt(i))return;const y=parseInt(i.getAttribute("index")||"-1");let M="";for(const k of Array.from(i.classList)){const R=k.match(/^f-(\w+)(Out|In)$/);R&&R[1]&&(M=R[1]+"")}if(!i||!M)return;const O=[`f-${M}Out`,`f-${M}In`,"to-prev","to-next","from-prev","from-next"];i.removeEventListener("animationend",q),Fe(i,O.join(" ")),I.delete(y)}function w(){if(!r)return;const i=I.size>0;for(const y of $)h(y.el);I.clear(),i&&pe()}function q(i){var y;((y=i.animationName)===null||y===void 0?void 0:y.substring(0,2))==="f-"&&(h(i.target),I.size||(Fe(d,"in-transition"),!G&&Math.abs(de.getPosition(!0)-fe)<.5&&(G=!0,J("settle"))),pe())}function B(i){var y;if(i.defaultPrevented)return;const M=i.composedPath()[0];if(M.closest("[data-carousel-go-prev]"))return at(i),void de.prev();if(M.closest("[data-carousel-go-next]"))return at(i),void de.next();const O=M.closest("[data-carousel-go-to]");if(O)return at(i),void de.goTo(parseFloat(O.dataset.carouselGoTo||"")||0);if(M.closest("[data-carousel-download]")){at(i);const k=(y=A[_])===null||y===void 0?void 0:y.slides[0];if(k&&(k.downloadSrc||k.type==="image"&&k.src)){const R=k.downloadFilename,N=document.createElement("a"),W=k.downloadSrc||k.src||"";N.href=W,N.target="_blank",N.download=R||W,N.click()}return}J("click",i)}function Y(i){var y;const M=i.el;M&&((y=M.querySelector(".f-spinner"))===null||y===void 0||y.remove())}function X(i){var y;const M=i.el;M&&((y=M.querySelector(".f-html.is-error"))===null||y===void 0||y.remove(),Fe(M,"has-error"))}function Q(i){var y;i||(i=(y=A[_])===null||y===void 0?void 0:y.slides[0]);const M=i?.el;if(!M)return;let O=F("formatCaption",i);O===void 0&&(O=i.caption),O=O||"";const k=F("captionEl");if(k&&k instanceof HTMLElement){if(i.index!==_)return;if(xe(O)&&(k.innerHTML=le(O+"")),O instanceof HTMLElement){if(O.parentElement===k)return;k.innerHTML="",O.parentElement&&(O=O.cloneNode(!0)),k.append(O)}return}if(!O)return;let R=i.captionEl||M.querySelector(".f-caption");!R&&O instanceof HTMLElement&&O.classList.contains("f-caption")&&(R=O),R||(R=document.createElement("div"),te(R,"f-caption"),xe(O)?R.innerHTML=le(O+""):O instanceof HTMLElement&&(O.parentElement&&(O=O.cloneNode(!0)),R.append(O)));const N=`f-caption-${un}_${i.index}`;R.setAttribute("id",N),R.dataset.selectable="true",te(M,"has-caption"),M.setAttribute("aria-labelledby",N),i.captionEl=R,M.insertAdjacentElement("beforeend",R)}function ve(i,y={}){var M,O;let{transition:k,tween:R}=Object.assign({transition:m.transition,tween:m.tween},y||{});if(!d||!s)return;const N=A.length;if(!N||(function(ie,ce){var Ee,Le,Pe;if(!(d&&p&&s&&ce&&xe(ce)&&ce!=="tween"))return!1;for(const Nn of V)if(p-Nn.dim>.5)return!1;if(c>.5||P>.5)return;const Ce=A.length;let je=ie>_?1:-1;ie=S?(ie%Ce+Ce)%Ce:ye(0,ie,Ce-1),j&&(je*=-1);const He=(Ee=A[_])===null||Ee===void 0?void 0:Ee.slides[0],Be=He?.index,Te=(Le=A[ie])===null||Le===void 0?void 0:Le.slides[0],ke=Te?.index,en=(Pe=A[ie])===null||Pe===void 0?void 0:Pe.pos;if(ke===void 0||Be===void 0||Be===ke||z===en||Math.abs(p-(Te?.dim||0))>1)return!1;G=!1,s.pause(),w(),te(d,"in-transition"),z=fe=en;const dt=o(He),ft=o(Te);return Ge(),dt&&(I.add(Be),dt.style.transform="",dt.addEventListener("animationend",q),Fe(dt,m.classes.isSelected),dt.inert=!1,te(dt,`f-${ce}Out to-${je>0?"next":"prev"}`)),ft&&(I.add(ke),ft.style.transform="",ft.addEventListener("animationend",q),te(ft,m.classes.isSelected),ft.inert=!1,te(ft,`f-${ce}In from-${je>0?"prev":"next"}`)),pe(),!0})(i,k))return;i=S?(i%N+N)%N:ye(0,i,N-1),fe=((M=A[i||0])===null||M===void 0?void 0:M.pos)||0;const ee=s.isRunning()?s.getEndValues().pos:z;if(Math.abs(fe-ee)<1)return z=fe,_!==i&&(Q(),u=_,_=i,Xe(),Qe(),J("change",_,u)),pe(),void(G||(G=!0,J("settle")));if(s.pause(),w(),S){const ie=Ae(),ce=Math.floor((ee-((O=A[0])===null||O===void 0?void 0:O.pos))/ie)||
10,Ee=fe+ce*ie;fe=[Ee+ie,Ee,Ee-ie].reduce(function(Le,Pe){return Math.abs(Pe-ee)<Math.abs(Le-ee)?Pe:Le})}k!==!1&&Ie(R)?s.spring(We({},m.tween,R)).from({pos:z}).to({pos:fe}).start():(z=fe,Ge(),pe(),G||(G=!0,J("settle")))}function me(i){var y;let M=z;if(S&&i!==!0){const O=Ae();M-=(Math.floor((z-((y=A[0])===null||y===void 0?void 0:y.pos)||0)/O)||0)*O}return M}function pe(){var i;if(!d||!r)return;V=x();const y=new Set,M=[],O=A[_],k=m.setTransform;let R;for(const N of $){const W=I.has(N.index),ee=V.indexOf(N)>-1,ie=((i=O?.slides)===null||i===void 0?void 0:i.indexOf(N))>-1;if(N.isVirtual&&!W&&!ee)continue;let ce=o(N);if(ce&&(M.push(N),ie&&y.add(ce),F("adaptiveHeight")&&ie)){const Ee=(ce.lastElementChild||ce).getBoundingClientRect().height;R=R==null?Ee:Math.max(R,Ee)}}r&&R&&(r.style.height=`${R}px`),[...Ft(r,`.${m.classes.slide}`)].forEach(N=>{De(N,m.classes.isSelected,y.has(N));const W=se[parseInt(N.getAttribute("index")||"-1")];if(!W)return N.remove(),void h(N);const ee=I.has(W.index),ie=V.indexOf(W)>-1;if(W.isVirtual&&!ee&&!ie)return void a(W);if(N.inert=!ie,k===!1)return;let ce=W.pos?Math.round(1e4*W.pos)/1e4:0,Ee=0,Le=0,Pe=0,Ce=0;ee||(Ee=D?0:j?-1*ce:ce,Le=D?ce:0,Pe=jt(Ee,0,W.dim,0,100),Ce=jt(Le,0,W.dim,0,100)),k instanceof Function&&!ee?k(de,W,{x:Ee,y:Le,xPercent:Pe,yPercent:Ce}):N.style.transform=Ee||Le?`translate3d(${Pe}%, ${Ce}%,0)`:""}),J("render",M)}function be(){d?.removeEventListener("click",B),document.removeEventListener("mousemove",Se),I.clear(),f?.disconnect(),f=void 0;for(const i of se){let y=i.el;y&&vt(y)&&(i.state=void 0,Y(i),X(i),i.isVirtual?(a(i),i.el=void 0):(h(y),y.style.transform="",r&&!r.contains(y)&&r.appendChild(y)))}for(const i of Object.values(b))i?.destroy();b={},n?.destroy(),n=void 0,s?.destroy(),s=void 0;for(const[i,y]of Object.entries(m.classes||{}))i!=="container"&&Fe(d,y);Fe(r,"is-draggable")}function we(){return S||_>0}function Oe(){return S||_<A.length-1}const de={add:function(i,y){var M;let O=z;const k=_,R=Ae(),N=s?.isRunning()?s.getEndValues().pos:z,W=R&&Math.floor((N-(((M=A[0])===null||M===void 0?void 0:M.pos)||0))/R)||0;return H(i,y),Ue(Me),T(),s&&R&&(k===_&&(O-=W*R),O===fe?z=fe:s.spring({clamp:!0,mass:1,tension:300,friction:25,restDelta:1,restSpeed:1}).from({pos:O}).to({pos:fe}).start()),pe(),de},canGoPrev:we,canGoNext:Oe,destroy:function(){return J("destroy"),window.removeEventListener("resize",ge),be(),oe.clear(),d=null,A=[],se=[],m=Object.assign({},gt),b={},$=[],v=void 0,Me="*",g=2,de},emit:J,filter:function(i="*"){return Ue(i),T(),z=ye(he,z,ae),pe(),J("filter",i),de},getContainer:function(){return d},getGapDim:nt,getGestures:function(){return n},getLastMouseMove:function(){return cn},getOption:function(i){return F(i)},getOptions:function(){return m},getPage:function(){return A[_]},getPageIndex:function(i){if(i!==void 0){for(const y of A||[])for(const M of y.slides)if(M.index===i)return y.index;return-1}return _},getPageIndexFromPosition:Ne,getPageProgress:function(i,y){var M;i===void 0&&(i=_);const O=A[i];if(!O)return i>_?-1:1;const k=Ae(),R=nt();let N=O.pos,W=me();if(S&&y!==!0){const ee=Math.floor((W-((M=A[0])===null||M===void 0?void 0:M.pos))/k)||0;W-=ee*k,N=[N+k,N,N-k].reduce(function(ie,ce){return Math.abs(ce-W)<Math.abs(ie-W)?ce:ie})}return(W-N)/(O.dim+R)||0},getPageVisibility:function(i){var y;i===void 0&&(i=_);const M=A[i];if(!M)return i>_?-1:1;const O=me(),k=ze();let R=M.pos;if(S){const N=Ae(),W=R+(Math.floor((O-((y=A[0])===null||y===void 0?void 0:y.pos))/N)||0)*N;R=[W+N,W,W-N].reduce(function(ee,ie){return Math.abs(ie-O)<Math.abs(ee-O)?ie:ee})}return R>O&&R+M.dim<O+k?1:R<O?(R+M.dim-O)/M.dim||0:R+M.dim>O+k&&(O+k-R)/M.dim||0},getPages:function(){return A},getPlugins:function(){return b},getPosition:me,getSlides:function(){return se},getState:function(){return g},getTotalSlideDim:Ae,getTween:function(){return s},getViewport:function(){return r},getViewportDim:ze,getVisibleSlides:function(i){return i===void 0?V:x(i)},goTo:ve,hasNavigated:function(){return u!==void 0},hideError:X,hideLoading:Y,init:function(){if(!e||!vt(e))throw new Error("No Element found");return g!==0&&(be(),g=0),d=e,E=t,window.removeEventListener("resize",ge),E.breakpoints&&window.addEventListener("resize",ge),ge(),de},isInfinite:function(){return S},isInTransition:function(){return I.size>0},isRTL:function(){return j},isSettled:function(){return G},isVertical:function(){return D},localize:le,next:function(i={}){return ve(_+1,i),de},off:function(i,y){for(const M of i instanceof Array?i:[i])oe.has(M)&&oe.set(M,oe.get(M).filter(O=>O!==y));return de},on:function(i,y){for(const M of i instanceof Array?i:[i])oe.set(M,[...oe.get(M)||[],y]);return de},prev:function(i={}){return ve(_-1,i),de},reInit:function(i={},y){return be(),g=0,v=void 0,Me="*",t=i,E=i,Ie(y)&&(l=y),ge(),de},remove:function(i){i===void 0&&(i=se.length-1);const y=se[i];return y&&(J("removeSlide",y),y.el&&(h(y.el),y.el.remove(),y.el=void 0),se.splice(i,1),Ue(Me),T(),z=ye(he,z,ae),pe()),de},setPosition:function(i){z=i,Ge(),pe()},showError:function(i,y){if(g===1){Y(i),X(i);const M=i.el;if(M){const O=document.createElement("div");te(O,"f-html"),te(O,"is-error"),O.innerHTML=le(y||"<p>{{ERROR}}</p>"),i.htmlEl=O,te(M,"has-html has-error"),M.insertAdjacentElement("afterbegin",O),J("contentReady",i)}}return de},showLoading:function(i){const y=i.el,M=y?.querySelector(".f-spinner");if(!y||M)return de;const O=F("spinnerTpl"),k=tt(O);return k&&(te(k,"f-spinner"),y.insertAdjacentElement("beforeend",k)),de},version:"6.1.12"};return de};zt.l10n={en_EN:Kt},zt.getDefaults=()=>gt;const dn=(e=!0,t="--f-scrollbar-compensate",l="--f-body-margin",n="hide-scrollbar")=>{const s=document,f=s.body,u=s.documentElement;if(e){if(f.classList.contains(n))return;let v=window.innerWidth-u.getBoundingClientRect().width;v<0&&(v=0),u.style.setProperty(t,`${v}px`);const g=parseFloat(window.getComputedStyle(f).marginRight);g&&f.style.setProperty(l,`${g}px`),f.classList.add(n)}else f.classList.remove(n),f.style.setProperty(l,""),s.documentElement.style.setProperty(t,"")};function At(){return!(typeof window>"u"||!window.document||!window.document.createElement)}const ct=function(e="",t="",l=""){return e.split(t).join(l)};const fn={tpl:e=>`<img class="f-panzoom__content" 2 ${e.srcset?'data-lazy-srcset="{{srcset}}"':""} 3 ${e.sizes?'data-lazy-sizes="{{sizes}}"':""} 4 data-lazy-src="{{src}}" alt="{{alt}}" />`},Zn=()=>{let e;function t(m,b){const d=e?.getOptions().Zoomable;let r=(Ie(d)?Object.assign(Object.assign({},fn),d):fn)[m];return r&&typeof r=="function"&&b?r(b):r}function l(){e&&e.getOptions().Zoomable!==!1&&(e.on("addSlide",f),e.on("removeSlide",u),e.on("attachSlideEl",v),e.on("click",
4s),e.on("change",n),e.on("ready",n))}function n(){g();const m=e?.getVisibleSlides()||[];if(m.length>1||e?.getOption("transition")==="slide")for(const b of m){const d=b.panzoomRef;d&&(e?.getPage().slides||[]).indexOf(b)<0&&d.execute(U.ZoomTo,Object.assign({},d.getStartPosition()))}}function s(m,b){const d=b.target;d&&!b.defaultPrevented&&d.dataset.panzoomAction&&E(d.dataset.panzoomAction)}function f(m,b){const d=b.el;if(!e||!d||b.panzoomRef)return;const r=b.src||b.lazySrc||"",p=b.alt||b.caption||`Image #${b.index}`,c=b.srcset||b.lazySrcset||"",P=b.sizes||b.lazySizes||"";if(r&&xe(r)&&!b.html&&(!b.type||b.type==="image")){b.type="image",b.thumbSrc=b.thumbSrc||r;let z=t("tpl",b);z=ct(z,"{{src}}",r+""),z=ct(z,"{{srcset}}",c+""),z=ct(z,"{{sizes}}",P+""),d.insertAdjacentHTML("afterbegin",z)}const S=d.querySelector(".f-panzoom__content");if(!S)return;S.setAttribute("alt",p+"");const j=b.width&&b.width!=="auto"?parseFloat(b.width+""):"auto",D=b.height&&b.height!=="auto"?parseFloat(b.height+""):"auto",Z=Wt(d,Object.assign({width:j,height:D,classes:{container:"f-zoomable"},event:()=>e?.getLastMouseMove(),spinnerTpl:()=>e?.getOption("spinnerTpl")||""},t("Panzoom")));Z.on("*",(z,G,..._)=>{e&&(G==="loading"&&(b.state=0),G==="loaded"&&(b.state=1),G==="error"&&(b.state=2,e?.showError(b,"{{IMAGE_ERROR}}")),e.emit(`panzoom:${G}`,b,..._),G==="loading"&&e.emit("contentLoading",b),G==="ready"&&e.emit("contentReady",b),b.index===e?.getPageIndex()&&g())}),b.panzoomRef=Z}function u(m,b){b.panzoomRef&&(b.panzoomRef.destroy(),b.panzoomRef=void 0)}function v(m,b){const d=b.panzoomRef;if(d)switch(d.getState()){case 0:d.init();break;case 3:d.execute(U.ZoomTo,Object.assign(Object.assign({},d.getStartPosition()),{velocity:0}))}}function g(){var m,b;const d=e?.getContainer()||void 0,r=(b=(m=e?.getPage())===null||m===void 0?void 0:m.slides[0])===null||b===void 0?void 0:b.panzoomRef;if(d)if(r)r.updateControls(d);else for(const p of d.querySelectorAll("[data-panzoom-action]")||[])p.setAttribute("aria-disabled",""),p.setAttribute("tabindex","-1")}function E(m,...b){var d;(d=e?.getPage().slides[0].panzoomRef)===null||d===void 0||d.execute(m,...b)}return{init:function(m){e=m,e.on("initPlugins",l)},destroy:function(){if(e){e.off("initPlugins",l),e.off("addSlide",f),e.off("removeSlide",u),e.off("attachSlideEl",v),e.off("click",s),e.off("change",n),e.off("ready",n);for(const m of e.getSlides())u(0,m)}e=void 0},execute:E}};const gn={syncOnChange:!1,syncOnClick:!0,syncOnHover:!1},kn=()=>{let e,t;function l(){const r=e?.getOptions().Sync;return Ie(r)?Object.assign(Object.assign({},gn),r):gn}function n(r){var p,c,P;e&&r&&(t=r,e.getOptions().classes=Object.assign(Object.assign({},e.getOptions().classes),{isSelected:""}),e.getOptions().initialSlide=((c=(p=t.getPage())===null||p===void 0?void 0:p.slides[0])===null||c===void 0?void 0:c.index)||0,l().syncOnChange&&e.on("change",u),l().syncOnClick&&e.on("click",g),l().syncOnHover&&((P=e.getViewport())===null||P===void 0||P.addEventListener("mouseover",E)),(function(){!e||!t||(e.on("ready",f),e.on("refresh",m),t.on("change",v),t.on("filter",b))})())}function s(){const r=l().target;e&&r&&n(r)}function f(){d()}function u(){var r;if(e&&t){const p=((r=e.getPage())===null||r===void 0?void 0:r.slides)||[],c=t.getPageIndex(p[0].index||0);c>-1&&t.goTo(c,e.hasNavigated()?void 0:{tween:!1,transition:!1}),d()}}function v(){var r;if(e&&t){const p=e.getPageIndex(((r=t.getPage())===null||r===void 0?void 0:r.slides[0].index)||0);p>-1&&e.goTo(p,t.hasNavigated()?void 0:{tween:!1,transition:!1}),d()}}function g(r,p){var c;if(!e||!t||!((c=e.getTween())===null||c===void 0)&&c.isRunning())return;const P=e?.getOptions().classes.slide;if(!P)return;const S=P?p.target.closest(`.${P}`):null;
4if(S){const j=parseInt(S.getAttribute("index")||"")||0,D=t.getPageIndex(j);t.goTo(D)}}function E(r){e&&g(0,r)}function m(){var r;if(e&&t){const p=e.getPageIndex(((r=t.getPage())===null||r===void 0?void 0:r.slides[0].index)||0);p>-1&&e.goTo(p,{tween:!1,transition:!1}),d()}}function b(r,p){e&&t&&(e.filter(p),v())}function d(){var r,p,c;if(!t)return;const P=((p=(r=t.getPage())===null||r===void 0?void 0:r.slides[0])===null||p===void 0?void 0:p.index)||0;for(const S of e?.getSlides()||[])(c=S.el)===null||c===void 0||c.classList.toggle("is-selected",S.index===P)}return{init:function(r){e=r,e.on("initSlides",s)},destroy:function(){var r;e?.off("ready",f),e?.off("refresh",m),e?.off("change",u),e?.off("click",g),(r=e?.getViewport())===null||r===void 0||r.removeEventListener("mouseover",E),t?.off("change",v),t?.off("filter",b),t=void 0,e?.off("initSlides",s),e=void 0},getTarget:function(){return t}}};const vn={showLoading:!0,preload:1},yt="is-lazyloading",_t="is-lazyloaded",mn="has-lazyerror",Fn=()=>{let e;function t(){const s=e?.getOptions().Lazyload;return Ie(s)?Object.assign(Object.assign({},vn),s):vn}function l(s){var f;const u=s.el;if(!u)return;const v="[data-lazy-src],[data-lazy-srcset],[data-lazy-bg]",g=Array.from(u.querySelectorAll(v));u.matches(v)&&g.push(u);for(const E of g){const m=E.dataset.lazySrc,b=E.dataset.lazySrcset,d=E.dataset.lazySizes,r=E.dataset.lazyBg,p=(E instanceof HTMLImageElement||E instanceof HTMLSourceElement)&&(m||b),c=E instanceof HTMLElement&&r;if(!p&&!c)continue;const P=m||b||r;if(P){if(p&&P){const S=(f=E.parentElement)===null||f===void 0?void 0:f.classList.contains("f-panzoom__wrapper");t().showLoading&&e?.showLoading(s),E.addEventListener("load",()=>{e?.hideLoading(s),Fe(E,mn),E instanceof HTMLImageElement?E.decode().then(()=>{Fe(E,yt),te(E,_t)}).catch(()=>{Fe(E,yt),te(E,_t)}):(Fe(E,yt),te(E,_t)),S||e==null||e.emit("lazyLoad:loaded",s,E,P)}),E.addEventListener("error",()=>{e?.hideLoading(s),Fe(E,yt),te(E,mn),S||e==null||e.emit("lazyLoad:error",s,E,P)}),E.classList.add("f-lazyload"),E.classList.add(yt),S||e==null||e.emit("lazyLoad:load",s,E,P),m&&(E.src=m),b&&(E.srcset=b),d&&(E.sizes=d)}else c&&(document.body.contains(E)||(document.createElement("img").src=r),E.style.backgroundImage=`url('${r}')`);delete E.dataset.lazySrc,delete E.dataset.lazySrcset,delete E.dataset.lazySizes,delete E.dataset.lazyBg}}}function n(){if(!e)return;const s=[...e.getVisibleSlides()],f=t().preload;if(f>0){const u=e.getPosition(),v=e.getViewportDim();s.push(...e.getVisibleSlides(u+v*f),...e.getVisibleSlides(u-v*f))}for(const u of s)l(u)}return{init:function(s){e=s,e.on("render",n)},destroy:function(){e?.off("render",n),e=void 0}}};const pn='<svg width="24" height="24" viewBox="0 0 24 24" tabindex="-1">',hn="</svg>",yn={prevTpl:pn+'<path d="M15 3l-9 9 9 9"></path>'+hn,nextTpl:pn+'<path d="M9 3l9 9-9 9"></path>'+hn},Gn=()=>{let e,t,l;function n(){const v=e?.getOptions().Arrows;return Ie(v)?Object.assign(Object.assign({},yn),v):yn}function s(v){if(!e)return;const g=`<button data-carousel-go-${v} tabindex="0" class="f-button is-arrow is-${v}" title="{{${v.toUpperCase()}}}">`+n()[`${v}Tpl`]+"</button",E=tt(e.localize(g))||void 0;return E&&te(E,n()[`${v}Class`]),E}function f(){var v;t?.remove(),t=void 0,l?.remove(),l=void 0,(v=e?.getContainer())===null||v===void 0||v.classList.remove("has-arrows")}function u(){e&&e.getOptions().Arrows!==!1&&e.getPages().length>1?((function(){if(!e)return;const v=e.getViewport();v&&(t||(t=s("prev"),t&&v.insertAdjacentElement("beforebegin",t)),l||(l=s("next"),l&&v.insertAdjacentElement("afterend",l)),De(e.getContainer(),"has-arrows",!(!t&&!l)))})(),e&&(t?.toggleAttribute("aria-disabled",!e.canGoPrev()),l?.toggleAttribute("aria-disabled",!e.canGoNext()))):f()}return{init:function(v){e=v.on(["change","refresh"],u)},destroy:function(){f(),e?.off(["change","refresh"],u),e=void 0}}};const _n='<circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/>',Ht='<g><line x1="11" y1="8" x2="11" y2="14"></line></g>'+_n,Xn={moveLeft:["moveLeft","MOVE_LEFT",'<path d="M5 12h14M5 12l6 6M5 12l6-6"/>'],moveRight:["moveRight","MOVE_RIGHT",'<path d="M5 12h14M13 18l6-6M13 6l6 6"/>'],moveUp:["moveUp","MOVE_UP",'<path d="M12 5v14M18 11l-6-6M6 11l6-6"/>'],moveDown:["moveDown","MOVE_DOWN",'<path d="M12 5v14M18 13l-6 6M6 13l6 6"/>'],zoomOut:["zoomOut","ZOOM_OUT",_n],zoomIn:["zoomIn","ZOOM_IN",Ht],toggleFull:["toggleFull","TOGGLE_FULL",Ht],iterateZoom:["iterateZoom","ITERATE_ZOOM",Ht],toggle1to1:["toggleFull","TOGGLE_FULL",'<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"/>'],rotateCCW:["rotateCCW","ROTATE_CCW",'<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"/>'],rotateCW:["rotateCW","ROTATE_CW",'<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"/>'],flipX:["flipX","FLIP_X",'<path d="M12 3v18M16 7v10h5L16 7M8 7v10
4H3L8 7"/>'],flipY:["flipY","FLIP_Y",'<path d="M3 12h18M7 16h10L7 21v-5M7 8h10L7 3v5"/>'],reset:["reset","RESET",'<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"/>'],toggleFS:["toggleFS","TOGGLE_FS",'<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>']},Jt={};for(const[e,t]of Object.entries(Xn))Jt[e]={tpl:`<button data-panzoom-action="${t[0]}" class="f-button" title="{{${t[1]}}}"><svg>${t[2]}</svg></button>`};var bn;(function(e){e.Left="left",e.middle="middle",e.right="right"})(bn||(bn={}));const En=Object.assign({counter:{tpl:'<div class="f-counter"><span data-carousel-page></span>/<span data-carousel-pages></span></div>'},download:{tpl:'<button data-carousel-download class="f-button" title="{{DOWNLOAD}}"><svg><path d="M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2M7 11l5 5 5-5M12 4v12"/></svg></button>'},autoplay:{tpl:'<button data-autoplay-action="toggle" class="f-button" title="{{TOGGLE_AUTOPLAY}}"><svg><g><path d="M5 3.5 19 12 5 20.5Z"/></g><g><path d="M8 4v15M17 4v15"/></g></svg></button>'},thumbs:{tpl:'<button data-thumbs-action="toggle" class="f-button" title="{{TOGGLE_THUMBS}}"><svg><rect width="18" height="14" x="3" y="3" rx="2"/><path d="M4 21h1M9 21h1M14 21h1M19 21h1"/></svg></button>'}},Jt),wn={absolute:!1,display:{left:[],middle:["zoomIn","zoomOut","toggle1to1","rotateCCW","rotateCW","flipX","flipY","reset"],right:[]},enabled:"auto",items:{}},Hn=()=>{let e,t;function l(s){const f=e?.getOptions().Toolbar;let u=(Ie(f)?Object.assign(Object.assign({},wn),f):wn)[s];return u&&typeof u=="function"&&e?u(e):u}function n(){var s;if(!e?.getOptions().Toolbar||!e||t)return;const f=e.getContainer();if(!f)return;let u=l("enabled");if(!u)return;const v=l("absolute"),g=e.getSlides().length>1;let E=!1,m=!1;for(const P of e.getSlides())P.panzoomRef&&(E=!0),(P.downloadSrc||P.type==="image"&&P.src)&&(m=!0);const b=((s=e.getPlugins().Thumbs)===null||s===void 0?void 0:s.isEnabled())||!1,d=g&&e.getPlugins().Autoplay||!1,r=e.getPlugins().Fullscreen&&(document.fullscreenEnabled||document.webkitFullscreenEnabled);if(u==="auto"&&(u=E),!u)return;t=f.querySelector(".f-carousel__toolbar")||void 0,t||(t=document.createElement("div"),te(t,"f-carousel__toolbar"));const p=l("display"),c=We({},En,l("items"));for(const P of["left","middle","right"]){const S=p[P]||[],j=document.createElement("div");te(j,`f-carousel__toolbar__column is-${P}`);for(const D of S){let Z;if(xe(D)){if(D==="counter"&&!g||D==="autoplay"&&!d||Jt[D]&&!E||D==="fullscreen"&&!r||D==="thumbs"&&!b||D==="download"&&!m)continue;Z=c[D]}if(Ie(D)&&(Z=D),Z&&Z.tpl){let z=e.localize(Z.tpl);z=z.split("<svg>").join('<svg tabindex="-1" width="24" height="24" viewBox="0 0 24 24">');const G=tt(z);G&&(typeof Z.click=="function"&&e&&G.addEventListener("click",_=>{_.preventDefault(),_.stopPropagation(),typeof Z.click=="function"&&e&&Z.click(e,_)}),j.append(G))}}t.append(j)}if(t.childElementCount){if(v&&te(t,"is-absolute"),!t.parentElement){const P=l("parentEl");P?P.insertAdjacentElement("afterbegin",t):f.insertAdjacentElement("afterbegin",t)}f.contains(t)&&(te(f,"has-toolbar"),v&&te(f,"has-absolute-toolbar"))}}return{init:function(s){e=s,e?.on("initSlides",n)},destroy:function(){e?.off("initSlides",n),Fe(e?.getContainer(),"has-toolbar has-absolute-toolbar"),t?.remove(),t=void 0},add:function(s,f){En[s]=f},isEnabled:function(){return!!t}}};const xn={autoStart:!0,pauseOnHover:!0,showProgressbar:!0,timeout:2e3},Yn=()=>{let e,t,l=!1,n=!1,s=!1,f=null;function u(z){const G=e?.getOptions().Autoplay;let _=(Ie(G)?Object.assign(Object.assign({},xn),G):xn)[z];return _&&typeof _=="function"&&e?_(e):_}function v(){clearTimeout(t),t=void 0}function g(){if(!e||!l||s||n||t||!e.isSettled()||(function(){var G;const _=((G=e?.getPage())===null||G===void 0?void 0:G.slides)||[];for(const fe of _)if(fe.state===0)return!0;return!1})())return;(function(){var G,_,fe,he;if(!e||(b(),!u("showProgressbar")))return;let ae=u("progressbarParentEl");if(!ae&&(!((G=e.getPlugins().Toolbar)===null||G===void 0)&&G.isEnabled())&&(ae=e.getContainer()),!ae&&((_=e.getPlugins().Toolbar)===null||_===void 0?void 0:_.isEnabled())!==!0){const se=((fe=e.getPages()[0])===null||fe===void 0?void 0:fe.slides)||[],$=((he=e.getPage())===null||he===void 0?void 0:he.slides)||[];se.length===1&&$.length===1&&(ae=$[0].el)}if(ae||(ae=e.getViewport()),!ae)return;f=document.createElement("div"),te(f,"f-progressbar"),ae.prepend(f);const Me=u("timeout")||1e3;f.style.animationDuration=`${Me}ms`})();const z=u("timeout");t=setTimeout(()=>{e&&l&&!n&&(e.isInfinite()||e.getPageIndex()!==e.getPages().length-1?e.next():e.goTo(0))},z)}function E(){var z;if(!e||e.getPages().length<2||e.getOptions().Autoplay===!1||l)return;l=!0,e.emit("autoplay:start",u("timeout")),te(e.getContainer(),"has-autoplay"),(z=e.getTween())===null||z===void 0||z.on("start",S);const G=e?.getContainer();G&&u("pauseOnHover")&&matchMedia("(hover: hover)").matches&&(G.addEventListener("mouseenter",j,!1),G.addEventListener("mouseleave",D,!1)),e.on("change",c),e.on("settle",P),e.on("contentReady",r),e.on("panzoom:touchStart",m),e.on("panzoom:wheel",m),e.isSettled()&&g()}function m(){var z;
4if(v(),b(),e){if(l){e.emit("autoplay:end"),(z=e.getTween())===null||z===void 0||z.off("start",S);const G=e.getContainer();G&&(G.classList.remove("has-autoplay"),G.removeEventListener("mouseenter",j,!1),G.removeEventListener("mouseleave",D,!1))}e.off("change",c),e.off("settle",P),e.off("contentReady",r),e.off("panzoom:touchStart",m),e.off("panzoom:wheel",m)}l=!1,n=!1}function b(){f&&(f.remove(),f=null)}function d(){e&&e.getPages().length>1&&u("autoStart")&&E()}function r(){g()}function p(z,G){const _=G.target;_&&!G.defaultPrevented&&_.dataset.autoplayAction==="toggle"&&Z.toggle()}function c(){!e||!e?.isInfinite()&&e.getPageIndex()===e.getPages().length-1?m():(b(),v())}function P(){g()}function S(){v(),b()}function j(){s=!0,l&&(b(),v())}function D(){s=!1,l&&!n&&e?.isSettled()&&g()}const Z={init:function(z){e=z,e.on("ready",d),e.on("click",p)},destroy:function(){m(),e?.off("ready",d),e?.off("click",p),e=void 0},isEnabled:()=>l,pause:function(){n=!0,v()},resume:function(){n=!1,l&&!s&&g()},start(){E()},stop(){m()},toggle(){l?m():E()}};return Z};const Dt={Carousel:{Lazyload:{showLoading:!1}},minCount:2,showOnStart:!0,thumbTpl:'<button aria-label="Slide to #{{page}}"><img draggable="false" alt="{{alt}}" data-lazy-src="{{src}}" /></button>',type:"modern"};let Vt;const Un=()=>{let e,t,l,n,s,f=0,u=0,v=!0;function g($){const I=e?.getOptions().Thumbs;let V=(Ie(I)?Object.assign(Object.assign({},Dt),I):Dt)[$];return V&&typeof V=="function"&&e?V(e):V}function E(){if(!e||e?.getOptions().Thumbs===!1)return!1;let $=0;for(const I of e.getSlides())I.thumbSrc&&$++;return $>=g("minCount")}function m(){return g("type")==="modern"}function b(){return g("type")==="scrollable"}function d(){const $=[],I=e?.getSlides()||[];for(const V of I)$.push({index:V.index,class:V.thumbClass,html:r(V)});return $}function r($){const I=$.thumb?$.thumb instanceof HTMLImageElement?$.thumb.src:$.thumb:$.thumbSrc||void 0,V=$.thumbAlt===void 0?`Thumbnail #${($.index||0)+1}`:$.thumbAlt+"";let A=g("thumbTpl");return A=ct(A,"{{alt}}",V),A=ct(A,"{{src}}",I+""),A=ct(A,"{{index}}",`${$.index||0}`),A=ct(A,"{{page}}",`${($.index||0)+1}`),A}function p($){return`<div index="${$.index||0}" class="f-thumbs__slide ${$.class||""}">${$.html||""}</div>`}function c($=!1){var I;const V=e?.getContainer();if(!e||!V||l||!E())return;const A=((I=g("Carousel"))===null||I===void 0?void 0:I.classes)||{};if(A.container=A.container||"f-thumbs",!l){const ne=V.nextElementSibling;ne?.classList.contains(A.container)&&(l=ne)}if(!l){l=document.createElement("div");const ne=g("parentEl");ne?ne.insertAdjacentElement("beforeend",l):V.insertAdjacentElement("afterend",l)}te(l,A.container),te(l,"f-thumbs"),te(l,`is-${g("type")}
4`),$&&te(l,"is-hidden")}function P(){if(!l||!b())return;n=document.createElement("div"),te(n,"f-thumbs__viewport");let $="";for(const I of d())typeof(I.html||"")=="string"&&($+=p(I));n.innerHTML=$,l.append(n),l.addEventListener("click",I=>{I.preventDefault();const V=I.target.closest("[index]"),A=parseInt(V?.getAttribute("index")||"-1");e&&A>-1&&e.goTo(A)}),s=new IntersectionObserver(I=>{I.forEach(V=>{V.isIntersecting&&V.target instanceof HTMLImageElement&&(V.target.src=V.target.getAttribute("data-lazy-src")+"",V.target.removeAttribute("data-lazy-src"),s?.unobserve(V.target))})},{root:n,rootMargin:"100px"}),l.querySelectorAll("[data-lazy-src]").forEach(I=>{s?.observe(I)}),e?.emit("thumbs:ready")}function S(){var $;if(!Vt||!e||!l||b()||t)return;const I=d();if(!I.length)return;const V=We({},{Sync:{target:e},Lazyload:{preload:1},slides:I,classes:{container:"f-thumbs",viewport:"f-thumbs__viewport",slide:"f-thumbs__slide"},center:!0,fill:!m(),infinite:!1,dragFree:!0,rtl:e.getOptions().rtl||!1,slidesPerPage:A=>{let ne=0;return m()&&((function(){if(!m()||!l)return;const ue=re=>l&&parseFloat(getComputedStyle(l).getPropertyValue("--f-thumb-"+re))||0;f=ue("width"),u=ue("clip-width")})(),ne=4*(f-u)),A&&A.getTotalSlideDim()<=A.getViewportDim()-ne?1/0:1}},Dt.Carousel||{},g("Carousel")||{});t=Vt(l,V,{Sync:kn,Lazyload:Fn}),t.on("ready",()=>{te(l,"is-syncing"),e?.emit("thumbs:ready"),m()&&e?.on("render",z)}),t.on("destroy",()=>{e?.emit("thumbs:destroy")}),t.init(),($=t.getGestures())===null||$===void 0||$.on("start",()=>{v=!1}),t.on("click",(A,ne)=>{const ue=ne.target;if(ue){const re=ue.matches("button")?ue:ue.firstElementChild;re&&re.matches("button")&&(ne.preventDefault(),re.focus({preventScroll:!0}))}}),te(e.getContainer(),"has-thumbs"),se()}function j(){E()&&g("showOnStart")&&(c(),P())}function D(){var $;E()&&(S(),e?.on("addSlide",_),e?.on("removeSlide",fe),e?.on("click",he),e?.on("refresh",ae),($=e?.getGestures())===null||$===void 0||$.on("start",Z),Me(!0))}function Z(){var $,I;v=!0,!(($=document.activeElement)===null||$===void 0)&&$.closest(".f-thumbs")&&((I=document.activeElement)===null||I===void 0||I.blur())}function z(){var $,I;l?.classList.toggle("is-syncing",e?.hasNavigated()===!1||(($=e?.getTween())===null||$===void 0?void 0:$.isRunning())),se(),!((I=e?.getGestures())===null||I===void 0)&&I.isPointerDown()&&(function(){if(!m()||!e||!t||!v)return;const V=t.getTween(),A=t.getPages(),ne=e.getPageIndex()||0,ue=e.getPageProgress()||0;if(!(e&&A&&A[ne]&&V))return;const re=V.isRunning()?V.getCurrentValues().pos:t.getPosition();if(re===void 0)return;let F=A[ne].pos+ue*(f-u);F=ye(A[0].pos,F,A[A.length-1].pos),V.from({pos:re}).to({pos:F}).start()})()}function G(){v=!0,Me()}function _($,I){const V={html:r(I)};if(t)t.add(V,I.index);else if(n){const A=tt(p(V));if(A){n.append(A);const ne=A.querySelector("img");ne&&s?.observe(ne)}}}function fe($,I){var V;t?t.remove(I.index):n&&((V=n.querySelector(`[index="${I.index}"]`))===null||V===void 0||V.remove())}function he($,I){var V;const A=I.target;I.defaultPrevented||((V=A?.dataset)===null||V===void 0?void 0:V.thumbsAction)!=="toggle"||(l||(c(!0),P(),S()),l&&l.classList.toggle("is-hidden"))}function ae(){Me()}function Me($=!1){if(!e||!n||!b())return;const I=e.getPageIndex();n.querySelectorAll(".is-selected").forEach(A=>{A.classList.remove("is-selected")});const V=n.querySelector(`[index="${I}"]`);if(V){V.classList.add("is-selected");const A=n.getBoundingClientRect(),ne=V.getBoundingClientRect(),ue=V.offsetTop-n.offsetTop-.5*A.height+.5*ne.height,re=V.scrollLeft-n.scrollLeft-.5*A.width+.5*ne.width;n.scrollTo({top:ue,left:re,behavior:$?"instant":"smooth"})}}function se(){if(!m()||!e||!t)return;const $=t?.getSlides()||[];let I=-.5*f;for(const V of $){const A=V.el;if(!A)continue;let ne=e.getPageProgress(V.index)||0;ne=Math.max(-1,Math.min(1,ne)),ne>-1&&ne<1&&(I+=.5*f*(1-Math.abs(ne))),ne=Math.round(1e4*ne)/1e4,I=Math.round(1e4*I)/1e4,A.style.setProperty("--progress",`${Math.abs(ne)}`),A.style.setProperty("--shift",`${e?.isRTL()?-1*I:I}px`),ne>-1&&ne<1&&(I+=.5*f*(1-Math.abs(ne)))}}return{init:function($,I){Vt=I,e=$,e.on("ready",D),e.on("initSlides",j),e.on("change",G)},destroy:function(){var $,I;b()&&e?.emit("thumbs:destroy"),e?.off("ready",D),e?.off("initSlides",j),e?.off("change",G),e?.off("render",z),e?.off("addSlide",_),e?.off("click",he),e?.off("refresh",ae),($=e?.getGestures())===null||$===void 0||$.off("start",Z),(I=e?.getContainer())===null||I===void 0||I.classList.remove("has-thumbs"),e=void 0,t?.destroy(),t=void 0,l?.remove(),l=void 0},getCarousel:function(){return t},getContainer:function(){return l},getType:function(){return g("type")},isEnabled:E}};const Mn={autosize:!1,iframeAttr:{allow:"autoplay; fullscreen",scrolling:"auto"},preload:!1},Kn=()=>{let e;function t(){const u=e?.getOptions().Html;return Ie(u)?Object.assign(Object.assign({},Mn),u):Mn}function l(u,v){let g=u[v];return g===void 0&&(g=t()[v]),g==="true"||g!=="false"&&g}function n(u,v){let g=v.type,E=v.src;if(!g&&xe(E)){if(E.charAt(0)==="#"?g="inline":E.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.((a)?png|avif|gif|jp(g|eg)|pjp(eg)?|jfif|svg|webp|bmp|
4ico|tif(f)?)((\?|#).*)?$)/i)?g="image":E.match(/\.(pdf)((\?|#).*)?$/i)?g="pdf":E.match(/\.(html|php)((\?|#).*)?$/i)&&(g="iframe"),!g){const m=E.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:(?:(?:maps\/(?:place\/(?:.*)\/)?\@(.*),(\d+.?\d+?)z))|(?:\?ll=))(.*)?/i);m&&(E=`https://maps.google.${m[1]}/?ll=${(m[2]?m[2]+"&z="+Math.floor(parseFloat(m[3]))+(m[4]?m[4].replace(/^\//,"&"):""):m[4]+"").replace(/\?/,"&")}&output=${m[4]&&m[4].indexOf("layer=c")>0?"svembed":"embed"}`,g="gmap")}if(!g){const m=E.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:maps\/search\/)(.*)/i);m&&(E=`https://maps.google.${m[1]}/maps?q=${m[2].replace("query=","q=").replace("api=1","")}&output=embed`,g="gmap")}g&&(v.src=E,v.type=g)}}function s(u,v){v.type!=="iframe"&&v.type!=="pdf"&&v.type!=="gmap"||(function(g){const E=g.el,m=g.src;if(!e||!E||!m)return;const b=document.createElement("iframe");te(b,"f-iframe");for(const[c,P]of Object.entries(t().iframeAttr||{}))b.setAttribute(c,P);b.onerror=()=>{g.state=2,e?.showError(g,"{{IFRAME_ERROR}}")};const d=document.createElement("div");if(te(d,"f-html"),d.append(b),g.width){let c=`${g.width}`;c.match(/^\d+$/)&&(c+="px"),d.style.maxWidth=`${c}`}if(g.height){let c=`${g.height}`;c.match(/^\d+$/)&&(c+="px"),d.style.maxHeight=`${c}`}if(g.aspectRatio){const c=E.getBoundingClientRect();d.style.aspectRatio=`${g.aspectRatio}`,d.style[c.width>c.height?"width":"height"]="auto",d.style[c.width>c.height?"maxWidth":"maxHeight"]="none"}g.htmlEl=d,g.contentEl=b,te(E,`has-html has-iframe has-${g.type}`),E.prepend(d);const r=l(g,"preload"),p=l(g,"autosize");g.type==="iframe"&&(r||p)?(g.state=0,e.showLoading(g),te(E,"is-loading"),b.onload=()=>{if(!e||e.getState()!==1||!b.src.length)return;g.state=1;const c=b.dataset.ready!=="true";b.dataset.ready="true",(function(P){const S=P.contentEl,j=S?.parentElement,D=j?.style;let Z=l(P,"autosize"),z=P.width||0,G=P.height||0;if(z&&G&&(Z=!1),!!(S&&j&&D&&Z)){try{const _=window.getComputedStyle(j),fe=parseFloat(_.paddingLeft)+parseFloat(_.paddingRight),he=parseFloat(_.paddingTop)+parseFloat(_.paddingBottom),ae=S.contentWindow;if(ae){const Me=ae.document,se=Me.getElementsByTagName("html")[0],$=Me.body;D.width="";const I=window.getComputedStyle($),V=parseFloat(I.marginLeft)+parseFloat(I.marginRight),A=$.style.overflow||"";$.style.overflow="hidden",z=z||$.scrollWidth+V+fe,D.flex="0 0 auto",D.width=`${z}px`,D.height=`${$.scrollHeight}px`,$.style.overflow=A,G=Math.max(se.scrollHeight,Math.ceil(se.getBoundingClientRect().height))+he}}catch{}if(z||G){const _={flex:"0 1 auto",width:"",height:""};z&&z!=="auto"&&(_.width=`${z}px`),G&&G!=="auto"&&(_.height=`${G}px`),Object.assign(D,_)}}})(g),e.hideLoading(g),c&&e.emit("contentReady",g),Fe(E,"is-loading")},b.src=`${m}`):(b.src=`${m}`,e.emit("contentReady",g))})(v)}function f(u,v){var g,E;v.type!=="iframe"&&v.type!=="pdf"&&v.type!=="gmap"||(e?.hideError(v),(g=v.contentEl)===null||g===void 0||g.remove(),v.contentEl=void 0,(E=v.htmlEl)===null||E===void 0||E.remove(),v.htmlEl=void 0)}return{init:function(u){e=u,e.on("addSlide",n),e.on("attachSlideEl",s),e.on("detachSlideEl",f)},destroy:function(){e?.off("addSlide",n),e?.off("attachSlideEl",s),e?.off("detachSlideEl",f),e=void 0}}};const Sn=(e,t={})=>{const l=new URL(e),n=new URLSearchParams(l.search),s=new URLSearchParams;for(const[v,g]of[...n,...Object.entries(t)]){let E=g+"";if(v==="t"){let m=E.match(/((\d*)m)?(\d*)s?/);m&&s.set("start",60*parseInt(m[2]||"0")+parseInt(m[3]||"0")+"")}else s.set(v,E)}let f=s+"",u=e.match(/#t=((.*)?\d+s)/);return u&&(f+=`#t=${u[1]}`),f},On={autoplay:!1,html5videoTpl:`<video class="f-html5video" playsinline controls controlsList="nodownload" poster="{{poster}}"> 5 <source src="{{src}}" type="{{format}}" />Sorry, your browser doesn't support embedded videos.</video>`,iframeAttr:{allow:"autoplay; fullscreen",scrolling:"no",referrerPolicy:"strict-origin-when-cross-origin",credentialless:""},vimeo:{byline:1,color:"00adef",controls:1,dnt:1,muted:0},youtube:{controls:1,enablejsapi:1,nocookie:1,rel:0,fs:1}},Jn=()=>{let e,t=!1;function l(){const d=e?.getOptions().Video;return Ie(d)?Object.assign(Object.assign({},On),d):On}function n(){var d;return(d=e?.getPage())===null||d===void 0?void 0:d.slides[0]}const s=d=>{var r;try{let p=JSON.parse(d.data);if(d.origin==="https://player.vimeo.com"){if(p.event==="ready")for(let c of Array.from(((r=e?.getContainer())===null||r===void 0?void 0:r.getElementsByClassName("f-iframe"))||[]))c instanceof HTMLIFrameElement&&c.contentWindow===d.source&&(c.dataset.ready="true")}else if(d.origin.match(/^https:\/\/(www.)?youtube(-nocookie)?.com$/)&&p.event==="onReady"){const c=document.getElementById(p.id);c&&(c.dataset.ready="true")}}catch{}};function f(d,r){const p=r.src;if(!xe(p))return;let c=r.type;if(!c||c==="html5video"){const P=p.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i);P&&(c="html5video",r.html5videoFormat=r.html5videoFormat||"video/"+(P[1]==="ogv"?"ogg":P[1]))}if(!c||c==="youtube"){const P=p.match(/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(?:watch\?(?:.*&)?v=|v\/|u\/|shorts\/|embed\/?)?(videoseries\?list=(?:.*)|[\w-]{11}|\?listType=(?:.*)&list=(?:.*))(?:.*)/i);if(P){const S=Object.assign(Object.assign({},l().youtube),r.youtube||{}),j=`www.youtube${S.nocookie?"-nocookie":""}.com`,D=Sn(p,S),Z=encodeURIComponent(P[2]);r.videoId=Z,r.src=`https://${j}/embed/${Z}?${D}`,r.thumb=r.thumb||`https://i.ytimg.com/vi/${Z}/mqdefault.jpg`,c="youtube"}}if(!c||c==="vimeo"){const P=p.match(/^.+vimeo.com\/(?:\/)?(video\/)?([\d]+)((\/|\?h=)([a-z0-9]+))?(.*)?/);if(P){const S=Object.assign(Object.assign({},l().vimeo),r.vimeo||{}),j=Sn(p,S),D=encodeURIComponent(P[2]),Z=P[5]||"";r.videoId=D,r.src=`https://player.vimeo.com/video/${D}?${Z?`h=${Z}${j?"&":""}`:""}${j}`,c="vimeo"}}r.type=c}function u(d,r){r.type==="html5video"&&(function(p){const c=p.el,P=p.src;if(!e||!c||!P)return;const S=p.html5videoTpl||l().html5videoTpl,j=p.html5videoFormat||l().html5videoFormat;if(!S)return;const D=p.poster||(p.thumb&&xe(p.thumb)?p.thumb:""),Z=tt(S.replace(/\{\{src\}\}/gi,P+"").replace(/\{\{format\}\}/gi,j||"").replace(/\{\{poster\}\}/gi,D+""));if(!Z)return;const z=document.createElement("div");te(z,"f-html"),z.append(Z),p.contentEl=Z,p.htmlEl=z,te(c,`has-${p.type}`),c.prepend(z),m(p),e.emit("contentReady",p)})(r),r.type!=="youtube"&&r.type!=="vimeo"||(function(p){const c=p.el,P=p.src;if(!e||!c||!P)return;const S=document.createElement("iframe");te(S,"f-iframe"),S.setAttribute("id",`f-iframe_${p.videoId}`);for(const[D,Z]of Object.entries(l().iframeAttr||{}))S.setAttribute(D,Z);p.type==="youtube"&&(S.onload=()=>{var D;e?.getState()===1&&((D=S.contentWindow)===null||D===void 0||D.postMessage(JSON.stringify({event:"listening",id:S.getAttribute("id")}),"*"))}),S.onerror=()=>{e?.showError(p,"{{IFRAME_ERROR}}")};const j=document.createElement("div");te(j,"f-html"),j.append(S),p.contentEl=S,p.htmlEl=j,te(c,`has-html has-iframe has-${p.type}`),S.src=`${p.src}`,c.prepend(j),m(p),e.emit("contentReady",p)})(r)}function v(d,r){var p,c;r.type!=="html5video"&&r.type!=="youtube"&&r.type!=="vimeo"||((p=r.contentEl)===null||p===void 0||p.remove(),r.contentEl=void 0,(c=r.htmlEl)===null||c===void 0||c.remove(),r.htmlEl=void 0),r.poller&&clearTimeout(r.poller)}function g(){t=!1}
5function E(){if(t)return;t=!0;const d=n();(d&&d.autoplay!==void 0?d.autoplay:l().autoplay)&&((function(){var r;const p=n(),c=p?.el;if(c&&p?.type==="html5video")try{const S=c.querySelector("video");if(S){const j=S.play();j!==void 0&&j.then(()=>{}).catch(D=>{S.muted=!0,S.play()})}}catch{}const P=p?.htmlEl;P instanceof HTMLIFrameElement&&((r=P.contentWindow)===null||r===void 0||r.postMessage('{"event":"command","func":"stopVideo","args":""}',"*"))})(),(function(){const r=n(),p=r?.type;if(!r?.el||p!=="youtube"&&p!=="vimeo")return;const c=()=>{if(r.contentEl&&r.contentEl instanceof HTMLIFrameElement&&r.contentEl.contentWindow){let P;if(r.contentEl.dataset.ready==="true")return P=r.type==="youtube"?{event:"command",func:"playVideo"}:{method:"play",value:"true"},P&&r.contentEl.contentWindow.postMessage(JSON.stringify(P),"*"),void(r.poller=void 0);r.type==="youtube"&&(P={event:"listening",id:r.contentEl.getAttribute("id")},r.contentEl.contentWindow.postMessage(JSON.stringify(P),"*"))}r.poller=setTimeout(c,250)};c()})())}function m(d){const r=d?.htmlEl;if(d&&r&&(d.type==="html5video"||d.type==="youtube"||d.type==="vimeo")){if(r.style.aspectRatio="",r.style.width="",r.style.height="",r.style.maxWidth="",r.style.maxHeight="",d.width){let p=`${d.width}`;p.match(/^\d+$/)&&(p+="px"),r.style.maxWidth=`${p}`}if(d.height){let p=`${d.height}`;p.match(/^\d+$/)&&(p+="px"),r.style.maxHeight=`${p}`}if(d.aspectRatio){const p=d.aspectRatio.split("/"),c=parseFloat(p[0].trim()),P=p[1]?parseFloat(p[1].trim()):0,S=c&&P?c/P:c;r.offsetHeight;const j=r.getBoundingClientRect(),D=S<(j.width||1)/(j.height||1);r.style.aspectRatio=`${d.aspectRatio}`,r.style.width=D?"auto":"",r.style.height=D?"":"auto"}}}function b(){m(n())}return{init:function(d){e=d,e.on("addSlide",f),e.on("attachSlideEl",u),e.on("detachSlideEl",v),e.on("ready",E),e.on("change",g),e.on("settle",E),e.on("refresh",b),window.addEventListener("message",s)},destroy:function(){e?.off("addSlide",f),e?.off("attachSlideEl",u),e?.off("detachSlideEl",v),e?.off("ready",E),e?.off("change",g),e?.off("settle",E),e?.off("refresh",b),window.removeEventListener("message",s),e=void 0}}};const Ln={autoStart:!1,btnTpl:'<button data-fullscreen-action="toggle" class="f-button" title="{{TOGGLE_FULLSCREEN}}"><svg><g><path d="M8 3H5a2 2 0 0 0-2 2v3M21 8V5a2 2 0 0 0-2-2h-3M3 16v3a2 2 0 0 0 2 2h3M16 21h3a2 2 0 0 0 2-2v-3"/></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>'},Tn="in-fullscreen-mode",Qn=()=>{let e;function t(m){const b=e?.getOptions().Fullscreen;let d=(Ie(b)?Object.assign(Object.assign({},Ln),b):Ln)[m];return d&&typeof d=="function"&&e?d(e):d}function l(){var m;(m=e?.getPlugins().Toolbar)===null||m===void 0||m.add("fullscreen",{tpl:t("btnTpl")})}function n(){if(t("autoStart")){const m=f();m&&v(m)}}function s(m,b){const d=b.target;d&&!b.defaultPrevented&&d.dataset.fullscreenAction==="toggle"&&E()}function f(){return t("el")||e?.getContainer()||void 0}function u(){const m=document;return m.fullscreenEnabled?!!m.fullscreenElement:!!m.webkitFullscreenEnabled&&!!m.webkitFullscreenElement}function v(m){const b=document;let d;return m||(m=b.documentElement),b.fullscreenEnabled?d=m.requestFullscreen():b.webkitFullscreenEnabled&&(d=m.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)),d&&d.then(()=>{m.classList.add(Tn)}),d}function g(){const m=document;let b;return m.fullscreenEnabled?b=m.fullscreenElement&&m.exitFullscreen():m.webkitFullscreenEnabled&&(b=m.webkitFullscreenElement&&m.webkitExitFullscreen()),b&&b.then(()=>{var d;(d=f())===null||d===void 0||d.classList.remove(Tn)}),b}function E(){if(u())g();else{const m=f();m&&v(m)}}return{init:function(m){e=m,e.on("initPlugins",l),e.on("ready",n),e.on("click",s)},destroy:function(){e?.off("initPlugins",l),e?.off("ready",n),e?.off("click",s)},exit:g,inFullscreen:u,request:v,toggle:E}};let Ze,Dn,Zt=!1,Gt=!1,Et=!1,Xt=!1;const It=()=>{const e=new URL(document.URL).hash,t=e.slice(1).split("-"),l=t[t.length-1],n=l&&/^\+?\d+$/.test(l)&&parseInt(t.pop()||"1",10)||1;return{urlHash:e,urlSlug:t.join("-"),urlIndex:n}},qt=()=>{const e=Ze?.getInstance(),t=e?.getState();return!(!e||t!==0&&t!==1)},Qt=()=>{if(!Ze||qt())return;const{urlSlug:e,urlIndex:t}=It();if(!e)return;
5let l=document.querySelector(`[data-slug="${e}"]`);l&&Ze.fromTriggerEl(l),qt()||(l=document.querySelectorAll(`[data-fancybox="${e}"]`)[t-1],l&&Ze.fromTriggerEl(l,{startIndex:t-1})),qt()&&l&&!l.closest("[inert]")&&l.scrollIntoView({behavior:"instant",block:"center",inline:"center"})},$t=e=>{const t=e.getOptions().Hash,l=e.getSlide();return l&&(l.slug||l.fancybox||(Ie(t)?t.slug:""))||""},Pn=e=>{var t,l;const n=$t(e),s=e.getSlide();if(!s||!n)return"";let f=parseInt(s.index+"",10)+1,u=s.slug?`#${s.slug}`:`#${n}-${f}`;return(((l=(t=e.getCarousel())===null||t===void 0?void 0:t.getPages())===null||l===void 0?void 0:l.length)||0)<2&&(u=`#${n}`),u},eo=()=>{if(!Ze||Et)return;const e=Ze?.getInstance(),t=e?.getCarousel(),{urlSlug:l,urlIndex:n}=It(),s=e?.getOptions().Hash;if(s!==!1){if(e&&e.getState()===1&&t){const f=t.getSlides();for(const u of f||[])if(u.slug===l||(u.fancybox===l||Ie(s)&&s.slug===l)&&u.index===n-1)return Gt=!1,void t.goTo(u.index);Xt=!0,e.close(),Xt=!1}Qt()}},An=()=>{Ze&&(Dn=setTimeout(()=>{Zt=!0,Qt(),Zt=!1},300),window.addEventListener("hashchange",eo,!1))};let xt;function Nt(){history.scrollRestoration&&xt&&(history.scrollRestoration=xt,xt=void 0)}const Rt=()=>{let e,t="";function l(){var f;if(!e||!e.isTopMost()||e.getOptions().Hash===!1)return;if(Zt){const d=e.getOptions().sync;d&&d.goTo(((f=e?.getCarousel())===null||f===void 0?void 0:f.getPageIndex())||0,{transition:!1,tween:!1})}const u=e.getCarousel();if(!u||!e.getSlide())return;const v=$t(e);if(!v)return;const{urlHash:g,urlSlug:E}=It(),m=Pn(e);g!==m&&(t=g),history.scrollRestoration&&!xt&&(xt=history.scrollRestoration,history.scrollRestoration="manual",window.addEventListener("beforeunload",Nt)),u.on("change",n);const b=v!==E;try{window.history[b?"pushState":"replaceState"]({},document.title,window.location.pathname+window.location.search+m),b&&(Gt=!0)}catch{}}function n(){if(!e||!e.isTopMost()||e.getOptions().Hash===!1||!e.getSlide()||!$t(e))return;const f=Pn(e);Et=!0;try{window.history.replaceState({},document.title,window.location.pathname+window.location.search+f)}catch{}Et=!1}function s(){var f;if(!(!e||!e.isTopMost()||e.getOptions().Hash===!1||Xt)&&$t(e)){Et=!0;try{Gt&&!(function(){if(window.parent===window)return!1;try{var u=window.frameElement}catch{u=null}return u===null?location.protocol==="data:":u.hasAttribute("sandbox")})()&&((f=document.activeElement)===null||f===void 0?void 0:f.nodeName)!=="IFRAME"?window.history.back():window.history.replaceState({},document.title,window.location.pathname+window.location.search+t)}catch{}Et=!1}}return{init:function(f){clearTimeout(Dn),e=f,e.on("ready",l),e.on("close",s)}
5,destroy:function(){e?.off("ready",l),e?.off("close",s);const f=e?.getCarousel();f&&f.off("change",n),e=void 0,Ze?.getInstance()||(Nt(),window.removeEventListener("beforeunload",Nt))}}};Rt.getInfoFromURL=It,Rt.startFromUrl=Qt,Rt.setup=function(e){Ze||(Ze=e,At()&&(/complete|interactive|loaded/.test(document.readyState)?An():document.addEventListener("DOMContentLoaded",An)))};const to=Object.assign(Object.assign({},Kt),{CLOSE:"Close",NEXT:"Next",PREV:"Previous",MODAL:"You can close this modal content with the ESC key",ELEMENT_NOT_FOUND:"HTML Element Not Found",IFRAME_ERROR:"Error Loading Page",NO_CAPTION:"No Caption",TOGGLE_SIDEBAR:"Toggle sidebar"});const Vn='<button class="f-button" title="{{CLOSE}}" data-fancybox-close><svg tabindex="-1" width="24" height="24" viewBox="0 0 24 24"><path d="M19.286 4.714 4.714 19.286M4.714 4.714l14.572 14.572" /></svg></button>';Hn().add("close",{tpl:Vn});const Je=e=>{e.cancelable&&e.preventDefault()},$n=(e=null,t="",l)=>{if(!e||!e.parentElement||!t)return void(l&&l());qn(e);const n=s=>{s.target===e&&e.dataset.animationName&&(e.removeEventListener("animationend",n),delete e.dataset.animationName,l&&l(),e.classList.remove(t))};e.dataset.animationName=t,e.addEventListener("animationend",n),te(e,t)},qn=e=>{e&&e.dispatchEvent(new CustomEvent("animationend",{bubbles:!1,cancelable:!0,currentTarget:e}))};var Re;(function(e){e[e.Init=0]="Init",e[e.Ready=1]="Ready",e[e.Closing=2]="Closing",e[e.Destroyed=3]="Destroyed"})(Re||(Re={}));const St={ajax:null,backdropClick:"close",Carousel:{},closeButton:"auto",closeButtonTpl:Vn,closeExisting:!1,delegateEl:void 0,dragToClose:!0,fadeEffect:!0,groupAll:!1,groupAttr:"data-fancybox",hideClass:"f-fadeOut",hideScrollbar:!0,id:void 0,idle:!1,keyboard:{Escape:"close",Delete:"close",Backspace:"close",PageUp:"next",PageDown:"prev",ArrowUp:"prev",ArrowDown:"next",ArrowRight:"next",ArrowLeft:"prev"},l10n:to,mainClass:"",mainStyle:{},mainTpl:`<dialog class="fancybox__dialog"> 6 <div class="fancybox__container" tabindex="0" aria-label="{{MODAL}}"> 7 <div class="fancybox__backdrop"></div> 8 <div class="fancybox__carousel"></div> 9 </div> 10 </dialog>`,modal:!0,on:{},parentEl:void 0,placeFocusBack:!0,showClass:"f-zoomInUp",startIndex:0,sync:void 0,theme:"dark",triggerEl:void 0,triggerEvent:void 0,zoomEffect:!0},et=new Map;let no=0;const Rn="with-fancybox",oo=()=>{let e,t,l,n,s,f,u,v=Re.Init,g=Object.assign({},St),E=-1,m={},b=[],d=!1,r=!0,p=0;function c(x,...H){let K=g[x];return K&&typeof K=="function"?K(Ae,...H):K}function P(x,H=[]){const K=c("l10n")||{};x=String(x).replace(/\{\{(\w+)\}\}/g,(C,o)=>K[o]||C);for(let C=0;C<H.length;C++)x=x.split(H[C][0]).join(H[C][1]);return x=x.replace(/\{\{(.*?)\}\}/g,(C,o)=>o)}const S=new Map;function j(x,...H){const K=[...S.get(x)||[]];for(const[C,o]of Object.entries(g.on||{}))(C===x||C.split(" ").indexOf(x)>-1)&&K.push(o);for(const C of K)C&&typeof C=="function"&&C(Ae,...H);x!=="*"&&j("*",x,...H)}function D(){Fe(t,"is-revealing");try{document.activeElement===e&&(t?.querySelector("[autofocus]")||t).focus()}catch{}}function Z(x,H){var K;ue(H),$(),(K=H.el)===null||K===void 0||K.addEventListener("click",G),H.type!=="inline"&&H.type!=="clone"||(function(C){if(!n||!C||!C.el)return;let o=null;if(xe(C.src)){const a=C.src.split("#",2).pop();o=a?document.getElementById(a):null}if(o){if(te(o,"f-html"),C.type==="clone"||o.closest(".fancybox__carousel")){o=o.cloneNode(!0);const a=o.dataset.animationName;a&&(o.classList.remove(a),delete o.dataset.animationName);let L=o.getAttribute("id");L=L?`${L}--clone`:`clone-${E}-${C.index}`,o.setAttribute("id",L)}else if(o.parentNode){const a=document.createElement("div");a.inert=!0,o.parentNode.insertBefore(a,o),C.placeholderEl=a}C.htmlEl=o,te(C.el,"has-html"),C.el.prepend(o),o.classList.remove("hidden"),o.style.display==="none"&&(o.style.display=""),getComputedStyle(o).getPropertyValue("display")==="none"&&(o.style.display=o.dataset.display||"flex"),n?.emit("contentReady",C)}else n?.showError(C,"{{ELEMENT_NOT_FOUND}}")})(H),H.type==="ajax"&&(function(C){const o=C.el;if(!o||C.htmlEl||C.xhr)return;n?.showLoading(C),C.state=0;const a=new XMLHttpRequest;a.onreadystatechange=function(){if(a.readyState===XMLHttpRequest.DONE&&v===Re.Ready)if(n?.hideLoading(C),C.state=1,a.status===200){let T=a.responseText+"",h=null,w=null;if(C.filter){const q=document.createElement("div");q.innerHTML=T,w=q.querySelector(C.filter+"")}w&&w instanceof HTMLElement?h=w:(h=document.createElement("div"),h.innerHTML=T),h.classList.add("f-html"),C.htmlEl=h,o.classList.add("has-html"),o.classList.add("has-ajax"),o.prepend(h),n?.emit("contentReady",C)}else n?.showError(C)};const L=c("ajax")||null;a.open(L?"POST":"GET",C.src+""),a.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),a.setRequestHeader("X-Requested-With","XMLHttpRequest"),a.send(L),C.xhr=a})(H)}function z(x,H){var K;re(H),(K=H.el)===null||K===void 0||K.removeEventListener("click",G),H.type!=="inline"&&H.type!=="clone"||(function(C){const o=C.htmlEl,a=C.placeholderEl;o&&(getComputedStyle(o).getPropertyValue("display")!=="none"&&(o.style.display="none"),o.offsetHeight),a&&(o&&a.parentNode&&a.parentNode.insertBefore(o,a),a.remove()),
10C.htmlEl=void 0,C.placeholderEl=void 0})(H),H.xhr&&(H.xhr.abort(),H.xhr=void 0)}function G(x){if(!le())return;if(v!==Re.Ready)return Je(x),void x.stopPropagation();if(x.defaultPrevented||!ht.isClickAllowed())return;const H=x.composedPath()[0];H.closest(".fancybox__carousel")&&H.classList.contains("fancybox__slide")&&I(x)}function _(){r=!1,t&&n&&t.classList.remove("is-revealing"),$();const x=c("sync");if(n&&x){const H=x.getPageIndex(n.getPageIndex())||0;x.goTo(H,{transition:!1,tween:!1})}}function fe(){var x;(function(){const K=n?.getViewport();if(!c("dragToClose")||!n||!K||(s=ht(K).init(),!s))return;let C=!1,o=0,a=0,L={},T=1;function h(){var q,B;f?.spring({clamp:!0,mass:1,tension:a===0?140:960,friction:17,restDelta:.1,restSpeed:.1,maxSpeed:1/0}).from({y:o}).to({y:a}).start();const Y=((q=n?.getViewport())===null||q===void 0?void 0:q.getBoundingClientRect().height)||0,X=(B=oe())===null||B===void 0?void 0:B.panzoomRef;if(Y&&X)if(a===0)X.execute(U.Reset);else{const Q=jt(Math.abs(o),0,.33*Y,T,.77*T,!1);X.execute(U.ZoomTo,{scale:Q})}}const w=q=>{var B;const Y=q.srcEvent,X=Y.target;return n&&!(wt(Y)&&((B=Y.touches)===null||B===void 0?void 0:B.length)>1)&&X&&!ut(X)};f=lt().on("step",q=>{if(t&&K&&v===Re.Ready){const B=K.getBoundingClientRect().height;o=Math.min(B,Math.max(-1*B,q.y));const Y=jt(Math.abs(o),0,.65*B,1,.2,!0);t.style.setProperty("--f-drag-opacity",Y+""),t.style.setProperty("--f-drag-offset",o+"px")}}),s.on("start",function(){C||(f?.pause(),a=o)}).on("panstart",q=>{var B,Y;if(!C&&w(q)&&q.axis==="y"){Je(q.srcEvent),C=!0,Qe(),(B=n?.getViewport())===null||B===void 0||B.classList.add("is-dragging");const X=(Y=oe())===null||Y===void 0?void 0:Y.panzoomRef;if(X){T=X.getTransform().scale||1;const Q=X.getOptions();L=Object.assign({},Q),Q.bounds=!1,Q.gestures=!1}}else C=!1}).on("pan",function(q){C&&w(q)&&(Je(q.srcEvent),q.srcEvent.stopPropagation(),q.axis==="y"&&(a+=q.deltaY,h()))}).on("end",q=>{var B,Y,X;if((B=n?.getViewport())===null||B===void 0||B.classList.remove("is-dragging"),C){const Q=(Y=oe())===null||Y===void 0?void 0:Y.panzoomRef;if(Q){(X=Q.getTween())===null||X===void 0||X.end();const ve=Q.getOptions();ve.bounds=L.bounds||!1,ve.gestures=L.gestures||!1}w(q)&&q.axis==="y"&&(Math.abs(q.velocityY)>5||Math.abs(o)>50)&&Ne(q.srcEvent,"f-throwOut"+(q.velocityY>0?"Down":"Up"))}C=!1,v===Re.Ready&&o!==0&&(a=0,h())})})(),document.body.addEventListener("click",ne),document.body.addEventListener("keydown",A,{passive:!1,capture:!0}),$(),_e();const H=c("sync");n&&H&&((x=H.getTween())===null||x===void 0||x.start()),F(oe())}function he(){n?.canGoNext()?_e():Xe()}function ae(x,H){ue(H)}function Me(x,H){ue(H),F(H)}function se(){var x;const H=n?.getPlugins().Thumbs;De(t,"has-thumbs",H?.isEnabled()||!1),De(t,"has-vertical-thumbs",!!H&&(H.getType()==="scrollable"||((x=H.getCarousel())===null||x===void 0?void 0:x.isVertical())===!0))}function $(){if(t){const x=n?.getPages()||[],H=n?.getPageIndex()||0;for(const K of t.querySelectorAll("[data-fancybox-index]"))K.innerHTML=H+"";for(const K of t.querySelectorAll("[data-fancybox-page]"))K.innerHTML=H+1+"";for(const K of t.querySelectorAll("[data-fancybox-pages]"))K.innerHTML=x.length+""}}function I(x){if(x.composedPath()[0].closest("[data-fancybox-close]"))return void Ne(x);j("backdropClick",x),!x.defaultPrevented&&c("backdropClick")&&Ne(x)}function V(){Ge()}function A(x){if(!le()||v!==Re.Ready)return;const H=x.key,K=c("keyboard");if(!K||x.ctrlKey||x.altKey||x.shiftKey)return;const C=x.composedPath()[0];if(!vt(C)||H!=="Escape"&&(a=>{const L=["input","textarea","select","option","video","iframe","[contenteditable]","[data-selectable]","[data-draggable]"].join(",");return a.matches(L)||a.closest(L)})(C)||(j("keydown",x),x.defaultPrevented))return;const o=K[H];if(o)switch(o){case"close":Ne(x);break;case"next":Je(x),n?.next();break;case"prev":Je(x),n?.prev()}}function ne(x){if(!le()||v!==Re.Ready||(Ge(),x.defaultPrevented))return;const H=x.composedPath()[0],K=!!H.closest("[data-fancybox-close]"),C=H.classList.contains("fancybox__backdrop");(K||C)&&I(x)}function ue(x){var H;const{el:K,htmlEl:C,panzoomRef:o,closeButtonEl:a}=x,L=o?o.getWrapper():C;if(!K||!K.parentElement||!L)return;let T=c("closeButton");if(T==="auto"&&(T=((H=n?.getPlugins().Toolbar)===null||H===void 0?void 0:H.isEnabled())!==!0),T){if(!a){const h=tt(P(c("closeButtonTpl")));
10h&&(te(h,"is-close-button"),x.closeButtonEl=L.insertAdjacentElement("afterbegin",h),te(K,"has-close-btn"))}}else re(x)}function re(x){x.closeButtonEl&&(x.closeButtonEl.remove(),x.closeButtonEl=void 0),Fe(x.el,"has-close-btn")}function F(x){if(!(r&&n&&n.getState()===1&&x&&x.index===n.getOptions().initialPage&&x.el&&x.el.parentElement)||x.state!==void 0&&x.state!==1)return;r=!1;const H=x.panzoomRef,K=H?.getTween(),C=c("zoomEffect")&&K?ge(x):void 0;if(H&&K&&C){const{x:a,y:L,scale:T}=H.getStartPosition();return void K.spring({tension:215,friction:25,restDelta:.001,restSpeed:.001,maxSpeed:1/0}).from(C).to({x:a,y:L,scale:T}).start()}const o=H?.getContent()||x.htmlEl;o&&$n(o,c("showClass",x))}function le(){var x;return((x=$e.getInstance())===null||x===void 0?void 0:x.getId())===E}function oe(){var x;return(x=n?.getPage())===null||x===void 0?void 0:x.slides[0]}function J(){const x=oe();return x?x.triggerEl||c("triggerEl"):void 0}function ge(x){var H,K;const C=x.thumbEl;if(!C||!(Y=>{const X=Y.getBoundingClientRect(),Q=Y.closest("[style]"),ve=Q?.parentElement;if(Q&&Q.style.transform&&ve){const be=ve.getBoundingClientRect();if(X.left<be.left||X.left>be.left+be.width-X.width||X.top<be.top||X.top>be.top+be.height-X.height)return!1}const me=Math.max(document.documentElement.clientHeight,window.innerHeight),pe=Math.max(document.documentElement.clientWidth,window.innerWidth);return!(X.bottom<0||X.top-me>=0||X.right<0||X.left-pe>=0)})(C))return;const o=(K=(H=x.panzoomRef)===null||H===void 0?void 0:H.getWrapper())===null||K===void 0?void 0:K.getBoundingClientRect(),a=o?.width,L=o?.height;if(!a||!L)return;const T=C.getBoundingClientRect();let h=T.width,w=T.height,q=T.left,B=T.top;if(!(!T||!h||!w)){if(C instanceof HTMLImageElement){const Y=window.getComputedStyle(C).getPropertyValue("object-fit");if(Y==="contain"||Y==="scale-down"){const{width:X,height:Q}=((ve,me,pe,be,we="contain")=>{if(we==="contain"||ve>pe||me>be){const Oe=pe/ve,de=be/me,i=Math.min(Oe,de);ve*=i,me*=i}return{width:ve,height:me}})(C.naturalWidth,C.naturalHeight,h,w,Y);q+=.5*(h-X),B+=.5*(w-Q),h=X,w=Q}}if(!(Math.abs(a/L-h/w)>.1))return{x:q+.5*h-(o.left+.5*a),y:B+.5*w-(o.top+.5*L),scale:h/a}}}function Se(){u&&clearTimeout(u),u=void 0,document.removeEventListener("mousemove",V)}function _e(){if(d||u)return;const x=c("idle");x&&(u=setTimeout(Ue,x))}function Ue(){t&&(Se(),te(t,"is-idle"),document.addEventListener("mousemove",V),d=!0)}function Ge(){d&&(Xe(),_e())}function Xe(){Se(),t?.classList.remove("is-idle"),d=!1}function Qe(){const x=J();var H;!x||(H=x.getBoundingClientRect()).bottom>0&&H.right>0&&H.left<(window.innerWidth||document.documentElement.clientWidth)&&H.top<(window.innerHeight||document.documentElement.clientHeight)||x.closest("[inert]")||x.scrollIntoView({behavior:"instant",block:"center",inline:"center"})}function Ne(x,H){var K,C,o,a,L;if(v===Re.Closing||v===Re.Destroyed)return;const T=new Event("shouldClose",{bubbles:!0,cancelable:!0});if(j("shouldClose",T,x),T.defaultPrevented)return;if(Se(),x){if(x.defaultPrevented)return;Je(x),x.stopPropagation(),x.stopImmediatePropagation()}if(v=Re.Closing,f?.pause(),s?.destroy(),n){(K=n.getGestures())===null||K===void 0||K.destroy(),(C=n.getTween())===null||C===void 0||C.pause();for(const q of n.getSlides()){const B=q.panzoomRef;B&&(We(B.getOptions(),{clickAction:!1,dblClickAction:!1,wheelAction:!1,bounds:!1,minScale:0,maxScale:1/0}),(o=B.getGestures())===null||o===void 0||o.destroy(),(a=B.getTween())===null||a===void 0||a.pause())}}const h=n?.getPlugins();(L=h?.Autoplay)===null||L===void 0||L.stop();const w=h?.Fullscreen;w&&w.inFullscreen()?Promise.resolve(w.exit()).then(()=>{setTimeout(()=>{nt(x,H)},150)}):nt(x,H)}function nt(x,H){var K,C;if(v!==Re.Closing)return;j("close",x),r=!1,document.body.removeEventListener("click",ne),document.body.removeEventListener("keydown",A,{passive:!1,capture:!0}),c("placeFocusBack")&&Qe();const o=document.activeElement;o&&e?.contains(o)&&o.blur(),c("fadeEffect")&&(t?.classList.remove("is-ready"),t?.classList.add("is-hiding")),t?.classList.add("is-closing");const a=oe(),L=a?.el,T=a?.panzoomRef,h=(K=a?.panzoomRef)===null||K===void 0?void 0:K.getTween(),w=H||c("hideClass");let q=!1,B=!1;if(n&&a&&L&&T&&h){let X;if(c("zoomEffect")&&a.state===1&&(X=ge(a)),X){q=!0;const Q=()=>{X=ge(a),X?h.to(Object.assign(Object.assign({},Ye),X)):ze()};T.on("refresh",()=>{Q()}),h.easing(lt.Easings.EaseOut).duration(350).from(Object.assign({},T.getTransform())).to(Object.assign(Object.assign({},Ye),X)).start(),L?.getAnimations()&&(L.style.animationPlayState="paused",requestAnimationFrame(()=>{Q()}))}}const Y=a?.htmlEl||((C=a?.panzoomRef)===null||C===void 0?void 0:C.getWrapper());Y&&qn(Y),!q&&w&&Y&&(B=!0,$n(Y,w,()=>{ze()})),q||B?setTimeout(()=>{ze()},350):ze()}function ze(){var x,H,K,C,o;
10if(v===Re.Destroyed)return;v=Re.Destroyed;const a=J();j("destroy"),(H=(x=c("sync"))===null||x===void 0?void 0:x.getPlugins().Autoplay)===null||H===void 0||H.resume(),(C=(K=c("sync"))===null||K===void 0?void 0:K.getPlugins().Autoscroll)===null||C===void 0||C.resume(),e instanceof HTMLDialogElement&&e.close(),(o=n?.getContainer())===null||o===void 0||o.classList.remove("is-idle"),n?.destroy();for(const L of Object.values(m))L?.destroy();if(m={},e?.remove(),e=void 0,t=void 0,n=void 0,et.delete(E),!et.size&&(dn(!1),document.documentElement.classList.remove(Rn),c("placeFocusBack")&&a&&!a.closest("[inert]")))try{a?.focus({preventScroll:!0})}catch{}}const Ae={close:Ne,destroy:ze,getCarousel:function(){return n},getContainer:function(){return t},getId:function(){return E},getOptions:function(){return g},getPlugins:function(){return m},getSlide:function(){return oe()},getState:function(){return v},init:function(x=[],H={}){v!==Re.Init&&(Ae.destroy(),v=Re.Init),g=We({},St,H),E=c("id")||"fancybox-"+ ++no;const K=et.get(E);if(K&&K.destroy(),et.set(E,Ae),j("init"),(function(){for(const[C,o]of Object.entries(Object.assign(Object.assign({},$e.Plugins),g.plugins||{})))if(C&&!m[C]&&o instanceof Function){const a=o();a.init(Ae),m[C]=a}j("initPlugins")})(),(function(C=[]){j("initSlides",C),b=[...C]})(x),(function(){const C=c("parentEl")||document.body;if(!(C&&C instanceof HTMLElement))return;const o=P(c("mainTpl")||"");if(e=tt(o)||void 0,!e||(t=e.querySelector(".fancybox__container"),!(t&&t instanceof HTMLElement)))return;const a=c("mainClass");a&&te(t,a);const L=c("mainStyle");if(L&&Ie(L))for(const[w,q]of Object.entries(L))t.style.setProperty(w,q);const T=c("theme"),h=T==="auto"?window.matchMedia("(prefers-color-scheme:light)").matches:T==="light";t.setAttribute("theme",h?"light":"dark"),e.setAttribute("id",`${E}`),e.addEventListener("keydown",w=>{w.key==="Escape"&&Je(w)}),e.addEventListener("wheel",w=>{const q=w.target;let B=c("wheel",w);q.closest(".f-thumbs")&&(B="slide");const Y=B==="slide",X=[-w.deltaX||0,-w.deltaY||0,-w.detail||0].reduce(function(me,pe){return Math.abs(pe)>Math.abs(me)?pe:me}),Q=Math.max(-1,Math.min(1,X)),ve=Date.now();p&&ve-p<300?Y&&Je(w):(p=ve,j("wheel",w,Q),w.defaultPrevented||(B==="close"?Ne(w):B==="slide"&&n&&!ut(q)&&(Je(w),n[Q>0?"prev":"next"]())))},{capture:!0,passive:!1}),e.addEventListener("cancel",w=>{Ne(w)}),C.append(e),et.size===1&&(c("hideScrollbar")&&dn(!0),document.documentElement.classList.add(Rn)),j("initLayout"),e instanceof HTMLDialogElement&&(c("modal")?e.showModal():e.show())})(),(function(){if(l=e?.querySelector(".fancybox__carousel")||void 0,!l)return;l.fancybox=Ae;const C=We({},{Autoplay:{autoStart:!1,pauseOnHover:!1,progressbarParentEl:o=>{const a=o.getContainer();return a?.querySelector(".f-carousel__toolbar [data-autoplay-action]")||a}},Fullscreen:{el:t},Toolbar:{absolute:!0,items:{counter:{tpl:'<div class="f-counter"><span data-fancybox-page></span>/<span data-fancybox-pages></span></div>'}},display:{left:["counter"],right:["toggleFull","autoplay","fullscreen","thumbs","close"]}},Video:{autoplay:!0},Thumbs:{minCount:2,Carousel:{classes:{container:"fancybox__thumbs"}}},classes:{container:"fancybox__carousel",viewport:"fancybox__viewport",slide:"fancybox__slide"},spinnerTpl:'<div class="f-spinner" data-fancybox-close></div>',dragFree:!1,slidesPerPage:1,plugins:{Sync:kn,Arrows:Gn,Lazyload:Fn,Zoomable:Zn,Html:Kn,Video:Jn,Autoplay:Yn,Fullscreen:Qn,Thumbs:Un,Toolbar:Hn}},c("Carousel")||{},{slides:b,enabled:!0,initialPage:c("startIndex")||0,l10n:c("l10n")});n=zt(l,C),j("initCarousel",n),n.on("*",(o,a,...L)=>{j(`Carousel.${a}`,o,...L)}),n.on("attachSlideEl",Z),n.on("detachSlideEl",z),n.on("contentLoading",ae),n.on("contentReady",Me),n.on("ready",fe),n.on("change",_),n.on("settle",he),n.on("thumbs:ready",se),n.on("thumbs:destroy",se),n.init()})(),e&&t){if(c("closeExisting"))for(const[C,o]of et.entries())C!==E&&o.close();c("fadeEffect")?(setTimeout(()=>{D()},500),te(t,"is-revealing")):D(),t.classList.add("is-ready"),v=Re.Ready,j("ready")}},isCurrentSlide:function(x){const H=oe();return!(!x||!H)&&H.index===x.index},isTopMost:function(){return le()},localize:P,off:function(x,H){return S.has(x)&&S.set(x,S.get(x).filter(K=>K!==H)),Ae},on:function(x,H){return S.set(x,[...S.get(x)||[],H]),Ae},toggleIdle(x){(d||x===!0)&&Ue(),d&&x!==!1||Xe()}};return Ae};function Cn(){for(const e of Object.values($e.Plugins)){const t=e.setup;typeof t=="function"&&t($e)}}function jn(e,t={}){var l,n,s;if(!(e&&e instanceof Element))return;let f,u,v,g,E={};for(const[P,S]of $e.openers)if(P.contains(e))for(const[j,D]of S){let Z;if(j){for(const z of P.querySelectorAll(j))if(z.contains(e)){Z=z;break}if(!Z)continue}for(const[z,G]of D){let _=null;try{_=e.closest(z)}catch{}_&&(u=P,v=Z,f=_,g=z,We(E,G||{}))}}if(!u||!g||!f)return;const m=We({},St,t,E,{triggerEl:f});let b=[].slice.call((v||u).querySelectorAll(g));const d=f.closest(".f-carousel"),r=d?.carousel;if(r&&(!v||!d.contains(v))){const P=[];for(const S of r?.getSlides()){const j=S.el;j&&(j.matches(g)?P.push(j):P.push(...[].slice.call(j.querySelectorAll(g))))}P.length&&(b=[...P],(l=r.getPlugins().Autoplay)===null||l===void 0||l.pause(),(n=r.getPlugins().Autoscroll)===null||n===void 0||n.pause(),m.sync=r)}if(m.groupAll===!1){const P=m.groupAttr,S=P&&f?f.getAttribute(`${P}`):"";b=P&&S?b.filter(j=>j.getAttribute(`${P}`)===S):[f]}if(!b.length)return;(s=m.triggerEvent)===null||s===void 0||s.preventDefault();const p=$e.getInstance(),c=p?.getState();if(p&&(c===Re.Init||c===Re.Ready)){const P=p.getOptions().triggerEl;if(P&&b.indexOf(P)>-1)return}return Object.assign({},m.Carousel||{}).rtl&&(b=b.reverse()),f&&t.startIndex===void 0&&(m.startIndex=b.indexOf(f)),$e.fromNodes(b,m)}const $e={Plugins:{Hash:Rt},version:"6.1.12",openers:new Map,bind:function(e,t,l,n){if(!At())return;let s=document.body,f=null,u="[data-fancybox]",v={};e instanceof Element&&(s=e),xe(e)&&xe(t)?(f=e,u=t):xe(t)&&xe(l)?(f=t,u=l):xe(t)?u=t:xe(e)&&(u=e),typeof t=="object"&&(v=t||{}),typeof l=="object"&&(v=l||{}),typeof n=="object"&&(v=n||{}),(function(g,E,m,b={}){if(!(g&&g instanceof Element&&m))return;const d=$e.openers.get(g)||new Map,r=d.get(E)||new Map;r.set(m,b),d.set(E,r),$e.openers.set(g,d),d.size===1&&g.addEventListener("click",$e.fromEvent),Cn()})(s,f,u,v)},close:function(e=!0,...t){if(e)for(const l of et.values())l.close(...t);else{const l=$e.getInstance();l&&l.close(...t)}},destroy:function(){let e;for(;e=$e.getInstance();)e.destroy();for(const t of $e.openers.keys())t.removeEventListener("click",$e.fromEvent);$e.openers.clear()},fromEvent:function(e){if(e.defaultPrevented||e.button&&e.button!==0||e.ctrlKey||e.metaKey||e.shiftKey)return;let t=e.composedPath()[0];const l={triggerEvent:e};if(t.closest(".fancybox__container.is-hiding"))return Je(e),void e.stopPropagation();const n=t.closest("[data-fancybox-delegate]")||void 0;if(n){const s=n.dataset.fancyboxDelegate||"",f=document.querySelectorAll(`[data-fancybox="${s}"]`),u=parseInt(n.dataset.fancyboxIndex||"",10)||0;t=f[u]||f[0],We(l,{delegateEl:n,startIndex:u})}return jn(t,l)},fromNodes:function(e,t){t=We({},St,t||{});const l=[],n=s=>s instanceof HTMLImageElement?s:s instanceof HTMLElement?s.querySelector("img:not([aria-hidden])"):void 0;for(const s of e){const f=s.dataset||{},u=t.delegateEl&&e.indexOf(s)===t.startIndex?t.delegateEl:void 0,v=n(u)||n(s)||void 0,g=f.src||s.getAttribute("href")||s.getAttribute("currentSrc")||s.getAttribute("src")||void 0,E=f.thumb||f.thumbSrc||v?.getAttribute("currentSrc")||v?.getAttribute("src")||v?.dataset.lazySrc||void 0,m={src:g,alt:f.alt||v?.getAttribute("alt")||void 0,thumbSrc:E,thumbEl:v,triggerEl:s,delegateEl:u};for(const b in f){let d=f[b]+"";d=d!=="false"&&(d==="true"||d),m[b]=d}
10l.push(m)}return $e.show(l,t)},fromSelector:function(e,t,l,n){if(!At())return;let s=document.body,f=null,u="[data-fancybox]",v={};e instanceof Element&&(s=e),xe(e)&&xe(t)?(f=e,u=t):xe(t)&&xe(l)?(f=t,u=l):xe(t)?u=t:xe(e)&&(u=e),typeof t=="object"&&(v=t||{}),typeof l=="object"&&(v=l||{}),typeof n=="object"&&(v=n||{});for(const[g,E]of $e.openers)for(const[m,b]of E)for(const[d,r]of b)if(g===s&&m===f){const p=s.querySelector((m?`${m} `:"")+u);if(p&&p.matches(d))return $e.fromTriggerEl(p,v)}},fromTriggerEl:jn,getCarousel:function(){var e;return((e=$e.getInstance())===null||e===void 0?void 0:e.getCarousel())||void 0},getDefaults:function(){return St},getInstance:function(e){if(e){const t=et.get(e);return t&&t.getState()!==Re.Destroyed?t:void 0}return Array.from(et.values()).reverse().find(t=>{if(t.getState()!==Re.Destroyed)return t})||void 0},getSlide:function(){var e;return((e=$e.getInstance())===null||e===void 0?void 0:e.getSlide())||void 0},show:function(e=[],t={}){return Cn(),oo().init(e,t)},unbind:function(e,t,l){if(!At())return;let n=document.body,s=null,f="[data-fancybox]";e instanceof Element&&(n=e),xe(e)&&xe(t)?(s=e,f=t):xe(t)&&xe(l)?(s=t,f=l):xe(t)?f=t:xe(e)&&(f=e),(function(u,v,g){if(!(u&&u instanceof Element&&g))return;const E=$e.openers.get(u)||new Map,m=E.get(v)||new Map;m&&g&&m.delete(g),m.size&&g||E.delete(v),E.size||($e.openers.delete(u),u.removeEventListener("click",$e.fromEvent))})(n,s,f)}};export{Gn as Arrows,Yn as Autoplay,zt as Carousel,$e as Fancybox,Re as FancyboxState,Qn as Fullscreen,Kn as Html,Fn as Lazyload,Ye as PANZOOM_DEFAULT_POS,Wt as Panzoom,U as PanzoomAction,ln as PanzoomZoomLevel,kn as Sync,Un as Thumbs,Hn as Toolbar,bn as ToolbarColumn,Jn as Video,Zn as Zoomable};
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.