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