diff --git a/js/dist/forum.js b/js/dist/forum.js index bfb27c5..779e82d 100644 --- a/js/dist/forum.js +++ b/js/dist/forum.js @@ -1,2 +1,2 @@ -(()=>{var e={n:t=>{var i=t&&t.__esModule?()=>t.default:()=>t;return e.d(i,{a:i}),i},d:(t,i)=>{for(var n in i)e.o(i,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:i[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};(()=>{"use strict";e.r(t);const i=flarum.core.compat["forum/app"];var n=e.n(i);const o=flarum.core.compat["common/extend"],a=flarum.core.compat["forum/components/CommentPost"];var r=e.n(a);function s(e,t){for(var i=0;i=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);ie.clientHeight,i=window.getComputedStyle(e).overflowY,n=-1!==i.indexOf("hidden"),o=-1!==i.indexOf("visible");return t&&!n&&!o},g=function e(t,i){return void 0===i&&(i=void 0),!(!t||t===document.body||i&&t===i)&&(p(t)?t:e(t.parentElement,i))},m=function(e){var t=(new DOMParser).parseFromString(e,"text/html").body;if(t.childElementCount>1){for(var i=document.createElement("div");t.firstChild;)i.appendChild(t.firstChild);return i}return t.firstChild},b=function(e){return(""+(e||"")).split(" ").filter((function(e){return!!e}))},y=function(e,t,i){e&&b(t).forEach((function(t){e.classList.toggle(t,i||!1)}))},w=function(e){Object.defineProperty(this,"pageX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"pageY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"clientX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"clientY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"time",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"nativePointer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.nativePointer=e,this.pageX=e.pageX,this.pageY=e.pageY,this.clientX=e.clientX,this.clientY=e.clientY,this.id=self.Touch&&e instanceof Touch?e.identifier:-1,this.time=Date.now()},x={passive:!1},E=function(){function e(e,t){var i=t.start,n=void 0===i?function(){return!0}:i,o=t.move,a=void 0===o?function(){}:o,r=t.end,s=void 0===r?function(){}:r;Object.defineProperty(this,"element",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"startCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"moveCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"endCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"currentPointers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"startPointers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),this.element=e,this.startCallback=n,this.moveCallback=a,this.endCallback=s;for(var l=0,c=["onPointerStart","onTouchStart","onMove","onTouchEnd","onPointerEnd","onWindowBlur"];l0&&0!==e.button||(this.triggerPointerEnd(e,new w(e)),window.removeEventListener("mousemove",this.onMove),window.removeEventListener("mouseup",this.onPointerEnd),window.removeEventListener("blur",this.onWindowBlur))},t.onTouchEnd=function(e){for(var t=0,i=Array.from(e.changedTouches||[]);t1?n-1:0),a=1;a3?r-3:0),l=3;l-1&&n.splice(o,1)}}))},t.emit=function(e){for(var t=this,i=arguments.length,n=new Array(i>1?i-1:0),o=1;o',D='
'+I+I+"
",F=function(e){return e&&null!==e&&e instanceof Element&&"nodeType"in e},j=function(e,t){e&&b(t).forEach((function(t){e.classList.remove(t)}))},B=function(e,t){e&&b(t).forEach((function(t){e.classList.add(t)}))},H={a:1,b:0,c:0,d:1,e:0,f:0},N=1e4,_="mousemove",W="drag",X="content",q="auto",Y=null,V=null,Z=function(e){function t(i,n,o){var a,r;if(void 0===n&&(n={}),void 0===o&&(o={}),a=e.call(this,n)||this,Object.defineProperty(c(a),"pointerTracker",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(a),"resizeObserver",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(a),"updateTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(a),"clickTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(a),"rAF",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(a),"isTicking",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(c(a),"ignoreBounds",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(c(a),"isBouncingX",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(c(a),"isBouncingY",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(c(a),"clicks",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(c(a),"trackingPoints",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(c(a),"pwt",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(c(a),"cwd",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(c(a),"pmme",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(c(a),"friction",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(c(a),"state",{enumerable:!0,configurable:!0,writable:!0,value:A.Init}),Object.defineProperty(c(a),"isDragging",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(c(a),"container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(c(a),"content",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(c(a),"spinner",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(a),"containerRect",{enumerable:!0,configurable:!0,writable:!0,value:{width:0,height:0,innerWidth:0,innerHeight:0}}),Object.defineProperty(c(a),"contentRect",{enumerable:!0,configurable:!0,writable:!0,value:{top:0,right:0,bottom:0,left:0,fullWidth:0,fullHeight:0,fitWidth:0,fitHeight:0,width:0,height:0}}),Object.defineProperty(c(a),"dragStart",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0,top:0,left:0,time:0}}),Object.defineProperty(c(a),"dragOffset",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0,time:0}}),Object.defineProperty(c(a),"current",{enumerable:!0,configurable:!0,writable:!0,value:Object.assign({},H)}),Object.defineProperty(c(a),"target",{enumerable:!0,configurable:!0,writable:!0,value:Object.assign({},H)}),Object.defineProperty(c(a),"velocity",{enumerable:!0,configurable:!0,writable:!0,value:{a:0,b:0,c:0,d:0,e:0,f:0}}),Object.defineProperty(c(a),"lockedAxis",{enumerable:!0,configurable:!0,writable:!0,value:!1}),!i)throw new Error("Container Element Not Found");a.container=i,a.initContent(),a.attachPlugins(Object.assign(Object.assign({},t.Plugins),o)),a.emit("attachPlugins"),a.emit("init");var s=a.content;if(s.addEventListener("load",a.onLoad),s.addEventListener("error",a.onError),a.isContentLoading){if(a.option("spinner")){i.classList.add(a.cn("isLoading"));var l=m(D);!i.contains(s)||s.parentElement instanceof HTMLPictureElement?a.spinner=i.appendChild(l):a.spinner=(null===(r=s.parentElement)||void 0===r?void 0:r.insertBefore(l,s))||null}a.emit("beforeLoad")}else queueMicrotask((function(){a.enable()}));return c(a)}h(t,e);var i=t.prototype;return i.initContent=function(){var e=this.container,t=this.cn(X),i=this.option(X)||e.querySelector("."+t);if(i||(i=e.querySelector("img,picture")||e.firstElementChild)&&B(i,t),i instanceof HTMLPictureElement&&(i=i.querySelector("img")),!i)throw new Error("No content found");this.content=i},i.onLoad=function(){var e=this.spinner,t=this.container,i=this.state;e&&(e.remove(),this.spinner=null),this.option("spinner")&&t.classList.remove(this.cn("isLoading")),this.emit("afterLoad"),i===A.Init?this.enable():this.updateMetrics()},i.onError=function(){this.state!==A.Destroy&&(this.spinner&&(this.spinner.remove(),this.spinner=null),this.stop(),this.detachEvents(),this.state=A.Error,this.emit("error"))},i.getNextScale=function(e){var t=this.fullScale,i=this.targetScale,n=this.coverScale,o=this.maxScale,a=this.minScale,r=a;switch(e){case"toggleMax":r=i-a<.5*(o-a)?o:a;break;case"toggleCover":r=i-a<.5*(n-a)?n:a;break;case"toggleZoom":r=i-a<.5*(t-a)?t:a;break;case"iterateZoom":var s=[1,t,o].sort((function(e,t){return e-t})),l=s.findIndex((function(e){return e>i+1e-5}));r=s[l]||1}return r},i.attachObserver=function(){var e,t=this,i=function(){var e=t.container,i=t.containerRect;return Math.abs(i.width-e.getBoundingClientRect().width)>.1||Math.abs(i.height-e.getBoundingClientRect().height)>.1};this.resizeObserver||void 0===window.ResizeObserver||(this.resizeObserver=new ResizeObserver((function(){t.updateTimer||(i()?(t.onResize(),t.isMobile&&(t.updateTimer=setTimeout((function(){i()&&t.onResize(),t.updateTimer=null}),500))):t.updateTimer&&(clearTimeout(t.updateTimer),t.updateTimer=null))}))),null===(e=this.resizeObserver)||void 0===e||e.observe(this.container)},i.detachObserver=function(){var e;null===(e=this.resizeObserver)||void 0===e||e.disconnect()},i.attachEvents=function(){var e=this.container;e.addEventListener("click",this.onClick,{passive:!1,capture:!1}),e.addEventListener("wheel",this.onWheel,{passive:!1}),this.pointerTracker=new E(e,{start:this.onPointerDown,move:this.onPointerMove,end:this.onPointerUp}),document.addEventListener(_,this.onMouseMove)},i.detachEvents=function(){var e,t=this.container;t.removeEventListener("click",this.onClick,{passive:!1,capture:!1}),t.removeEventListener("wheel",this.onWheel,{passive:!1}),null===(e=this.pointerTracker)||void 0===e||e.stop(),this.pointerTracker=null,document.removeEventListener(_,this.onMouseMove),document.removeEventListener("keydown",this.onKeydown,!0),this.clickTimer&&(clearTimeout(this.clickTimer),this.clickTimer=null),this.updateTimer&&(clearTimeout(this.updateTimer),this.updateTimer=null)},i.animate=function(){var e=this;this.setTargetForce();for(var t,i=this.friction,n=this.option("maxVelocity"),o=d(L);!(t=o()).done;){var a=t.value;i?(this.velocity[a]*=1-i,n&&!this.isScaling&&(this.velocity[a]=Math.max(Math.min(this.velocity[a],n),-1*n)),this.current[a]+=this.velocity[a]):this.current[a]=this.target[a]}this.setTransform(),this.setEdgeForce(),!this.isResting||this.isDragging?this.rAF=requestAnimationFrame((function(){return e.animate()})):this.stop("current")},i.setTargetForce=function(){for(var e,t=d(L);!(e=t()).done;){var i=e.value;"e"===i&&this.isBouncingX||"f"===i&&this.isBouncingY||(this.velocity[i]=(1/(1-this.friction)-1)*(this.target[i]-this.current[i]))}},i.checkBounds=function(e,t){void 0===e&&(e=0),void 0===t&&(t=0);var i=this.current,n=i.e+e,o=i.f+t,a=this.getBounds(),r=a.x,s=a.y,l=r.min,c=r.max,u=s.min,h=s.max,d=0,f=0;return l!==1/0&&nc&&(d=c-n),u!==1/0&&oh&&(f=h-o),Math.abs(d)<1e-4&&(d=0),Math.abs(f)<1e-4&&(f=0),Object.assign(Object.assign({},a),{xDiff:d,yDiff:f,inBounds:!d&&!f})},i.clampTargetBounds=function(){var e=this.target,t=this.getBounds(),i=t.x,n=t.y;i.min!==1/0&&(e.e=Math.max(e.e,i.min)),i.max!==1/0&&(e.e=Math.min(e.e,i.max)),n.min!==1/0&&(e.f=Math.max(e.f,n.min)),n.max!==1/0&&(e.f=Math.min(e.f,n.max))},i.calculateContentDim=function(e){void 0===e&&(e=this.current);var t=this.content,i=this.contentRect,n=i.fitWidth,o=i.fitHeight,a=i.fullWidth,r=i.fullHeight,s=a,l=r;if(this.option("zoom")||0!==this.angle){var c=!(t instanceof HTMLImageElement||"none"!==window.getComputedStyle(t).maxWidth&&"none"!==window.getComputedStyle(t).maxHeight),u=c?a:n,h=c?r:o,d=this.getMatrix(e),f=new DOMPoint(0,0).matrixTransform(d),v=new DOMPoint(0+u,0).matrixTransform(d),p=new DOMPoint(0+u,0+h).matrixTransform(d),g=new DOMPoint(0,0+h).matrixTransform(d),m=Math.abs(p.x-f.x),b=Math.abs(p.y-f.y),y=Math.abs(g.x-v.x),w=Math.abs(g.y-v.y);s=Math.max(m,y),l=Math.max(b,w)}return{contentWidth:s,contentHeight:l}},i.setEdgeForce=function(){if(this.ignoreBounds||this.isDragging||this.panMode===_||this.targetScale3||Math.abs(this.dragOffset.y)>3)return e.preventDefault(),void e.stopPropagation();if(!n.closest("[data-fancybox]")){var h=this.content.getBoundingClientRect(),d=this.dragStart;if(!d.time||this.canZoomOut()||!(Math.abs(h.x-d.x)>2||Math.abs(h.y-d.y)>2)){this.dragStart.time=0;var f=function(t){i.option("zoom",e)&&t&&"string"==typeof t&&/(iterateZoom)|(toggle(Zoom|Full|Cover|Max)|(zoomTo(Fit|Cover|Max)))/.test(t)&&"function"==typeof i[t]&&(e.preventDefault(),i[t]({event:e}))},v=this.option("click",e),p=this.option("dblClick",e);p?(this.clicks++,1==this.clicks&&(this.clickTimer=setTimeout((function(){1===i.clicks?(i.emit("click",e),!e.defaultPrevented&&v&&f(v)):(i.emit("dblClick",e),e.defaultPrevented||f(p)),i.clicks=0,i.clickTimer=null}),350))):(this.emit("click",e),!e.defaultPrevented&&v&&f(v))}}}}},i.addTrackingPoint=function(e){var t=this.trackingPoints.filter((function(e){return e.time>Date.now()-100}));t.push(e),this.trackingPoints=t},i.onPointerDown=function(e,t,i){var n;if(!1===this.option("touch",e))return!1;this.pwt=0,this.dragOffset={x:0,y:0,time:0},this.trackingPoints=[];var o=this.content.getBoundingClientRect();if(this.dragStart={x:o.x,y:o.y,top:o.top,left:o.left,time:Date.now()},this.clickTimer)return!1;if(this.panMode===_&&this.targetScale>1)return e.preventDefault(),e.stopPropagation(),!1;var a=e.composedPath()[0];if(!i.length){if(["TEXTAREA","OPTION","INPUT","SELECT","VIDEO","IFRAME"].includes(a.nodeName)||a.closest("[contenteditable],[data-selectable],[data-draggable],[data-clickable],[data-panzoom-change],[data-panzoom-action]"))return!1;null===(n=window.getSelection())||void 0===n||n.removeAllRanges()}if("mousedown"===e.type)["A","BUTTON"].includes(a.nodeName)||e.preventDefault();else if(Math.abs(this.velocity.a)>.3)return!1;return this.target.e=this.current.e,this.target.f=this.current.f,this.stop(),this.isDragging||(this.isDragging=!0,this.addTrackingPoint(t),this.emit("touchStart",e)),!0},i.onPointerMove=function(e,t,i){if(!1!==this.option("touch",e)&&this.isDragging&&!(t.length<2&&this.panOnlyZoomed&&v(this.targetScale)<=v(this.minScale)||(this.emit("touchMove",e),e.defaultPrevented))){this.addTrackingPoint(t[0]);var n=this.content,o=P(i[0],i[1]),a=P(t[0],t[1]),r=0,s=0;if(t.length>1){var l=n.getBoundingClientRect();r=o.clientX-l.left-.5*l.width,s=o.clientY-l.top-.5*l.height}var c=S(i[0],i[1]),u=S(t[0],t[1]),h=c?u/c:1,d=a.clientX-o.clientX,f=a.clientY-o.clientY;this.dragOffset.x+=d,this.dragOffset.y+=f,this.dragOffset.time=Date.now()-this.dragStart.time;var p=v(this.targetScale)===v(this.minScale)&&this.option("lockAxis");if(p&&!this.lockedAxis)if("xy"===p||"y"===p||"touchmove"===e.type){if(Math.abs(this.dragOffset.x)<6&&Math.abs(this.dragOffset.y)<6)return void e.preventDefault();var m=Math.abs(180*Math.atan2(this.dragOffset.y,this.dragOffset.x)/Math.PI);this.lockedAxis=m>45&&m<135?"y":"x",this.dragOffset.x=0,this.dragOffset.y=0,d=0,f=0}else this.lockedAxis=p;if(g(e.target,this.content)&&(p="x",this.dragOffset.y=0),!p||"xy"===p||this.lockedAxis===p||v(this.targetScale)!==v(this.minScale)){e.cancelable&&e.preventDefault(),this.container.classList.add(this.cn("isDragging"));var b=this.checkBounds(d,f);this.option("rubberband")?("x"!==this.isInfinite&&(b.xDiff>0&&d<0||b.xDiff<0&&d>0)&&(d*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitWidth*b.xDiff))),"y"!==this.isInfinite&&(b.yDiff>0&&f<0||b.yDiff<0&&f>0)&&(f*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitHeight*b.yDiff)))):(b.xDiff&&(d=0),b.yDiff&&(f=0));var y=this.targetScale,w=this.minScale,x=this.maxScale;y<.5*w&&(h=Math.max(h,w)),y>1.5*x&&(h=Math.min(h,x)),"y"===this.lockedAxis&&v(y)===v(w)&&(d=0),"x"===this.lockedAxis&&v(y)===v(w)&&(f=0),this.applyChange({originX:r,originY:s,panX:d,panY:f,scale:h,friction:this.option("dragFriction"),ignoreBounds:!0})}}},i.onPointerUp=function(e,t,i){if(i.length)return this.dragOffset.x=0,this.dragOffset.y=0,void(this.trackingPoints=[]);this.container.classList.remove(this.cn("isDragging")),this.isDragging&&(this.addTrackingPoint(t),this.panOnlyZoomed&&this.contentRect.width-this.contentRect.fitWidth<1&&this.contentRect.height-this.contentRect.fitHeight<1&&(this.trackingPoints=[]),g(e.target,this.content)&&"y"===this.lockedAxis&&(this.trackingPoints=[]),this.emit("touchEnd",e),this.isDragging=!1,this.lockedAxis=!1,this.state!==A.Destroy&&(e.defaultPrevented||this.startDecelAnim()))},i.startDecelAnim=function(){var e,t=this.isScaling;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.isBouncingX=!1,this.isBouncingY=!1;for(var i,n=d(L);!(i=n()).done;){var o=i.value;this.velocity[o]=0}this.target.e=this.current.e,this.target.f=this.current.f,j(this.container,"is-scaling"),j(this.container,"is-animating"),this.isTicking=!1;var a=this.trackingPoints,r=a[0],s=a[a.length-1],l=0,c=0,u=0;s&&r&&(l=s.clientX-r.clientX,c=s.clientY-r.clientY,u=s.time-r.time);var h=(null===(e=window.visualViewport)||void 0===e?void 0:e.scale)||1;1!==h&&(l*=h,c*=h);var f=0,p=0,g=0,m=0,b=this.option("decelFriction"),y=this.targetScale;if(u>0){g=Math.abs(l)>3?l/(u/30):0,m=Math.abs(c)>3?c/(u/30):0;var w=this.option("maxVelocity");w&&(g=Math.max(Math.min(g,w),-1*w),m=Math.max(Math.min(m,w),-1*w))}g&&(f=g/(1/(1-b)-1)),m&&(p=m/(1/(1-b)-1)),("y"===this.option("lockAxis")||"xy"===this.option("lockAxis")&&"y"===this.lockedAxis&&v(y)===this.minScale)&&(f=g=0),("x"===this.option("lockAxis")||"xy"===this.option("lockAxis")&&"x"===this.lockedAxis&&v(y)===this.minScale)&&(p=m=0);var x=this.dragOffset.x,E=this.dragOffset.y,S=this.option("dragMinThreshold")||0;Math.abs(x)this.maxScale+1e-5)||t&&!f&&!p)&&(b=.35),this.applyChange({panX:f,panY:p,friction:b}),this.emit("decel",g,m,x,E)},i.onWheel=function(e){var t=[-e.deltaX||0,-e.deltaY||0,-e.detail||0].reduce((function(e,t){return Math.abs(t)>Math.abs(e)?t:e})),i=Math.max(-1,Math.min(1,t));if(this.emit("wheel",e,i),this.panMode!==_&&!e.defaultPrevented){var n=this.option("wheel");"pan"===n?(e.preventDefault(),this.panOnlyZoomed&&!this.canZoomOut()||this.applyChange({panX:2*-e.deltaX,panY:2*-e.deltaY,bounce:!1})):"zoom"===n&&!1!==this.option("zoom")&&this.zoomWithWheel(e)}},i.onMouseMove=function(e){this.panWithMouse(e)},i.onKeydown=function(e){"Escape"===e.key&&this.toggleFS()},i.onResize=function(){this.updateMetrics(),this.checkBounds().inBounds||this.requestTick()},i.setTransform=function(){this.emit("beforeTransform");for(var e,t=this.current,i=this.target,n=this.content,o=this.contentRect,a=Object.assign({},H),r=d(L);!(e=r()).done;){var s=e.value,l="e"==s||"f"===s?N:1e5;a[s]=v(t[s],l),Math.abs(i[s]-t[s])<("e"==s||"f"===s?.51:.001)&&(t[s]=i[s])}var c="matrix("+a.a+", "+a.b+", "+a.c+", "+a.d+", "+a.e+", "+a.f+")",u=n.parentElement instanceof HTMLPictureElement?n.parentElement:n;if(this.option("transformParent")&&(u=u.parentElement||u),u.style.transform!==c){u.style.transform=c;var h=this.calculateContentDim(),f=h.contentWidth,p=h.contentHeight;o.width=f,o.height=p,this.emit("afterTransform")}},i.updateMetrics=function(e){var t,i;if(void 0===e&&(e=!1),this&&this.state!==A.Destroy&&!this.isContentLoading){var n=Math.max(1,(null===(i=window.visualViewport)||void 0===i?void 0:i.scale)||1),o=this.container,a=this.content,r=a instanceof HTMLImageElement,s=o.getBoundingClientRect(),l=getComputedStyle(this.container),c=s.width*n,u=s.height*n,h=parseFloat(l.paddingTop)+parseFloat(l.paddingBottom),d=c-(parseFloat(l.paddingLeft)+parseFloat(l.paddingRight)),f=u-h;this.containerRect={width:c,height:u,innerWidth:d,innerHeight:f};var p=parseFloat(a.dataset.width||"")||function(e){return(e instanceof HTMLImageElement?e.naturalWidth:e instanceof SVGElement?e.width.baseVal.value:Math.max(e.offsetWidth,e.scrollWidth))||0}(a),g=parseFloat(a.dataset.height||"")||function(e){return(e instanceof HTMLImageElement?e.naturalHeight:e instanceof SVGElement?e.height.baseVal.value:Math.max(e.offsetHeight,e.scrollHeight))||0}(a),m=this.option("width",p)||q,b=this.option("height",g)||q,y=m===q,w=b===q;"number"!=typeof m&&(m=p),"number"!=typeof b&&(b=g),y&&(m=p*(b/g)),w&&(b=g/(p/m));var x=a.parentElement instanceof HTMLPictureElement?a.parentElement:a;this.option("transformParent")&&(x=x.parentElement||x);var E=x.getAttribute("style")||"";x.style.setProperty("transform","none","important"),r&&(x.style.width="",x.style.height=""),x.offsetHeight;var S=a.getBoundingClientRect(),P=S.width*n,C=S.height*n,T=P,M=C;P=Math.min(P,m),C=Math.min(C,b),r?(t=function(e,t,i,n){var o=i/e,a=n/t,r=Math.min(o,a);return{width:e*=r,height:t*=r}}(m,b,P,C),P=t.width,C=t.height):(P=Math.min(P,m),C=Math.min(C,b));var O=.5*(M-C),k=.5*(T-P);this.contentRect=Object.assign(Object.assign({},this.contentRect),{top:S.top-s.top+O,bottom:s.bottom-S.bottom+O,left:S.left-s.left+k,right:s.right-S.right+k,fitWidth:P,fitHeight:C,width:P,height:C,fullWidth:m,fullHeight:b}),x.style.cssText=E,r&&(x.style.width=P+"px",x.style.height=C+"px"),this.setTransform(),!0!==e&&this.emit("refresh"),this.ignoreBounds||(v(this.targetScale)this.maxScale?this.zoomTo(this.maxScale,{friction:0}):this.state===A.Init||this.checkBounds().inBounds||this.requestTick()),this.updateControls()}},i.calculateBounds=function(){var e=this.calculateContentDim(this.target),t=e.contentWidth,i=e.contentHeight,n=this.targetScale,o=this.lockedAxis,a=this.contentRect,r=a.fitWidth,s=a.fitHeight,l=0,c=0,u=0,h=0,d=this.option("infinite");if(!0===d||o&&d===o)l=-1/0,u=1/0,c=-1/0,h=1/0;else{var f=this.containerRect,p=this.contentRect,g=v(r*n,N),m=v(s*n,N),b=f.innerWidth,y=f.innerHeight;if(f.width===g&&(b=f.width),f.width===m&&(y=f.height),t>b){l=-1*(u=.5*(t-b));var w=.5*(p.right-p.left);l+=w,u+=w}if(r>b&&ty){c=-1*(h=.5*(i-y));var x=.5*(p.bottom-p.top);c+=x,h+=x}s>y&&iv(n.fitWidth,1)||v(n.height,1)>v(n.fitHeight,1))&&(h=!0)),v(n.width*o,1)v(o),p=!f&&!h&&c&&v(r)D&&(r=D/R)}z=z.scale(r)}z=z.translate(-u,-f).translate(-M,-O).multiply(k),l&&(z=z.rotate(l)),b&&(z=z.scale(-1,1)),w&&(z=z.scale(1,-1));for(var F,j=d(L);!(F=j()).done;){var B=F.value;"e"!==B&&"f"!==B&&(z[B]>this.minScale+1e-5||z[B].1||this.panMode===_||!1===P)&&!E&&this.clampTargetBounds(),C===A.Init?this.animate():this.isResting||(this.state=A.Panning,this.requestTick())}},i.stop=function(e){if(void 0===e&&(e=!1),this.state!==A.Init&&this.state!==A.Destroy){var t=this.isTicking;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.isBouncingX=!1,this.isBouncingY=!1;for(var i,n=d(L);!(i=n()).done;){var o=i.value;this.velocity[o]=0,"current"===e?this.current[o]=this.target[o]:"target"===e&&(this.target[o]=this.current[o])}this.setTransform(),j(this.container,"is-scaling"),j(this.container,"is-animating"),this.isTicking=!1,this.state=A.Ready,t&&(this.emit("endAnimation"),this.updateControls())}},i.requestTick=function(){var e=this;this.isTicking||(this.emit("startAnimation"),this.updateControls(),B(this.container,"is-animating"),this.isScaling&&B(this.container,"is-scaling")),this.isTicking=!0,this.rAF||(this.rAF=requestAnimationFrame((function(){return e.animate()})))},i.panWithMouse=function(e,t){if(void 0===t&&(t=this.option("mouseMoveFriction")),this.pmme=e,this.panMode===_&&e&&!(v(this.targetScale)<=v(this.minScale))){this.emit("mouseMove",e);var i=this.container,n=this.containerRect,o=this.contentRect,a=n.width,r=n.height,s=i.getBoundingClientRect(),l=(e.clientX||0)-s.left,c=(e.clientY||0)-s.top,u=this.calculateContentDim(this.target),h=u.contentWidth,d=u.contentHeight,f=this.option("mouseMoveFactor");f>1&&(h!==a&&(h*=f),d!==r&&(d*=f));var p=.5*(h-a)-l/a*100/100*(h-a);p+=.5*(o.right-o.left);var g=.5*(d-r)-c/r*100/100*(d-r);g+=.5*(o.bottom-o.top),this.applyChange({panX:p-this.target.e,panY:g-this.target.f,friction:t})}},i.zoomWithWheel=function(e){if(this.state!==A.Destroy&&this.state!==A.Init){var t=Date.now();if(t-this.pwt<45)e.preventDefault();else{this.pwt=t;var i=[-e.deltaX||0,-e.deltaY||0,-e.detail||0].reduce((function(e,t){return Math.abs(t)>Math.abs(e)?t:e})),n=Math.max(-1,Math.min(1,i)),o=this.targetScale,a=this.maxScale,r=this.minScale,s=o*(100+45*n)/100;v(s)v(a)&&v(o)>=v(a)?(this.cwd+=Math.abs(n),s=a):(this.cwd=0,s=Math.max(Math.min(s,a),r)),this.cwd>this.option("wheelLimit")||(e.preventDefault(),v(s)!==v(o)&&this.zoomTo(s,{event:e}))}}},i.canZoomIn=function(){return this.option("zoom")&&(v(this.contentRect.width,1)v(this.minScale)},i.zoomIn=function(e,t){void 0===e&&(e=1.25),this.zoomTo(this.targetScale*e,t)},i.zoomOut=function(e,t){void 0===e&&(e=.8),this.zoomTo(this.targetScale*e,t)},i.zoomToFit=function(e){this.zoomTo("fit",e)},i.zoomToCover=function(e){this.zoomTo("cover",e)},i.zoomToFull=function(e){this.zoomTo("full",e)},i.zoomToMax=function(e){this.zoomTo("max",e)},i.toggleZoom=function(e){this.zoomTo(this.getNextScale("toggleZoom"),e)},i.toggleMax=function(e){this.zoomTo(this.getNextScale("toggleMax"),e)},i.toggleCover=function(e){this.zoomTo(this.getNextScale("toggleCover"),e)},i.iterateZoom=function(e){this.zoomTo("next",e)},i.zoomTo=function(e,t){void 0===e&&(e=1);var i=void 0===t?{}:t,n=i.friction,o=void 0===n?q:n,a=i.originX,r=void 0===a?q:a,s=i.originY,l=void 0===s?q:s,c=i.event;if(!this.isContentLoading&&this.state!==A.Destroy){var u=this.targetScale,h=this.fullScale,d=this.maxScale,f=this.coverScale;if(this.stop(),this.panMode===_&&(c=this.pmme||c),c||r===q||l===q){var v=this.content.getBoundingClientRect(),p=this.container.getBoundingClientRect(),g=c?c.clientX:p.left+.5*p.width,m=c?c.clientY:p.top+.5*p.height;r=g-v.left-.5*v.width,l=m-v.top-.5*v.height}var b=1;"number"==typeof e?b=e:"full"===e?b=h:"cover"===e?b=f:"max"===e?b=d:"fit"===e?b=1:"next"===e&&(b=this.getNextScale("iterateZoom")),b=b/u||1,o=o===q?b>1?.15:.25:o,this.applyChange({scale:b,originX:r,originY:l,friction:o}),c&&this.panMode===_&&this.panWithMouse(c,o)}},i.rotateCCW=function(){this.applyChange({angle:-90})},i.rotateCW=function(){this.applyChange({angle:90})},i.flipX=function(){this.applyChange({flipX:!0})},i.flipY=function(){this.applyChange({flipY:!0})},i.fitX=function(){this.stop("target");var e=this.containerRect,t=this.contentRect,i=this.target;this.applyChange({panX:.5*e.width-(t.left+.5*t.fitWidth)-i.e,panY:.5*e.height-(t.top+.5*t.fitHeight)-i.f,scale:e.width/t.fitWidth/this.targetScale,originX:0,originY:0,ignoreBounds:!0})},i.fitY=function(){this.stop("target");var e=this.containerRect,t=this.contentRect,i=this.target;this.applyChange({panX:.5*e.width-(t.left+.5*t.fitWidth)-i.e,panY:.5*e.innerHeight-(t.top+.5*t.fitHeight)-i.f,scale:e.height/t.fitHeight/this.targetScale,originX:0,originY:0,ignoreBounds:!0})},i.toggleFS=function(){var e=this.container,t=this.cn("inFullscreen"),i=this.cn("htmlHasFullscreen");e.classList.toggle(t);var n=e.classList.contains(t);n?(document.documentElement.classList.add(i),document.addEventListener("keydown",this.onKeydown,!0)):(document.documentElement.classList.remove(i),document.removeEventListener("keydown",this.onKeydown,!0)),this.updateMetrics(),this.emit(n?"enterFS":"exitFS")},i.getMatrix=function(e){void 0===e&&(e=this.current);var t=e,i=t.a,n=t.b,o=t.c,a=t.d,r=t.e,s=t.f;return new DOMMatrix([i,n,o,a,r,s])},i.reset=function(e){if(this.state!==A.Init&&this.state!==A.Destroy){this.stop("current");for(var t,i=d(L);!(t=i()).done;){var n=t.value;this.target[n]=H[n]}this.target.a=this.minScale,this.target.d=this.minScale,this.clampTargetBounds(),this.isResting||(this.friction=void 0===e?this.option("friction"):e,this.state=A.Panning,this.requestTick())}},i.destroy=function(){this.stop(),this.state=A.Destroy,this.detachEvents(),this.detachObserver();for(var e=this.container,t=this.content,i=this.option("classes")||{},n=0,o=Object.values(i);n1e-5&&!this.isResting}},{key:"isContentLoading",get:function(){var e=this.content;return!!(e&&e instanceof HTMLImageElement)&&!e.complete}},{key:"isResting",get:function(){if(this.isBouncingX||this.isBouncingY)return!1;for(var e,t=d(L);!(e=t()).done;){var i=e.value,n="e"==i||"f"===i?1e-4:1e-5;if(Math.abs(this.target[i]-this.current[i])>n)return!1}return!(!this.ignoreBounds&&!this.checkBounds().inBounds)}}]),t}(k);Object.defineProperty(Z,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:R}),Object.defineProperty(Z,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:{}});var U,G=function(e,t){var i=!0;return function(){i&&(i=!1,e.apply(void 0,arguments),setTimeout((function(){i=!0}),t))}},K=function(e,t){var i=[];return e.childNodes.forEach((function(e){e.nodeType!==Node.ELEMENT_NODE||t&&!e.matches(t)||i.push(e)})),i};!function(e){e[e.Init=0]="Init",e[e.Ready=1]="Ready",e[e.Destroy=2]="Destroy"}(U||(U={}));var J=function(e){if("string"==typeof e||e instanceof HTMLElement)e={html:e};else{var t=e.thumb;void 0!==t&&("string"==typeof t&&(e.thumbSrc=t),t instanceof HTMLImageElement&&(e.thumbEl=t,e.thumbElSrc=t.src,e.thumbSrc=t.src),delete e.thumb)}return Object.assign({html:"",el:null,isDom:!1,class:"",customClass:"",index:-1,dim:0,gap:0,pos:0,transition:!1},e)},$=function(e){return void 0===e&&(e={}),Object.assign({index:-1,slides:[],dim:0,pos:-1},e)},Q=function(e){function t(t,i){var n;return n=e.call(this,i)||this,Object.defineProperty(c(n),"instance",{enumerable:!0,configurable:!0,writable:!0,value:t}),n}h(t,e);var i=t.prototype;return i.attach=function(){},i.detach=function(){},t}(O),ee=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(c(t),"isDynamic",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(c(t),"list",{enumerable:!0,configurable:!0,writable:!0,value:null}),t}h(t,e);var i=t.prototype;return i.onRefresh=function(){this.refresh()},i.build=function(){var e=this.list;if(!e){e=document.createElement("ul"),B(e,this.cn("list")),e.setAttribute("role","tablist");var t=this.instance.container;t.appendChild(e),B(t,this.cn("hasDots")),this.list=e}return e},i.refresh=function(){var e,t=this.instance.pages.length,i=Math.min(2,this.option("minCount")),n=Math.max(2e3,this.option("maxCount")),o=this.option("dynamicFrom");if(tn)this.cleanup();else{var a="number"==typeof o&&t>5&&t>=o,r=!this.list||this.isDynamic!==a||this.list.children.length!==t;r&&this.cleanup();var s=this.build();if(y(s,this.cn("isDynamic"),!!a),r)for(var l=0;l',dynamicFrom:11,maxCount:1/0,minCount:2}});var te="disabled",ie="next",ne="prev",oe=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(c(t),"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(t),"prev",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(t),"next",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(t),"isDom",{enumerable:!0,configurable:!0,writable:!0,value:!1}),t}h(t,e);var i=t.prototype;return i.onRefresh=function(){var e=this.instance,t=e.pages.length,i=e.page;if(t<2)this.cleanup();else{this.build();var n=this.prev,o=this.next;n&&o&&(n.removeAttribute(te),o.removeAttribute(te),e.isInfinite||(i<=0&&n.setAttribute(te,""),i>=t-1&&o.setAttribute(te,"")))}},i.addBtn=function(e){var t,i=this.instance,n=document.createElement("button");n.setAttribute("tabindex","0"),n.setAttribute("title",i.localize("{{"+e.toUpperCase()+"}}")),B(n,this.cn("button")+" "+this.cn(e===ie?"isNext":"isPrev"));var o,a=i.isRTL?e===ie?ne:ie:e;return n.innerHTML=i.localize(this.option(a+"Tpl")),n.dataset["carousel"+(o=e,o?o.match("^[a-z]")?o.charAt(0).toUpperCase()+o.substring(1):o:"")]="true",null===(t=this.container)||void 0===t||t.appendChild(n),n},i.build=function(){var e=this.instance.container,t=this.cn("container"),i=this.container,n=this.prev,o=this.next;i||(i=e.querySelector("."+t),this.isDom=!!i),i||(i=document.createElement("div"),B(i,t),e.appendChild(i)),this.container=i,o||(o=i.querySelector("[data-carousel-next]")),o||(o=this.addBtn(ie)),this.next=o,n||(n=i.querySelector("[data-carousel-prev]")),n||(n=this.addBtn(ne)),this.prev=n},i.cleanup=function(){this.isDom||(this.prev&&this.prev.remove(),this.next&&this.next.remove(),this.container&&this.container.remove()),this.prev=null,this.next=null,this.container=null,this.isDom=!1},i.attach=function(){this.instance.on(["refresh","change"],this.onRefresh)},i.detach=function(){this.instance.off(["refresh","change"],this.onRefresh),this.cleanup()},t}(Q);Object.defineProperty(oe,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{classes:{container:"f-carousel__nav",button:"f-button",isNext:"is-next",isPrev:"is-prev"},nextTpl:'',prevTpl:''}});var ae=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(c(t),"selectedIndex",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(t),"target",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(t),"nav",{enumerable:!0,configurable:!0,writable:!0,value:null}),t}h(t,e);var i=t.prototype;return i.addAsTargetFor=function(e){this.target=this.instance,this.nav=e,this.attachEvents()},i.addAsNavFor=function(e){this.nav=this.instance,this.target=e,this.attachEvents()},i.attachEvents=function(){var e=this.nav,t=this.target;e&&t&&(e.options.initialSlide=t.options.initialPage,e.state===U.Ready?this.onNavReady(e):e.on("ready",this.onNavReady),t.state===U.Ready?this.onTargetReady(t):t.on("ready",this.onTargetReady))},i.onNavReady=function(e){e.on("createSlide",this.onNavCreateSlide),e.on("Panzoom.click",this.onNavClick),e.on("Panzoom.touchEnd",this.onNavTouch),this.onTargetChange()},i.onTargetReady=function(e){e.on("change",this.onTargetChange),e.on("Panzoom.refresh",this.onTargetChange),this.onTargetChange()},i.onNavClick=function(e,t,i){this.onNavTouch(e,e.panzoom,i)},i.onNavTouch=function(e,t,i){var n,o;if(!(Math.abs(t.dragOffset.x)>3||Math.abs(t.dragOffset.y)>3)){var a=i.target,r=this.nav,s=this.target;if(r&&s&&a){var l=a.closest("[data-index]");if(i.stopPropagation(),i.preventDefault(),l){var c=parseInt(l.dataset.index||"",10)||0,u=s.getPageForSlide(c),h=r.getPageForSlide(c);r.slideTo(h),s.slideTo(u,{friction:(null===(o=null===(n=this.nav)||void 0===n?void 0:n.plugins)||void 0===o?void 0:o.Sync.option("friction"))||0}),this.markSelectedSlide(c)}}}},i.onNavCreateSlide=function(e,t){t.index===this.selectedIndex&&this.markSelectedSlide(t.index)},i.onTargetChange=function(){var e,t,i=this.target,n=this.nav;if(i&&n&&n.state===U.Ready&&i.state===U.Ready){var o=null===(t=null===(e=i.pages[i.page])||void 0===e?void 0:e.slides[0])||void 0===t?void 0:t.index,a=n.getPageForSlide(o);this.markSelectedSlide(o),n.slideTo(a,null===n.prevPage&&null===i.prevPage?{friction:0}:void 0)}},i.markSelectedSlide=function(e){var t=this.nav;t&&t.state===U.Ready&&(this.selectedIndex=e,[].concat(t.slides).map((function(t){t.el&&t.el.classList[t.index===e?"add":"remove"]("is-nav-selected")})))},i.attach=function(){var e=this,t=e.options.target,i=e.options.nav;t?e.addAsNavFor(t):i&&e.addAsTargetFor(i)},i.detach=function(){var e=this,t=e.nav,i=e.target;t&&(t.off("ready",e.onNavReady),t.off("createSlide",e.onNavCreateSlide),t.off("Panzoom.click",e.onNavClick),t.off("Panzoom.touchEnd",e.onNavTouch)),e.nav=null,i&&(i.off("ready",e.onTargetReady),i.off("refresh",e.onTargetChange),i.off("change",e.onTargetChange)),e.target=null},t}(Q);Object.defineProperty(ae,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{friction:.35}});var re={Navigation:oe,Dots:ee,Sync:ae},se="animationend",le="isSelected",ce="slide",ue=function(e){function t(t,i,n){var o;if(void 0===i&&(i={}),void 0===n&&(n={}),o=e.call(this)||this,Object.defineProperty(c(o),"bp",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(c(o),"lp",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(c(o),"userOptions",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(c(o),"userPlugins",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(c(o),"state",{enumerable:!0,configurable:!0,writable:!0,value:U.Init}),Object.defineProperty(c(o),"page",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(c(o),"prevPage",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(o),"container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(c(o),"viewport",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(o),"track",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(o),"slides",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(c(o),"pages",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(c(o),"panzoom",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(o),"inTransition",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),Object.defineProperty(c(o),"contentDim",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(c(o),"viewportDim",{enumerable:!0,configurable:!0,writable:!0,value:0}),"string"==typeof t&&(t=document.querySelector(t)),!t||!F(t))throw new Error("No Element found");return o.container=t,o.slideNext=G(o.slideNext.bind(c(o)),150),o.slidePrev=G(o.slidePrev.bind(c(o)),150),o.userOptions=i,o.userPlugins=n,queueMicrotask((function(){o.processOptions()})),c(o)}h(t,e);var i=t.prototype;return i.processOptions=function(){var i,n,o=this,a=T({},t.defaults,this.userOptions),r="",s=a.breakpoints;if(s&&C(s))for(var l=0,c=Object.entries(s);l2?n-2:0),a=2;a.05||s>=n)&&(e.push($()),a=e.length-1,r=0,s=0),e[a].slides.push(c),r+=c.dim+c.gap,s++}return e},i.processPages=function(){var e=this.pages,t=this.contentDim,i=this.viewportDim,n=this.isInfinite,o=this.option("center"),a=this.option("fill"),r=a&&o&&t>i&&!n;if(e.forEach((function(e,n){var a;e.index=n,e.pos=(null===(a=e.slides[0])||void 0===a?void 0:a.pos)||0,e.dim=0;for(var s,l=d(e.slides.entries());!(s=l()).done;){var c=s.value,u=c[0],h=c[1];e.dim+=h.dim,u=t-.5*i?e.pos=t-i:o&&(e.pos+=-.5*(i-e.dim))})),e.forEach((function(e){a&&!n&&t>i&&(e.pos=Math.max(e.pos,0),e.pos=Math.min(e.pos,t-i)),e.pos=v(e.pos,1e3),e.dim=v(e.dim,1e3),Math.abs(e.pos)<=.1&&(e.pos=0)})),n)return e;var s,l=[];return e.forEach((function(e){var t=Object.assign({},e);s&&t.pos===s.pos?(s.dim+=t.dim,s.slides=[].concat(s.slides,t.slides)):(t.index=l.length,s=t,l.push(t))})),l},i.getPageFromIndex=function(e){void 0===e&&(e=0);var t=this.pages.length;return e=parseInt((e||0).toString())||0,this.isInfinite?(e%t+t)%t:Math.max(Math.min(e,t-1),0)},i.getSlideMetrics=function(e){var t,i,n,o=this.isHorizontal?"width":"height",a=0,r=e.el,s=!(!r||r.parentNode);if(r?a=parseFloat(r.dataset[o]||"")||0:((r=document.createElement("div")).style.visibility="hidden",(this.track||document.body).prepend(r)),B(r,this.cn(ce)+" "+e.class+" "+e.customClass),a)r.style[o]=a+"px",r.style["width"===o?"height":"width"]="";else{s&&(this.track||document.body).prepend(r),a=r.getBoundingClientRect()[o]*Math.max(1,(null===(t=window.visualViewport)||void 0===t?void 0:t.scale)||1);var l=r[this.isHorizontal?"offsetWidth":"offsetHeight"];l-1>a&&(a=l)}var c=getComputedStyle(r);return"content-box"===c.boxSizing&&(this.isHorizontal?(a+=parseFloat(c.paddingLeft)||0,a+=parseFloat(c.paddingRight)||0):(a+=parseFloat(c.paddingTop)||0,a+=parseFloat(c.paddingBottom)||0)),n=parseFloat(c[this.isHorizontal?"marginRight":"marginBottom"])||0,s?null===(i=r.parentElement)||void 0===i||i.removeChild(r):e.el||r.remove(),{dim:v(a,1e3),gap:v(n,1e3)}},i.getBounds=function(){var e=this.isInfinite,t=this.isRTL,i=this.isHorizontal,n=this.pages,o={min:0,max:0};if(e)o={min:-1/0,max:1/0};else if(n.length){var a=n[0].pos,r=n[n.length-1].pos;o=t&&i?{min:a,max:r}:{min:-1*r,max:-1*a}}return{x:i?o:{min:0,max:0},y:i?{min:0,max:0}:o}},i.repositionSlides=function(){var e,t=this.isHorizontal,i=this.isRTL,n=this.isInfinite,o=this.viewport,a=this.viewportDim,r=this.contentDim,s=this.page,l=this.pages,c=this.slides,u=this.panzoom,h=0,f=0,p=0,g=0;u?g=-1*u.current[this.axis]:l[s]&&(g=l[s].pos||0),e=t?i?"right":"left":"top",i&&t&&(g*=-1);for(var m,b=d(c);!(m=b()).done;){var y=m.value,w=y.el;w?("top"===e?(w.style.right="",w.style.left=""):w.style.top="",y.index!==h?w.style[e]=0===f?"":v(f,1e3)+"px":w.style[e]="",p+=y.dim+y.gap,h++):f+=y.dim+y.gap}if(n&&p&&o){var x=getComputedStyle(o),E="padding",S=t?"Right":"Bottom",P=parseFloat(x[E+(t?"Left":"Top")]);g-=P,a+=P,a+=parseFloat(x[E+S]);for(var C,T=d(c);!(C=T()).done;){var M=C.value;M.el&&(v(M.pos)v(r-a)&&(M.el.style[e]=v(f+p,1e3)+"px"),v(M.pos+M.gap)>=v(r-a)&&v(M.pos)>v(g+a)&&v(g)1&&(O=l[k[0]],A=l[k[1]]),O&&A)for(var L,z=0,R=d(c);!(L=R()).done;){var I=L.value;I.el?this.inTransition.has(I.index)&&O.slides.indexOf(I)<0&&(I.el.style[e]=v(z+(O.pos-A.pos),1e3)+"px"):z+=I.dim+I.gap}},i.createSlideEl=function(e){var t=this.track,i=this.slides;if(t&&e&&(!e.el||!e.el.parentNode)){var n=e.el||document.createElement("div");B(n,this.cn(ce)),B(n,e.class),B(n,e.customClass);var o=e.html;o&&(o instanceof HTMLElement?n.appendChild(o):n.innerHTML=e.html+"");var a=[];i.forEach((function(e,t){e.el&&a.push(t)}));var r=e.index,s=null;a.length&&(s=i[a.reduce((function(e,t){return Math.abs(t-r)1)return!1;var u=e>r?1:-1;this.isInfinite&&(0===r&&e===s.length-1&&(u=-1),r===s.length-1&&0===e&&(u=1));var h=s[c].pos*(this.isRTL?1:-1);if(r===c&&Math.abs(h-l.target[this.axis])<1)return!1;this.clearTransitions();var d=l.isResting;B(this.container,this.cn("inTransition"));var f=(null===(o=s[r])||void 0===o?void 0:o.slides[0])||null,v=(null===(a=s[c])||void 0===a?void 0:a.slides[0])||null;this.inTransition.add(v.index),this.createSlideEl(v);var p=f.el,g=v.el;d||t===ce||(t="fadeFast",p=null);var m=this.isRTL?"next":"prev",b=this.isRTL?"prev":"next";return p&&(this.inTransition.add(f.index),f.transition=t,p.addEventListener(se,this.onAnimationEnd),p.classList.add("f-"+t+"Out","to-"+(u>0?b:m))),g&&(v.transition=t,g.addEventListener(se,this.onAnimationEnd),g.classList.add("f-"+t+"In","from-"+(u>0?m:b))),l.current[this.axis]=h,l.target[this.axis]=h,l.requestTick(),this.onChange(c),!0},i.manageSlideVisiblity=function(){for(var e,t=new Set,i=new Set,n=this.getVisibleSlides(parseFloat(this.option("preload",0)+"")||0),o=d(this.slides);!(e=o()).done;){var a=e.value;n.has(a)?t.add(a):i.add(a)}for(var r,s=d(this.inTransition);!(r=s()).done;){var l=r.value;t.add(this.slides[l])}for(var c,u=d(t);!(c=u()).done;){var h=c.value;this.createSlideEl(h),this.lazyLoadSlide(h)}for(var f,v=d(i);!(f=v()).done;){var p=f.value;t.has(p)||this.removeSlideEl(p)}this.markSelectedSlides(),this.repositionSlides()},i.markSelectedSlides=function(){if(this.pages[this.page]&&this.pages[this.page].slides){var e="aria-hidden",t=this.cn(le);if(t)for(var i,n=d(this.slides);!(i=n()).done;){var o=i.value,a=o.el;a&&(a.dataset.index=""+o.index,a.classList.contains("f-thumbs__slide")?this.getVisibleSlides(0).has(o)?a.removeAttribute(e):a.setAttribute(e,"true"):this.pages[this.page].slides.includes(o)?(a.classList.contains(t)||(B(a,t),this.emit("selectSlide",o)),a.removeAttribute(e)):(a.classList.contains(t)&&(j(a,t),this.emit("unselectSlide",o)),a.setAttribute(e,"true")))}}},i.flipInfiniteTrack=function(){var e=this.axis,t=this.isHorizontal,i=this.isInfinite,n=this.isRTL,o=this.viewportDim,a=this.contentDim,r=this.panzoom;if(r&&i){var s=r.current[e],l=r.target[e]-s,c=0,u=.5*o;n&&t?(s<-u&&(c=-1,s+=a),s>a-u&&(c=1,s-=a)):(s>u&&(c=1,s-=a),s<-a+u&&(c=-1,s+=a)),c&&(r.current[e]=s,r.target[e]=s+l)}},i.lazyLoadImg=function(e,t){var i=this,n=this,o="f-fadeIn",a="is-preloading",r=!1,s=null,l=function(){r||(r=!0,s&&(s.remove(),s=null),j(t,a),t.complete&&(B(t,o),setTimeout((function(){j(t,o)}),350)),i.option("adaptiveHeight")&&e.el&&i.pages[i.page].slides.indexOf(e)>-1&&(n.updateMetrics(),n.setViewportHeight()),i.emit("load",e))};B(t,a),t.src=t.dataset.lazySrcset||t.dataset.lazySrc||"",delete t.dataset.lazySrc,delete t.dataset.lazySrcset,t.addEventListener("error",(function(){l()})),t.addEventListener("load",(function(){l()})),setTimeout((function(){var i=t.parentNode;i&&e.el&&(t.complete?l():r||(s=m(D),i.insertBefore(s,t)))}),300)},i.lazyLoadSlide=function(e){var t=e&&e.el;if(t){var i=new Set,n=Array.from(t.querySelectorAll("[data-lazy-src],[data-lazy-srcset]"));t.dataset.lazySrc&&n.push(t),n.map((function(e){e instanceof HTMLImageElement?i.add(e):e instanceof HTMLElement&&e.dataset.lazySrc&&(e.style.backgroundImage="url('"+e.dataset.lazySrc+"')",delete e.dataset.lazySrc)}));for(var o,a=d(i);!(o=a()).done;){var r=o.value;this.lazyLoadImg(e,r)}}},i.onAnimationEnd=function(e){var t,i=e.target,n=i?parseInt(i.dataset.index||"",10)||0:-1,o=this.slides[n],a=e.animationName;if(i&&o&&a){var r=!!this.inTransition.has(n)&&o.transition;r&&a.substring(0,r.length+2)==="f-"+r&&this.inTransition.delete(n),this.inTransition.size||this.clearTransitions(),n===this.page&&(null===(t=this.panzoom)||void 0===t?void 0:t.isResting)&&this.emit("settle")}},i.onDecel=function(e,t,i,n,o){if(void 0===t&&(t=0),void 0===i&&(i=0),void 0===n&&(n=0),void 0===o&&(o=0),this.option("dragFree"))this.setPageFromPosition();else{var a,r=this.isRTL,s=this.isHorizontal,l=this.axis,c=this.pages,u=c.length,h=Math.abs(Math.atan2(i,t)/(Math.PI/180));if(a=h>45&&h<135?s?0:i:s?t:0,u){var d=this.page,f=r&&s?1:-1,v=e.current[l]*f,p=this.getPageFromPosition(v).pageIndex;Math.abs(a)>5?(c[d].dim=e&&(this.page+=f.length),this.updateMetrics(),l){var w,x=(null===(a=this.pages[this.page])||void 0===a?void 0:a.pos)||0,E=(null===(r=this.pages[this.page])||void 0===r?void 0:r.dim)||0,S=this.pages.length||1,P=this.isRTL?u-E:E-u,C=this.isRTL?c-x:x-c;h&&1===S?(e<=this.page&&(l.current[this.axis]-=P,l.target[this.axis]-=P),l.panTo(((w={})[this.isHorizontal?"x":"y"]=-1*x,w))):C&&e<=this.page&&(l.target[this.axis]-=C,l.current[this.axis]-=C,l.requestTick())}for(var T=0,M=f;Tthis.page?-1:1;var s=-1*o.current.e,l=v((s-r.pos)/(1*r.dim),1e3),c=l,u=l;this.isInfinite&&!0!==i&&(c=v((s-r.pos+a)/(1*r.dim),1e3),u=v((s-r.pos-a)/(1*r.dim),1e3));var h=[l,c,u].reduce((function(e,t){return Math.abs(t)1?1:h<-1?-1:h},i.setViewportHeight=function(){var e=this.page,t=this.pages,i=this.viewport,n=this.isHorizontal;if(i&&t[e]){var o=0;n&&this.track&&(this.track.style.height="auto",t[e].slides.forEach((function(e){e.el&&(o=Math.max(o,e.el.offsetHeight))}))),i.style.height=o?o+"px":""}},i.getPageForSlide=function(e){for(var t,i=d(this.pages);!(t=i()).done;)for(var n,o=t.value,a=d(o.slides);!(n=a()).done;)if(n.value.index===e)return o.index;return-1},i.getVisibleSlides=function(e){var t;void 0===e&&(e=0);var i=new Set,n=this.panzoom,o=this.contentDim,a=this.viewportDim,r=this.pages,s=this.page;if(a){o=o+(null===(t=this.slides[this.slides.length-1])||void 0===t?void 0:t.gap)||0;var l=0;l=n&&n.state!==A.Init&&n.state!==A.Destroy?-1*n.current[this.axis]:r[s]&&r[s].pos||0,this.isInfinite&&(l-=Math.floor(l/o)*o),this.isRTL&&this.isHorizontal&&(l*=-1);for(var c,u=l-a*e,h=l+a*(e+1),f=this.isInfinite?[-1,0,1]:[0],v=d(this.slides);!(c=v()).done;)for(var p,g=c.value,m=d(f);!(p=m()).done;){var b=p.value,y=g.pos+b*o,w=y+g.dim+g.gap;yu&&i.add(g)}}return i},i.getPageFromPosition=function(e){var t,i=this.viewportDim,n=this.contentDim,o=this.slides,a=this.pages,r=this.panzoom,s=a.length,l=o.length,c=o[0],u=o[l-1],h=this.option("center"),d=0,f=void 0===e?-1*((null==r?void 0:r.target[this.axis])||0):e;h&&(f+=.5*i),this.isInfinite?(fu.pos+u.dim+.5*u.gap&&(f-=n,d=1)):f=Math.max(c.pos||0,Math.min(f,u.pos));var v=u,p=o.find((function(e){var t=e.pos-.5*v.gap,i=e.pos+e.dim+.5*e.gap;return v=e,f>=t&&f=2&&o&&t+o.dim>=i&&(e=this.option("infinite")),e}},{key:"isRTL",get:function(){return"rtl"===this.option("direction")}},{key:"isHorizontal",get:function(){return"x"===this.option("axis")}}]),t}(k);Object.defineProperty(ue,"Panzoom",{enumerable:!0,configurable:!0,writable:!0,value:Z}),Object.defineProperty(ue,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{viewport:null,track:null,enabled:!0,slides:[],axis:"x",transition:"fade",preload:1,slidesPerPage:"auto",initialPage:0,friction:.12,Panzoom:{decelFriction:.12},center:!0,infinite:!0,fill:!0,dragFree:!1,adaptiveHeight:!1,direction:"ltr",classes:{container:"f-carousel",viewport:"f-carousel__viewport",track:"f-carousel__track",slide:"f-carousel__slide",isLTR:"is-ltr",isRTL:"is-rtl",isHorizontal:"is-horizontal",isVertical:"is-vertical",inTransition:"in-transition",isSelected:"is-selected"},l10n:{NEXT:"Next slide",PREV:"Previous slide",GOTO:"Go to slide #%d"}}}),Object.defineProperty(ue,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:re});var he,de,fe,ve=function(e){if(!F(e))return 0;var t=window.scrollY,i=window.innerHeight,n=t+i,o=e.getBoundingClientRect(),a=o.y+t,r=o.height,s=a+r;if(t>s||ns)return 100;if(an)return 100;var l=r;an&&(l-=s-n);var c=l/i*100;return Math.round(c)},pe=!("undefined"==typeof window||!window.document||!window.document.createElement),ge=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden]):not(.fancybox-focus-guard)","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not([tabindex^="-"]):not([disabled]):not([aria-hidden])'].join(","),me=function(e){if(e&&pe){void 0===he&&document.createElement("div").focus({get preventScroll(){return he=!0,!1}});try{if(he)e.focus({preventScroll:!0});else{var t=window.scrollY||document.body.scrollTop,i=window.scrollX||document.body.scrollLeft;e.focus(),document.body.scrollTo({top:t,left:i,behavior:"auto"})}}catch(e){}}},be=function(){var e,t=document,i="",n="",o="";return t.fullscreenEnabled?(i="requestFullscreen",n="exitFullscreen",o="fullscreenElement"):t.webkitFullscreenEnabled&&(i="webkitRequestFullscreen",n="webkitExitFullscreen",o="webkitFullscreenElement"),i&&(e={request:function(e){return void 0===e&&(e=t.documentElement),"webkitRequestFullscreen"===i?e[i](Element.ALLOW_KEYBOARD_INPUT):e[i]()},exit:function(){return t[o]&&t[n]()},isFullscreen:function(){return t[o]}}),e},ye={animated:!0,autoFocus:!0,backdropClick:"close",Carousel:{classes:{container:"fancybox__carousel",viewport:"fancybox__viewport",track:"fancybox__track",slide:"fancybox__slide"}},closeButton:"auto",closeExisting:!1,commonCaption:!1,compact:function(){return window.matchMedia("(max-width: 578px), (max-height: 578px)").matches},contentClick:"toggleZoom",contentDblClick:!1,defaultType:"image",defaultDisplay:"flex",dragToClose:!0,Fullscreen:{autoStart:!1},groupAll:!1,groupAttr:"data-fancybox",hideClass:"f-fadeOut",hideScrollbar:!0,idle:3500,keyboard:{Escape:"close",Delete:"close",Backspace:"close",PageUp:"next",PageDown:"prev",ArrowUp:"prev",ArrowDown:"next",ArrowRight:"next",ArrowLeft:"prev"},l10n:Object.assign(Object.assign({},z),{CLOSE:"Close",NEXT:"Next",PREV:"Previous",MODAL:"You can close this modal content with the ESC key",ERROR:"Something Went Wrong, Please Try Again Later",IMAGE_ERROR:"Image Not Found",ELEMENT_NOT_FOUND:"HTML Element Not Found",AJAX_NOT_FOUND:"Error Loading AJAX : Not Found",AJAX_FORBIDDEN:"Error Loading AJAX : Forbidden",IFRAME_ERROR:"Error Loading Page",TOGGLE_ZOOM:"Toggle zoom level",TOGGLE_THUMBS:"Toggle thumbnails",TOGGLE_SLIDESHOW:"Toggle slideshow",TOGGLE_FULLSCREEN:"Toggle full-screen mode",DOWNLOAD:"Download"}),parentEl:null,placeFocusBack:!0,showClass:"f-zoomInUp",startIndex:0,tpl:{closeButton:'',main:''},trapFocus:!0,wheel:"zoom"};!function(e){e[e.Init=0]="Init",e[e.Ready=1]="Ready",e[e.Closing=2]="Closing",e[e.CustomClosing=3]="CustomClosing",e[e.Destroy=4]="Destroy"}(de||(de={})),function(e){e[e.Loading=0]="Loading",e[e.Opening=1]="Opening",e[e.Ready=2]="Ready",e[e.Closing=3]="Closing"}(fe||(fe={}));var we="",xe=!1,Ee=!1,Se=null,Pe=function(){var e="",t="",i=Ft.getInstance();if(i){var n=i.carousel,o=i.getSlide();if(n&&o){var a=o.slug||void 0,r=o.triggerEl||void 0;!(t=a||i.option("slug")||"")&&r&&r.dataset&&(t=r.dataset.fancybox||""),t&&"true"!==t&&(e="#"+t+(!a&&n.slides.length>1?"-"+(o.index+1):""))}}return{hash:e,slug:t,index:1}},Ce=function(){var e=new URL(document.URL).hash,t=e.slice(1).split("-"),i=t[t.length-1],n=i&&/^\+?\d+$/.test(i)&&parseInt(t.pop()||"1",10)||1;return{hash:e,slug:t.join("-"),index:n}},Te=function(){var e=Ce(),t=e.slug,i=e.index;if(t){var n=document.querySelector('[data-slug="'+t+'"]');if(n&&n.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})),!Ft.getInstance()){var o=document.querySelectorAll('[data-fancybox="'+t+'"]');o.length&&(n=o[i-1])&&n.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0}))}}},Me=function(){if(!1!==Ft.defaults.Hash){var e=Ft.getInstance();if(!1!==(null==e?void 0:e.options.Hash)){var t=Ce(),i=t.slug,n=t.index,o=Pe().slug;e&&(i===o?e.jumpTo(n-1):(xe=!0,e.close())),Te()}}},Oe=function(){Se&&clearTimeout(Se),queueMicrotask((function(){Me()}))},Ae=function(){window.addEventListener("hashchange",Oe,!1),setTimeout((function(){Me()}),500)};pe&&(/complete|interactive|loaded/.test(document.readyState)?Ae():document.addEventListener("DOMContentLoaded",Ae));var ke="is-zooming-in",Le=function(e){function t(){return e.apply(this,arguments)||this}h(t,e);var i=t.prototype;return i.onCreateSlide=function(e,t,i){var n=this.instance.optionFor(i,"src")||"";i.el&&"image"===i.type&&"string"==typeof n&&this.setImage(i,n)},i.onRemoveSlide=function(e,t,i){i.panzoom&&i.panzoom.destroy(),i.panzoom=void 0,i.imageEl=void 0},i.onChange=function(e,t,i,n){j(this.instance.container,ke);for(var o,a=d(t.slides);!(o=a()).done;){var r=o.value,s=r.panzoom;s&&r.index!==i&&s.reset(.35)}},i.onClose=function(){var e,t=this.instance,i=t.container,n=t.getSlide();if(i&&i.parentElement&&n){var o=n.el,a=n.contentEl,r=n.panzoom,s=n.thumbElSrc;if(o&&s&&a&&r&&!r.isContentLoading&&r.state!==A.Init&&r.state!==A.Destroy){r.updateMetrics();var l=this.getZoomInfo(n);if(l){this.instance.state=de.CustomClosing,i.classList.remove(ke),i.classList.add("is-zooming-out"),a.style.backgroundImage="url('"+s+"')";var c=i.getBoundingClientRect();1===((null===(e=window.visualViewport)||void 0===e?void 0:e.scale)||1)&&Object.assign(i.style,{position:"absolute",top:i.offsetTop+window.scrollY+"px",left:i.offsetLeft+window.scrollX+"px",bottom:"auto",right:"auto",width:c.width+"px",height:c.height+"px",overflow:"hidden"});var u=l.x,h=l.y,d=l.scale,f=l.opacity;if(f){var v=function(e,t,i,n){var o=t-e;return function(t){return 1+((t-e)/o*-1||0)}}(r.scale,d);r.on("afterTransform",(function(){a.style.opacity=v(r.scale)+""}))}r.on("endAnimation",(function(){t.destroy()})),r.target.a=d,r.target.b=0,r.target.c=0,r.target.d=d,r.panTo({x:u,y:h,scale:d,friction:f?.2:.33,ignoreBounds:!0}),r.isResting&&t.destroy()}}}},i.setImage=function(e,t){var i=this,n=this.instance;e.src=t,this.process(e,t).then((function(t){var o=e.contentEl,a=e.imageEl,r=e.thumbElSrc,s=e.el;if(!n.isClosing()&&o&&a){o.offsetHeight;var l,c=!!n.isOpeningSlide(e)&&i.getZoomInfo(e);if(i.option("protected")&&s){s.addEventListener("contextmenu",(function(e){e.preventDefault()}));var u=document.createElement("div");B(u,"fancybox-protected"),o.appendChild(u)}if(r&&c){var h=t.contentRect,d=Math.max(h.fullWidth,h.fullHeight),f=null;!c.opacity&&d>1200&&(f=document.createElement("img"),B(f,"fancybox-ghost"),f.src=r,o.appendChild(f));var v=function(){f&&(B(f,"f-fadeFastOut"),setTimeout((function(){f&&(f.remove(),f=null)}),200))};(l=r,new Promise((function(e,t){var i=new Image;i.onload=e,i.onerror=t,i.src=l}))).then((function(){n.hideLoading(e),e.state=fe.Opening,i.instance.emit("reveal",e),i.zoomIn(e).then((function(){v(),i.instance.done(e)}),(function(){})),f&&setTimeout((function(){v()}),d>2500?800:200)}),(function(){n.hideLoading(e),n.revealContent(e)}))}else{var p=i.optionFor(e,"initialSize"),g=i.optionFor(e,"zoom"),m={event:n.prevMouseMoveEvent||n.options.event,friction:g?.12:0},b=n.optionFor(e,"showClass")||void 0,y=!0;n.isOpeningSlide(e)&&("full"===p?t.zoomToFull(m):"cover"===p?t.zoomToCover(m):"max"===p?t.zoomToMax(m):y=!1,t.stop("current")),y&&b&&(b=t.isDragging?"f-fadeIn":""),n.hideLoading(e),n.revealContent(e,b)}}}),(function(){n.setError(e,"{{IMAGE_ERROR}}")}))},i.process=function(e,t){var i=this;return new Promise((function(n,o){var a,r=i.instance,s=e.el;r.clearContent(e),r.showLoading(e);var l=i.optionFor(e,"content");if("string"==typeof l&&(l=m(l)),!l||!F(l)){if((l=document.createElement("img"))instanceof HTMLImageElement){var c,u=e.caption;c="string"==typeof u&&u?u.replace(/<[^>]+>/gi,"").substring(0,1e3):"Image "+(e.index+1)+" of "+((null===(a=r.carousel)||void 0===a?void 0:a.pages.length)||1),l.src=t||"",l.alt=c,l.draggable=!1,e.srcset&&l.setAttribute("srcset",e.srcset),i.instance.isOpeningSlide(e)&&(l.fetchPriority="high")}e.sizes&&l.setAttribute("sizes",e.sizes)}B(l,"fancybox-image"),e.imageEl=l,r.setContent(e,l,!1),e.panzoom=new Z(s,T({transformParent:!0},i.option("Panzoom")||{},{content:l,width:function(t,i){return r.optionFor(e,"width","auto",i)||"auto"},height:function(t,i){return r.optionFor(e,"height","auto",i)||"auto"},wheel:function(){var e=r.option("wheel");return("zoom"===e||"pan"==e)&&e},click:function(t,i){var n,o;if(r.isCompact||r.isClosing())return!1;if(e.index!==(null===(n=r.getSlide())||void 0===n?void 0:n.index))return!1;if(i){var a=i.composedPath()[0];if(["A","BUTTON","TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].includes(a.nodeName))return!1}var s=!i||i.target&&(null===(o=e.contentEl)||void 0===o?void 0:o.contains(i.target));return r.option(s?"contentClick":"backdropClick")||!1},dblClick:function(){return r.isCompact?"toggleZoom":r.option("contentDblClick")||!1},spinner:!1,panOnlyZoomed:!0,wheelLimit:1/0,on:{ready:function(e){n(e)},error:function(){o()},destroy:function(){o()}}}))}))},i.zoomIn=function(e){var t=this;return new Promise((function(i,n){var o=t.instance,a=o.container,r=e.panzoom,s=e.contentEl,l=e.el;r&&r.updateMetrics();var c=t.getZoomInfo(e);if(c&&l&&s&&r&&a){var u=c.x,h=c.y,d=c.scale,f=c.opacity,v=function(){e.state!==fe.Closing&&(f&&(s.style.opacity=Math.max(Math.min(1,1-(1-r.scale)/(1-d)),0)+""),r.scale>=1&&r.scale>r.targetScale-.1&&i(r))},p=function e(t){(t.scale<.99||t.scale>1.01)&&!t.isDragging||(j(a,ke),s.style.opacity="",t.off("endAnimation",e),t.off("touchStart",e),t.off("afterTransform",v),i(t))};r.on("endAnimation",p),r.on("touchStart",p),r.on("afterTransform",v),r.on(["error","destroy"],(function(){n()})),r.panTo({x:u,y:h,scale:d,friction:0,ignoreBounds:!0}),r.stop("current");var g={event:"mousemove"===r.panMode?o.prevMouseMoveEvent||o.options.event:void 0},m=t.optionFor(e,"initialSize");B(a,ke),o.hideLoading(e),"full"===m?r.zoomToFull(g):"cover"===m?r.zoomToCover(g):"max"===m?r.zoomToMax(g):r.reset(.172)}else n()}))},i.getZoomInfo=function(e){var t=e.el,i=e.imageEl,n=e.thumbEl,o=e.panzoom,a=this.instance,r=a.container;if(!t||!i||!n||!o||ve(n)<3||!this.optionFor(e,"zoom")||!r||a.state===de.Destroy)return!1;if("0"===getComputedStyle(r).getPropertyValue("--f-images-zoom"))return!1;var s=window.visualViewport||null;if(1!==(s?s.scale:1))return!1;var l=n.getBoundingClientRect(),c=l.top,u=l.left,h=l.width,d=l.height,f=o.contentRect,v=f.top,p=f.left,g=f.fitWidth,m=f.fitHeight;if(!(h&&d&&g&&m))return!1;var b=o.container.getBoundingClientRect(),y=-1*((p+=b.left)+.5*g-(u+.5*h)),w=-1*((v+=b.top)+.5*m-(c+.5*d)),x=h/g,E=this.option("zoomOpacity")||!1;return"auto"===E&&(E=Math.abs(h/d-g/m)>.1),{x:y,y:w,scale:x,opacity:E}},i.attach=function(){var e=this,t=e.instance;t.on("Carousel.change",e.onChange),t.on("Carousel.createSlide",e.onCreateSlide),t.on("Carousel.removeSlide",e.onRemoveSlide),t.on("close",e.onClose)},i.detach=function(){var e=this,t=e.instance;t.off("Carousel.change",e.onChange),t.off("Carousel.createSlide",e.onCreateSlide),t.off("Carousel.removeSlide",e.onRemoveSlide),t.off("close",e.onClose)},t}(Q);Object.defineProperty(Le,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{initialSize:"fit",Panzoom:{maxScale:1},protected:!1,zoom:!0,zoomOpacity:"auto"}}),"function"==typeof SuppressedError&&SuppressedError;var ze="html",Re="image",Ie="map",De="youtube",Fe="vimeo",je="html5video",Be=function(e,t){void 0===t&&(t={});for(var i=new URL(e),n=new URLSearchParams(i.search),o=new URLSearchParams,a=0,r=[].concat(n,Object.entries(t));a0?"svembed":"embed"),i=Ie):(n=t.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:maps\/search\/)(.*)/i))&&(e.src="https://maps.google."+n[1]+"/maps?q="+n[2].replace("query=","q=").replace("api=1","")+"&output=embed",i=Ie),i=i||this.instance.option("defaultType"),e.type=i,i===Re&&(e.thumbSrc=e.thumbSrc||e.src)}},i.setContent=function(e){var t=this.instance.optionFor(e,"src")||"";if(e&&e.type&&t){switch(e.type){case ze:this.instance.setContent(e,t);break;case je:var i=this.option("videoTpl");i&&this.instance.setContent(e,i.replace(/\{\{src\}\}/gi,t+"").replace(/\{\{format\}\}/gi,this.optionFor(e,"videoFormat")||"").replace(/\{\{poster\}\}/gi,e.poster||e.thumbSrc||""));break;case"inline":case"clone":this.setInlineContent(e);break;case"ajax":this.loadAjaxContent(e);break;case"pdf":case Ie:case De:case Fe:e.preload=!1;case"iframe":this.setIframeContent(e)}this.setAspectRatio(e)}},i.setAspectRatio=function(e){var t=e.contentEl;if(e.el&&t&&e.type&&[De,Fe,je].includes(e.type)){var i,n=e.width||"auto",o=e.height||"auto";if("auto"===n||"auto"===o){var a=((i=this.optionFor(e,"videoRatio"))+"").match(/(\d+)\s*\/\s?(\d+)/);i=a&&a.length>2?parseFloat(a[1])/parseFloat(a[2]):parseFloat(i+"")}else n&&o&&(i=n/o);if(i){t.style.aspectRatio="",t.style.width="",t.style.height="",t.offsetHeight;var r=t.getBoundingClientRect(),s=r.width||1,l=r.height||1;t.style.aspectRatio=i+"",i\n Sorry, your browser doesn\'t support embedded videos.',videoFormat:"",vimeo:{byline:1,color:"00adef",controls:1,dnt:1,muted:0},youtube:{controls:1,enablejsapi:1,nocookie:1,rel:0,fs:1}}});var _e="play",We="pause",Xe="ready",qe=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(c(t),"state",{enumerable:!0,configurable:!0,writable:!0,value:Xe}),Object.defineProperty(c(t),"inHover",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(c(t),"timer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(t),"progressBar",{enumerable:!0,configurable:!0,writable:!0,value:null}),t}h(t,e);var i=t.prototype;return i.onReady=function(e){this.option("autoStart")&&(e.isInfinite||e.page',type:"modern"};!function(e){e[e.Init=0]="Init",e[e.Ready=1]="Ready",e[e.Hidden=2]="Hidden"}(Ve||(Ve={}));var Ue="isResting",Ge="thumbWidth",Ke="thumbHeight",Je="thumbClipWidth",$e=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(c(t),"type",{enumerable:!0,configurable:!0,writable:!0,value:"modern"}),Object.defineProperty(c(t),"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(t),"track",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(t),"carousel",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(t),"thumbWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(c(t),"thumbClipWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(c(t),"thumbHeight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(c(t),"thumbGap",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(c(t),"thumbExtraGap",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(c(t),"state",{enumerable:!0,configurable:!0,writable:!0,value:Ve.Init}),t}h(t,e);var i=t.prototype;return i.onInitSlide=function(e,t){var i=t.el?t.el.dataset:void 0;i&&(t.thumbSrc=i.thumbSrc||t.thumbSrc||"",t[Je]=parseFloat(i[Je]||"")||t[Je]||0,t[Ke]=parseFloat(i.thumbHeight||"")||t[Ke]||0),this.addSlide(t)},i.onInitSlides=function(){this.build()},i.onChange=function(){var e;if(this.isModern){var t=this.container,i=this.instance,n=i.panzoom,o=this.carousel,a=o?o.panzoom:null,r=i.page;if(n&&o&&a){if(n.isDragging){j(t,this.cn(Ue));var s=(null===(e=o.pages[r])||void 0===e?void 0:e.pos)||0;s+=i.getProgress(r)*(this[Je]+this.thumbGap);var l=a.getBounds();-1*s>l.x.min&&-1*s-1)){var l=this[Je],c=e.clientX,u=e.clientY,h=a(c-l,u),d=h[0],f=h[1],v=a(c+l,u),p=v[0],g=v[1];f&&g?(s=Math.abs(c-f.getBoundingClientRect().right)-1&&i[s]&&t.slideTo(s)}},i.getShift=function(e){var t,i=this,n=i.instance,o=i.carousel;if(!n||!o)return 0;var a=i[Ge],r=i[Je],s=i.thumbGap,l=i.thumbExtraGap;if(!(null===(t=o.slides[e])||void 0===t?void 0:t.el))return 0;var c=.5*(a-r),u=n.pages.length-1,h=n.getProgress(0),d=n.getProgress(u),f=n.getProgress(e,!1,!0),v=0,p=c+l+s,g=h<0&&h>-1,m=d>0&&d<1;return 0===e?(v=p*Math.abs(h),m&&1===h&&(v-=p*Math.abs(d))):e===u?(v=p*Math.abs(d)*-1,g&&-1===d&&(v+=p*Math.abs(h))):g||m?(v=-1*p,v+=p*Math.abs(h),v+=p*(1-Math.abs(d))):v=p*f,v},i.setProps=function(e){var t,i=this;if(i.isModern){var n=i.instance,o=i.carousel;if(n&&o){var a=null===(t=o.slides[e])||void 0===t?void 0:t.el;if(a&&a.childNodes.length){var r=v(1-Math.abs(n.getProgress(e))),s=v(i.getShift(e));a.style.setProperty("--progress",r?r+"":""),a.style.setProperty("--shift",s+"")}}}},i.shiftModern=function(){var e=this;if(e.isModern){var t=e.instance,i=e.track,n=t.panzoom,o=e.carousel;if(t&&i&&n&&o&&n.state!==A.Init&&n.state!==A.Destroy){for(var a,r=d(t.slides);!(a=r()).done;){var s=a.value;e.setProps(s.index)}var l=(e[Je]+e.thumbGap)*(o.slides.length||0);i.style.setProperty("--width",l+"")}}},i.cleanup=function(){var e=this;e.carousel&&e.carousel.destroy(),e.carousel=null,e.container&&e.container.remove(),e.container=null,e.track&&e.track.remove(),e.track=null,e.state=Ve.Init,j(e.instance.container,e.cn("hasThumbs"))},i.attach=function(){var e=this,t=e.instance;t.on("initSlide",e.onInitSlide),t.state===U.Init?t.on("initSlides",e.onInitSlides):e.onInitSlides(),t.on(["change","Panzoom.afterTransform"],e.onChange),t.on("Panzoom.refresh",e.onRefresh)},i.detach=function(){var e=this,t=e.instance;t.off("initSlide",e.onInitSlide),t.off("initSlides",e.onInitSlides),t.off(["change","Panzoom.afterTransform"],e.onChange),t.off("Panzoom.refresh",e.onRefresh),e.cleanup()},l(t,[{key:"isModern",get:function(){return"modern"===this.type}}]),t}(Q);Object.defineProperty($e,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Ze});var Qe=Object.assign(Object.assign({},Ze),{key:"t",showOnStart:!0,parentEl:null}),et="is-masked",tt="aria-hidden",it=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(c(t),"ref",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(t),"hidden",{enumerable:!0,configurable:!0,writable:!0,value:!1}),t}h(t,e);var i=t.prototype;return i.onClick=function(e,t){t.stopPropagation()},i.onCreateSlide=function(e,t){var i,n,o,a=(null===(o=null===(n=null===(i=this.instance)||void 0===i?void 0:i.carousel)||void 0===n?void 0:n.slides[t.index])||void 0===o?void 0:o.type)||"",r=t.el;if(r&&a){var s="for-"+a;["video","youtube","vimeo","html5video"].includes(a)&&(s+=" for-video"),B(r,s)}},i.onInit=function(){var e,t=this,i=this,n=i.instance,o=n.carousel;if(!i.ref&&o){var a=i.option("parentEl")||n.footer||n.container;if(a){var r=T({},i.options,{parentEl:a,classes:{container:"f-thumbs fancybox__thumbs"},Carousel:{Sync:{friction:n.option("Carousel.friction")||0}},on:{ready:function(e){var n=e.container;n&&t.hidden&&(i.refresh(),n.style.transition="none",i.hide(),n.offsetHeight,queueMicrotask((function(){n.style.transition="",i.show()})))}}});r.Carousel=r.Carousel||{},r.Carousel.on=T((null===(e=i.options.Carousel)||void 0===e?void 0:e.on)||{},{click:this.onClick,createSlide:this.onCreateSlide}),o.options.Thumbs=r,o.attachPlugins({Thumbs:$e}),i.ref=o.plugins.Thumbs,i.option("showOnStart")||(i.ref.state=Ve.Hidden,i.hidden=!0)}}},i.onResize=function(){var e,t=null===(e=this.ref)||void 0===e?void 0:e.container;t&&(t.style.maxHeight="")},i.onKeydown=function(e,t){var i=this.option("key");i&&i===t&&this.toggle()},i.toggle=function(){var e=this.ref;if(e&&!e.isDisabled())return e.state===Ve.Hidden?(e.state=Ve.Init,void e.build()):void(this.hidden?this.show():this.hide())},i.show=function(){var e=this.ref;if(e&&!e.isDisabled()){var t=e.container;t&&(this.refresh(),t.offsetHeight,t.removeAttribute(tt),t.classList.remove(et),this.hidden=!1)}},i.hide=function(){var e=this.ref,t=e&&e.container;t&&(this.refresh(),t.offsetHeight,t.classList.add(et),t.setAttribute(tt,"true")),this.hidden=!0},i.refresh=function(){var e=this.ref;if(e&&e.state){var t=e.container,i=(null==t?void 0:t.firstChild)||null;t&&i&&i.childNodes.length&&(t.style.maxHeight=i.getBoundingClientRect().height+"px")}},i.attach=function(){var e=this,t=e.instance;t.state===de.Init?t.on("Carousel.init",e.onInit):e.onInit(),t.on("resize",e.onResize),t.on("keydown",e.onKeydown)},i.detach=function(){var e,t=this,i=t.instance;i.off("Carousel.init",t.onInit),i.off("resize",t.onResize),i.off("keydown",t.onKeydown),null===(e=i.carousel)||void 0===e||e.detachPlugins(["Thumbs"]),t.ref=null},l(t,[{key:"isEnabled",get:function(){var e=this.ref;return e&&!e.isDisabled()}},{key:"isHidden",get:function(){return this.hidden}}]),t}(Q);Object.defineProperty(it,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Qe});var nt,ot={panLeft:{icon:'',change:{panX:-100}},panRight:{icon:'',change:{panX:100}},panUp:{icon:'',change:{panY:-100}},panDown:{icon:'',change:{panY:100}},zoomIn:{icon:'',action:"zoomIn"},zoomOut:{icon:'',action:"zoomOut"},toggle1to1:{icon:'',action:"toggleZoom"},toggleZoom:{icon:'',action:"toggleZoom"},iterateZoom:{icon:'',action:"iterateZoom"},rotateCCW:{icon:'',action:"rotateCCW"},rotateCW:{icon:'',action:"rotateCW"},flipX:{icon:'',action:"flipX"},flipY:{icon:'',action:"flipY"},fitX:{icon:'',action:"fitX"},fitY:{icon:'',action:"fitY"},reset:{icon:'',action:"reset"},toggleFS:{icon:'',action:"toggleFS"}};!function(e){e[e.Init=0]="Init",e[e.Ready=1]="Ready",e[e.Disabled=2]="Disabled"}(nt||(nt={}));var at={tabindex:"-1",width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},rt="has-toolbar",st="fancybox__toolbar",lt=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(c(t),"state",{enumerable:!0,configurable:!0,writable:!0,value:nt.Init}),Object.defineProperty(c(t),"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),t}h(t,e);var i=t.prototype;return i.onReady=function(e){var t;if(e.carousel){var i=this.option("display"),n=this.option("absolute"),o=this.option("enabled");if("auto"===o){var a=this.instance.carousel,r=0;if(a)for(var s,l=d(a.slides);!(s=l()).done;){var c=s.value;(c.panzoom||"image"===c.type)&&r++}r||(o=!1)}o||(i=void 0);var u=0,h={left:[],middle:[],right:[]};if(i)for(var f=0,v=["left","middle","right"];f/'},download:{tpl:''},prev:{tpl:''},next:{tpl:''},slideshow:{tpl:''},fullscreen:{tpl:''},thumbs:{tpl:''},close:{tpl:''}},parentEl:null}});var ct,ut={Hash:function(e){function t(){return e.apply(this,arguments)||this}h(t,e);var i=t.prototype;return i.onReady=function(){xe=!1},i.onChange=function(e){Se&&clearTimeout(Se);var t=Pe().hash,i=Ce().hash,n=e.isOpeningSlide(e.getSlide());n&&(we=i===t?"":i),t&&t!==i&&(Se=setTimeout((function(){try{if(e.state===de.Ready){var i="replaceState";n&&!Ee&&(i="pushState",Ee=!0),window.history[i]({},document.title,window.location.pathname+window.location.search+t)}}catch(e){}}),300))},i.onClose=function(e){if(Se&&clearTimeout(Se),!xe&&Ee)return Ee=!1,xe=!1,void window.history.back();if(!xe)try{window.history.replaceState({},document.title,window.location.pathname+window.location.search+(we||""))}catch(e){}},i.attach=function(){var e=this.instance;e.on("ready",this.onReady),e.on(["Carousel.ready","Carousel.change"],this.onChange),e.on("close",this.onClose)},i.detach=function(){var e=this.instance;e.off("ready",this.onReady),e.off(["Carousel.ready","Carousel.change"],this.onChange),e.off("close",this.onClose)},t.parseURL=function(){return Ce()},t.startFromUrl=function(){Te()},t.destroy=function(){window.removeEventListener("hashchange",Oe,!1)},t}(Q),Html:Ne,Images:Le,Slideshow:Ye,Thumbs:it,Toolbar:lt},ht="with-fancybox",dt="hide-scrollbar",ft="--fancybox-scrollbar-compensate",vt="--fancybox-body-margin",pt="aria-hidden",gt="is-using-tab",mt="is-animated",bt="is-compact",yt="is-loading",wt="is-opening",xt="has-caption",Et="disabled",St="tabindex",Pt="download",Ct="href",Tt=function(e){return"string"==typeof e},Mt=function(){var e=window.getSelection();return!!e&&"Range"===e.type},Ot=null,At=null,kt=0,Lt=0,zt=0,Rt=0,It=new Map,Dt=0,Ft=function(e){function t(t,i,n){var o;return void 0===t&&(t=[]),void 0===i&&(i={}),void 0===n&&(n={}),o=e.call(this,i)||this,Object.defineProperty(c(o),"userSlides",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(c(o),"userPlugins",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(c(o),"idle",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(c(o),"idleTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(o),"clickTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(o),"pwt",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(c(o),"ignoreFocusChange",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(c(o),"startedFs",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(c(o),"state",{enumerable:!0,configurable:!0,writable:!0,value:de.Init}),Object.defineProperty(c(o),"id",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(c(o),"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(o),"caption",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(o),"footer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(o),"carousel",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(o),"lastFocus",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(o),"prevMouseMoveEvent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),ct||(ct=be()),o.id=i.id||++Dt,It.set(o.id,c(o)),o.userSlides=t,o.userPlugins=n,queueMicrotask((function(){o.init()})),o}h(t,e);var i=t.prototype;return i.init=function(){var e=this;if(this.state!==de.Destroy){this.state=de.Init,this.attachPlugins(Object.assign(Object.assign({},t.Plugins),this.userPlugins)),this.emit("init"),this.emit("attachPlugins"),!0===this.option("hideScrollbar")&&function(){if(pe){var e=document,t=e.body,i=e.documentElement;if(!t.classList.contains(dt)){var n=window.innerWidth-i.getBoundingClientRect().width,o=parseFloat(window.getComputedStyle(t).marginRight);n<0&&(n=0),i.style.setProperty(ft,n+"px"),o&&t.style.setProperty(vt,o+"px"),t.classList.add(dt)}}}(),this.initLayout(),this.scale();var i=function(){e.initCarousel(e.userSlides),e.state=de.Ready,e.attachEvents(),e.emit("ready"),setTimeout((function(){e.container&&e.container.setAttribute(pt,"false")}),16)};this.option("Fullscreen.autoStart")&&ct&&!ct.isFullscreen()?ct.request().then((function(){e.startedFs=!0,i()})).catch((function(){return i()})):i()}},i.initLayout=function(){var e,t,i=this,n=this.option("parentEl")||document.body,o=m(this.localize(this.option("tpl.main")||""));if(o){if(o.setAttribute("id","fancybox-"+this.id),o.setAttribute("aria-label",this.localize("{{MODAL}}")),o.classList.toggle(bt,this.isCompact),B(o,this.option("mainClass")||""),B(o,wt),this.container=o,this.footer=o.querySelector(".fancybox__footer"),n.appendChild(o),B(document.documentElement,ht),Ot&&At||(Ot=document.createElement("span"),B(Ot,"fancybox-focus-guard"),Ot.setAttribute(St,"0"),Ot.setAttribute(pt,"true"),Ot.setAttribute("aria-label","Focus guard"),At=Ot.cloneNode(),null===(e=o.parentElement)||void 0===e||e.insertBefore(Ot,o),null===(t=o.parentElement)||void 0===t||t.append(At)),o.addEventListener("mousedown",(function(e){kt=e.pageX,Lt=e.pageY,j(o,gt)})),this.option("closeExisting"))for(var a,r=d(It.values());!(a=r()).done;){var s=a.value;s.id!==this.id&&s.close()}else this.option("animated")&&(B(o,mt),setTimeout((function(){i.isClosing()||j(o,mt)}),350));this.emit("initLayout")}},i.initCarousel=function(e){var t=this,i=this.container;if(i){var n=i.querySelector(".fancybox__carousel");if(n){var o=this.carousel=new ue(n,T({},{slides:e,transition:"fade",Panzoom:{lockAxis:this.option("dragToClose")?"xy":"x",infinite:!!this.option("dragToClose")&&"y"},Dots:!1,Navigation:{classes:{container:"fancybox__nav",button:"f-button",isNext:"is-next",isPrev:"is-prev"}},initialPage:this.option("startIndex"),l10n:this.option("l10n")},this.option("Carousel")||{}));o.on("*",(function(e,i){for(var n=arguments.length,o=new Array(n>2?n-2:0),a=2;a=200||r>=50&&i.dragOffset.time<300)&&(n&&n.cancelable&&n.preventDefault(),t.close(n,"f-throwOut"+(i.current.f<0?"Up":"Down")))}}))),o.on("change",(function(e){var i,n=null===(i=t.getSlide())||void 0===i?void 0:i.triggerEl;if(n){var o=new CustomEvent("slideTo",{bubbles:!0,cancelable:!0,detail:e.page});n.dispatchEvent(o)}})),o.on(["refresh","change"],(function(e){var i=t.container;if(i){for(var n,o=d(i.querySelectorAll("[data-fancybox-current-index]"));!(n=o()).done;)n.value.innerHTML=e.page+1;for(var a,r=d(i.querySelectorAll("[data-fancybox-count]"));!(a=r()).done;)a.value.innerHTML=e.pages.length;if(!e.isInfinite){for(var s,l=d(i.querySelectorAll("[data-fancybox-next]"));!(s=l()).done;){var c=s.value;e.page0?(f.removeAttribute(Et),f.removeAttribute(St)):(f.setAttribute(Et,""),f.setAttribute(St,"-1"))}}var v=t.getSlide();if(v){var p=v.downloadSrc||"";p||"image"!==v.type||v.error||!Tt(v.src)||(p=v.src);for(var g,m=d(i.querySelectorAll("[data-fancybox-download]"));!(g=m()).done;){var b=g.value,y=v.downloadFilename;p?(b.removeAttribute(Et),b.removeAttribute(St),b.setAttribute(Ct,p),b.setAttribute(Pt,y||p),b.setAttribute("target","_blank")):(b.setAttribute(Et,""),b.setAttribute(St,"-1"),b.removeAttribute(Ct),b.removeAttribute(Pt))}}}})),this.emit("initCarousel")}}},i.attachEvents=function(){var e=this,t=e.container;if(t){t.addEventListener("click",e.onClick,{passive:!1,capture:!1}),t.addEventListener("wheel",e.onWheel,{passive:!1,capture:!1}),document.addEventListener("keydown",e.onKeydown,{passive:!1,capture:!0}),document.addEventListener("visibilitychange",e.onVisibilityChange,!1),document.addEventListener("mousemove",e.onMousemove),e.option("trapFocus")&&document.addEventListener("focus",e.onFocus,!0),window.addEventListener("resize",e.onResize);var i=window.visualViewport;i&&(i.addEventListener("scroll",e.onResize),i.addEventListener("resize",e.onResize))}},i.detachEvents=function(){var e=this,t=e.container;if(t){document.removeEventListener("keydown",e.onKeydown,{passive:!1,capture:!0}),t.removeEventListener("wheel",e.onWheel,{passive:!1,capture:!1}),t.removeEventListener("click",e.onClick,{passive:!1,capture:!1}),document.removeEventListener("mousemove",e.onMousemove),window.removeEventListener("resize",e.onResize);var i=window.visualViewport;i&&(i.removeEventListener("resize",e.onResize),i.removeEventListener("scroll",e.onResize)),document.removeEventListener("visibilitychange",e.onVisibilityChange,!1),document.removeEventListener("focus",e.onFocus,!0)}},i.scale=function(){var e=this.container;if(e){var t=window.visualViewport,i=Math.max(1,(null==t?void 0:t.scale)||1),n="",o="",a="";if(t&&i>1){var r=t.offsetLeft+"px",s=t.offsetTop+"px";n=t.width*i+"px",o=t.height*i+"px",a="translate3d("+r+", "+s+", 0) scale("+1/i+")"}e.style.transform=a,e.style.width=n,e.style.height=o}},i.onClick=function(e){var t,i=this,n=this.container,o=this.isCompact;if(n&&!this.isClosing()){!o&&this.option("idle")&&this.resetIdle();var a=e.composedPath()[0];if(a.closest(".fancybox-spinner")||a.closest("[data-fancybox-close]"))return e.preventDefault(),void this.close(e);if(a.closest("[data-fancybox-prev]"))return e.preventDefault(),void this.prev();if(a.closest("[data-fancybox-next]"))return e.preventDefault(),void this.next();if(("click"!==e.type||0!==e.detail)&&!(Math.abs(e.pageX-kt)>30||Math.abs(e.pageY-Lt)>30)){var r=document.activeElement;if(!(Mt()&&r&&n.contains(r)))if(o&&"image"===(null===(t=this.getSlide())||void 0===t?void 0:t.type))this.clickTimer?(clearTimeout(this.clickTimer),this.clickTimer=null):this.clickTimer=setTimeout((function(){i.toggleIdle(),i.clickTimer=null}),350);else if(this.emit("click",e),!e.defaultPrevented){var s=!1;if(a.closest(".fancybox__content")){if(r){if(r.closest("[contenteditable]"))return;a.matches(ge)||r.blur()}if(Mt())return;s=this.option("contentClick")}else a.closest(".fancybox__carousel")&&!a.matches(ge)&&(s=this.option("backdropClick"));"close"===s?(e.preventDefault(),this.close(e)):"next"===s?(e.preventDefault(),this.next()):"prev"===s&&(e.preventDefault(),this.prev())}}}},i.onWheel=function(e){var t=e.target,i=this.option("wheel",e);t.closest(".fancybox__thumbs")&&(i="slide");var n="slide"===i,o=[-e.deltaX||0,-e.deltaY||0,-e.detail||0].reduce((function(e,t){return Math.abs(t)>Math.abs(e)?t:e})),a=Math.max(-1,Math.min(1,o)),r=Date.now();this.pwt&&r-this.pwt<300?n&&e.preventDefault():(this.pwt=r,this.emit("wheel",e,a),e.defaultPrevented||("close"===i?(e.preventDefault(),this.close(e)):"slide"===i&&(g(t)||(e.preventDefault(),this[a>0?"prev":"next"]()))))},i.onScroll=function(){window.scrollTo(zt,Rt)},i.onKeydown=function(e){if(this.isTopmost()){this.isCompact||!this.option("idle")||this.isClosing()||this.resetIdle();var t=e.key,i=this.option("keyboard");if(i){var n=e.composedPath()[0],o=document.activeElement&&document.activeElement.classList,a=o&&o.contains("f-button")||n.dataset.carouselPage||n.dataset.carouselIndex;if(("Escape"===t||a||!F(n)||!n.isContentEditable&&-1===["TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].indexOf(n.nodeName))&&("Tab"===e.key?B(this.container,gt):j(this.container,gt),!(e.ctrlKey||e.altKey||e.shiftKey))){this.emit("keydown",t,e);var r=i[t];r&&"function"==typeof this[r]&&(e.preventDefault(),this[r]())}}}},i.onResize=function(){var e=this.container;if(e){var t=this.isCompact;e.classList.toggle(bt,t),this.manageCaption(this.getSlide()),this.isCompact?this.clearIdle():this.endIdle(),this.scale(),this.emit("resize")}},i.onFocus=function(e){this.isTopmost()&&this.checkFocus(e)},i.onMousemove=function(e){this.prevMouseMoveEvent=e,!this.isCompact&&this.option("idle")&&this.resetIdle()},i.onVisibilityChange=function(){"visible"===document.visibilityState?this.checkFocus():this.endIdle()},i.manageCloseBtn=function(e){var t=this.optionFor(e,"closeButton")||!1;if("auto"===t){var i=this.plugins.Toolbar;if(i&&i.state===nt.Ready)return}if(t&&e.contentEl&&!e.closeBtnEl){var n=this.option("tpl.closeButton");if(n){var o=m(this.localize(n));e.closeBtnEl=e.contentEl.appendChild(o),e.el&&B(e.el,"has-close-btn")}}},i.manageCaption=function(e){var t,i,n=this;void 0===e&&(e=void 0);var o="fancybox__caption",a=this.container;if(a){j(a,xt);var r=this.isCompact||this.option("commonCaption"),s=!r;if(this.caption&&this.stop(this.caption),s&&this.caption&&(this.caption.remove(),this.caption=null),r&&!this.caption)for(var l,c=d((null===(t=this.carousel)||void 0===t?void 0:t.slides)||[]);!(l=c()).done;){var u=l.value;u.captionEl&&(u.captionEl.remove(),u.captionEl=void 0,j(u.el,xt),null===(i=u.el)||void 0===i||i.removeAttribute("aria-labelledby"))}if(e||(e=this.getSlide()),e&&(!r||this.isCurrentSlide(e))){var h=e.el,f=this.optionFor(e,"caption","");if(f){var v=null;if(s){if(v=e.captionEl||null,h&&!v){var p=o+"_"+this.id+"_"+e.index;v=document.createElement("div"),B(v,o),v.setAttribute("id",p),e.captionEl=h.appendChild(v),B(h,xt),h.setAttribute("aria-labelledby",p)}}else(v=this.caption)||(v=a.querySelector("."+o)),v||((v=document.createElement("div")).dataset.fancyboxCaption="",B(v,o),(this.footer||a).prepend(v)),B(a,xt),this.caption=v;v&&(v.innerHTML="",Tt(f)||"number"==typeof f?v.innerHTML=f+"":f instanceof HTMLElement&&v.appendChild(f))}else r&&this.caption&&this.animate(this.caption,"f-fadeOut",(function(){n.caption&&(n.caption.innerHTML="")}))}}},i.checkFocus=function(e){this.focus(e)},i.focus=function(e){var t;if(!this.ignoreFocusChange){var i=document.activeElement||null,n=(null==e?void 0:e.target)||null,o=this.container,a=null===(t=this.carousel)||void 0===t?void 0:t.viewport;if(o&&a&&(e||!i||!o.contains(i))){var r=this.getSlide(),s=r&&r.state===fe.Ready?r.el:null;if(s&&!s.contains(i)&&o!==i){e&&e.cancelable&&e.preventDefault(),this.ignoreFocusChange=!0;for(var l=[],c=null,u=0,h=Array.from(o.querySelectorAll(ge));u1&&e.slideNext()},i.prev=function(){var e=this.carousel;e&&e.pages.length>1&&e.slidePrev()},i.jumpTo=function(){var e;this.carousel&&(e=this.carousel).slideTo.apply(e,arguments)},i.isTopmost=function(){var e;return(null===(e=t.getInstance())||void 0===e?void 0:e.id)==this.id},i.animate=function(e,t,i){void 0===e&&(e=null),void 0===t&&(t=""),e&&t?(this.stop(e),e.dataset.animationName=t,e.addEventListener("animationend",(function n(o){o.target===e&&e.dataset.animationName&&(e.removeEventListener("animationend",n),delete e.dataset.animationName,i&&i(),j(e,t))})),B(e,t)):i&&i()},i.stop=function(e){e&&e.dispatchEvent(new CustomEvent("animationend",{bubbles:!1,cancelable:!0,currentTarget:e}))},i.setContent=function(e,t,i){if(void 0===t&&(t=""),void 0===i&&(i=!0),!this.isClosing()){var n=e.el;if(n){var o=null;if(F(t)?o=t:(o=m(t+""),F(o)||((o=document.createElement("div")).innerHTML=t+"")),["img","picture","iframe","video","audio"].includes(o.nodeName.toLowerCase())){var a=document.createElement("div");a.appendChild(o),o=a}F(o)&&e.filter&&!e.error&&(o=o.querySelector(e.filter)),o&&F(o)?(B(o,"fancybox__content"),e.id&&o.setAttribute("id",e.id),n.classList.add("has-"+(e.error?"error":e.type||"unknown")),n.prepend(o),"none"===o.style.display&&(o.style.display=""),"none"===getComputedStyle(o).getPropertyValue("display")&&(o.style.display=e.display||this.option("defaultDisplay")||"flex"),e.contentEl=o,i&&this.revealContent(e),this.manageCloseBtn(e),this.manageCaption(e)):this.setError(e,"{{ELEMENT_NOT_FOUND}}")}}},i.revealContent=function(e,t){var i=this,n=e.el,o=e.contentEl;n&&o&&(this.emit("reveal",e),this.hideLoading(e),e.state=fe.Opening,(t=this.isOpeningSlide(e)?void 0===t?this.optionFor(e,"showClass"):t:"f-fadeIn")?this.animate(o,t,(function(){i.done(e)})):this.done(e))},i.done=function(e){var t=this;this.isClosing()||(e.state=fe.Ready,this.emit("done",e),B(e.el,"is-done"),this.isCurrentSlide(e)&&this.option("autoFocus")&&queueMicrotask((function(){var i;null===(i=e.panzoom)||void 0===i||i.updateControls(),t.option("autoFocus")&&t.focus()})),this.isOpeningSlide(e)&&(j(this.container,wt),!this.isCompact&&this.option("idle")&&this.setIdle()))},i.isCurrentSlide=function(e){var t=this.getSlide();return!(!e||!t)&&t.index===e.index},i.isOpeningSlide=function(e){var t,i;return null===(null===(t=this.carousel)||void 0===t?void 0:t.prevPage)&&e&&e.index===(null===(i=this.getSlide())||void 0===i?void 0:i.index)},i.showLoading=function(e){var t=this;e.state=fe.Loading;var i=e.el;i&&(B(i,yt),this.emit("loading",e),e.spinnerEl||setTimeout((function(){if(!t.isClosing()&&!e.spinnerEl&&e.state===fe.Loading){var n=m(D);B(n,"fancybox-spinner"),e.spinnerEl=n,i.prepend(n),t.animate(n,"f-fadeIn")}}),250))},i.hideLoading=function(e){var t=e.el;if(t){var i=e.spinnerEl;this.isClosing()?null==i||i.remove():(j(t,yt),i&&this.animate(i,"f-fadeOut",(function(){i.remove()})),e.state===fe.Loading&&(this.emit("loaded",e),e.state=fe.Ready))}},i.setError=function(e,t){if(!this.isClosing()){var i=new Event("error",{bubbles:!0,cancelable:!0});if(this.emit("error",i,e),!i.defaultPrevented){e.error=t,this.hideLoading(e),this.clearContent(e);var n=document.createElement("div");n.classList.add("fancybox-error"),n.innerHTML=this.localize(t||"

{{ERROR}}

"),this.setContent(e,n)}}},i.clearContent=function(e){if(void 0!==e.state){this.emit("clearContent",e),e.contentEl&&(e.contentEl.remove(),e.contentEl=void 0);var t=e.el;t&&(j(t,"has-error"),j(t,"has-unknown"),j(t,"has-"+(e.type||"unknown"))),e.closeBtnEl&&e.closeBtnEl.remove(),e.closeBtnEl=void 0,e.captionEl&&e.captionEl.remove(),e.captionEl=void 0,e.spinnerEl&&e.spinnerEl.remove(),e.spinnerEl=void 0}},i.getSlide=function(){var e,t=this.carousel;return(null===(e=null==t?void 0:t.pages[null==t?void 0:t.page])||void 0===e?void 0:e.slides[0])||void 0},i.close=function(e,t){var i=this;if(!this.isClosing()){var n=new Event("shouldClose",{bubbles:!0,cancelable:!0});if(this.emit("shouldClose",n,e),!n.defaultPrevented){e&&e.cancelable&&(e.preventDefault(),e.stopPropagation());var o=function(){i.proceedClose(e,t)};this.startedFs&&ct&&ct.isFullscreen()?Promise.resolve(ct.exit()).then((function(){return o()})):o()}}},i.clearIdle=function(){this.idleTimer&&clearTimeout(this.idleTimer),this.idleTimer=null},i.setIdle=function(e){var t=this;void 0===e&&(e=!1);var i=function(){t.clearIdle(),t.idle=!0,B(t.container,"is-idle"),t.emit("setIdle")};if(this.clearIdle(),!this.isClosing())if(e)i();else{var n=this.option("idle");n&&(this.idleTimer=setTimeout(i,n))}},i.endIdle=function(){this.clearIdle(),this.idle&&!this.isClosing()&&(this.idle=!1,j(this.container,"is-idle"),this.emit("endIdle"))},i.resetIdle=function(){this.endIdle(),this.setIdle()},i.toggleIdle=function(){this.idle?this.endIdle():this.setIdle(!0)},i.toggleFullscreen=function(){var e=this;ct&&(ct.isFullscreen()?ct.exit():ct.request().then((function(){e.startedFs=!0})))},i.isClosing=function(){return[de.Closing,de.CustomClosing,de.Destroy].includes(this.state)},i.proceedClose=function(e,t){var i,n,o=this;this.state=de.Closing,this.clearIdle(),this.detachEvents();var a=this.container,r=this.carousel,s=this.getSlide(),l=s&&this.option("placeFocusBack")?s.triggerEl||this.option("triggerEl"):null;if(l&&(ve(l)?me(l):l.focus()),a&&(j(a,wt),B(a,"is-closing"),a.setAttribute(pt,"true"),this.option("animated")&&B(a,mt),a.style.pointerEvents="none"),r){r.clearTransitions(),null===(i=r.panzoom)||void 0===i||i.destroy(),null===(n=r.plugins.Navigation)||void 0===n||n.detach();for(var c,u=d(r.slides);!(c=u()).done;){var h=c.value;h.state=fe.Closing,this.hideLoading(h);var f=h.contentEl;f&&this.stop(f);var v=null==h?void 0:h.panzoom;v&&(v.stop(),v.detachEvents(),v.detachObserver()),this.isCurrentSlide(h)||r.emit("removeSlide",h)}}zt=window.scrollX,Rt=window.scrollY,window.addEventListener("scroll",this.onScroll),this.emit("close",e),this.state!==de.CustomClosing?(void 0===t&&s&&(t=this.optionFor(s,"hideClass")),t&&s?(this.animate(s.contentEl,t,(function(){r&&r.emit("removeSlide",s)})),setTimeout((function(){o.destroy()}),500)):this.destroy()):setTimeout((function(){o.destroy()}),500)},i.destroy=function(){var e;if(this.state!==de.Destroy){window.removeEventListener("scroll",this.onScroll),this.state=de.Destroy,null===(e=this.carousel)||void 0===e||e.destroy();var i=this.container;i&&i.remove(),It.delete(this.id);var n=t.getInstance();n?n.focus():(Ot&&(Ot.remove(),Ot=null),At&&(At.remove(),At=null),j(document.documentElement,ht),function(){if(pe){var e=document,t=e.body;t.classList.remove(dt),t.style.setProperty(vt,""),e.documentElement.style.setProperty(ft,"")}}(),this.emit("destroy"))}},t.bind=function(e,i,n){if(pe){var o,a="",r={};if(void 0===e?o=document.body:Tt(e)?(o=document.body,a=e,"object"==typeof i&&(r=i||{})):(o=e,Tt(i)&&(a=i),"object"==typeof n&&(r=n||{})),o&&F(o)){a=a||"[data-fancybox]";var s=t.openers.get(o)||new Map;s.set(a,r),t.openers.set(o,s),1===s.size&&o.addEventListener("click",t.fromEvent)}}},t.unbind=function(e,i){var n,o="";if(Tt(e)?(n=document.body,o=e):(n=e,Tt(i)&&(o=i)),n){var a=t.openers.get(n);a&&o&&a.delete(o),o&&a||(t.openers.delete(n),n.removeEventListener("click",t.fromEvent))}},t.destroy=function(){for(var e;e=t.getInstance();)e.destroy();for(var i,n=d(t.openers.keys());!(i=n()).done;)i.value.removeEventListener("click",t.fromEvent);t.openers=new Map},t.fromEvent=function(e){if(!e.defaultPrevented&&!(e.button&&0!==e.button||e.ctrlKey||e.metaKey||e.shiftKey)){var i,n,o,a,r=e.composedPath()[0],s=r.closest("[data-fancybox-trigger]");if(s){var l=s.dataset.fancyboxTrigger||"",c=document.querySelectorAll('[data-fancybox="'+l+'"]'),u=parseInt(s.dataset.fancyboxIndex||"",10)||0;r=c[u]||r}if(r&&r instanceof Element&&([].concat(t.openers).reverse().find((function(e){var t=e[0],s=e[1];return!(!t.contains(r)||![].concat(s).reverse().find((function(e){var s=e[0],l=e[1],c=r.closest(s);return!!c&&(i=t,n=s,o=c,a=l,!0)})))})),i&&n&&o)){a=a||{},e.preventDefault(),r=o;var h=[],d=T({},ye,a);d.event=e,d.triggerEl=r,d.delegate=s;var f=d.groupAll,v=d.groupAttr,p=v&&r?r.getAttribute(""+v):"";if((!r||p||f)&&(h=[].slice.call(i.querySelectorAll(n))),r&&!f&&(h=p?h.filter((function(e){return e.getAttribute(""+v)===p})):[r]),h.length){var g=t.getInstance();return g&&g.options.triggerEl&&h.indexOf(g.options.triggerEl)>-1?void 0:(r&&(d.startIndex=h.indexOf(r)),t.fromNodes(h,d))}}}},t.fromSelector=function(e,i,n){var o=null,a="",r={};if(Tt(e)?(o=document.body,a=e,"object"==typeof i&&(r=i||{})):e instanceof HTMLElement&&Tt(i)&&(o=e,a=i,"object"==typeof n&&(r=n||{})),!o||!a)return!1;var s=t.openers.get(o);return!!s&&!!(r=T({},s.get(a)||{},r))&&t.fromNodes(Array.from(o.querySelectorAll(a)),r)},t.fromNodes=function(e,i){i=T({},ye,i||{});for(var n,o=[],a=d(e);!(n=a()).done;){var r=n.value,s=r.dataset||{},l=s.src||r.getAttribute(Ct)||r.getAttribute("currentSrc")||r.getAttribute("src")||void 0,c=void 0,u=i.delegate,h=void 0;u&&o.length===i.startIndex&&(c=u instanceof HTMLImageElement?u:u.querySelector("img:not([aria-hidden])")),c||(c=r instanceof HTMLImageElement?r:r.querySelector("img:not([aria-hidden])")),c&&!(h=c.currentSrc||c.src||void 0)&&c.dataset&&(h=c.dataset.lazySrc||c.dataset.src||void 0);var f={src:l,triggerEl:r,thumbEl:c,thumbElSrc:h,thumbSrc:h};for(var v in s){var p=s[v]+"";p="false"!==p&&("true"===p||p),f[v]=p}o.push(f)}return new t(o,i)},t.getInstance=function(e){return e?It.get(e):Array.from(It.values()).reverse().find((function(e){return!e.isClosing()&&e}))||null},t.getSlide=function(){var e;return(null===(e=t.getInstance())||void 0===e?void 0:e.getSlide())||null},t.show=function(e,i){return void 0===e&&(e=[]),void 0===i&&(i={}),new t(e,i)},t.next=function(){var e=t.getInstance();e&&e.next()},t.prev=function(){var e=t.getInstance();e&&e.prev()},t.close=function(e){void 0===e&&(e=!0);for(var i=arguments.length,n=new Array(i>1?i-1:0),o=1;o{var e={n:t=>{var i=t&&t.__esModule?()=>t.default:()=>t;return e.d(i,{a:i}),i},d:(t,i)=>{for(var n in i)e.o(i,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:i[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};(()=>{"use strict";e.r(t);const i=flarum.core.compat["forum/app"];var n=e.n(i);const o=flarum.core.compat["common/extend"],a=flarum.core.compat["forum/components/CommentPost"];var r=e.n(a);function s(e,t){for(var i=0;i=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);ie.clientHeight,i=window.getComputedStyle(e).overflowY,n=-1!==i.indexOf("hidden"),o=-1!==i.indexOf("visible");return t&&!n&&!o},g=function e(t,i){return void 0===i&&(i=void 0),!(!t||t===document.body||i&&t===i)&&(p(t)?t:e(t.parentElement,i))},m=function(e){var t=(new DOMParser).parseFromString(e,"text/html").body;if(t.childElementCount>1){for(var i=document.createElement("div");t.firstChild;)i.appendChild(t.firstChild);return i}return t.firstChild},b=function(e){return(""+(e||"")).split(" ").filter((function(e){return!!e}))},y=function(e,t,i){e&&b(t).forEach((function(t){e.classList.toggle(t,i||!1)}))},w=function(e){Object.defineProperty(this,"pageX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"pageY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"clientX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"clientY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"time",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"nativePointer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.nativePointer=e,this.pageX=e.pageX,this.pageY=e.pageY,this.clientX=e.clientX,this.clientY=e.clientY,this.id=self.Touch&&e instanceof Touch?e.identifier:-1,this.time=Date.now()},x={passive:!1},E=function(){function e(e,t){var i=t.start,n=void 0===i?function(){return!0}:i,o=t.move,a=void 0===o?function(){}:o,r=t.end,s=void 0===r?function(){}:r;Object.defineProperty(this,"element",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"startCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"moveCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"endCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"currentPointers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"startPointers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),this.element=e,this.startCallback=n,this.moveCallback=a,this.endCallback=s;for(var l=0,c=["onPointerStart","onTouchStart","onMove","onTouchEnd","onPointerEnd","onWindowBlur"];l0&&0!==e.button||(this.triggerPointerEnd(e,new w(e)),window.removeEventListener("mousemove",this.onMove),window.removeEventListener("mouseup",this.onPointerEnd),window.removeEventListener("blur",this.onWindowBlur))},t.onTouchEnd=function(e){for(var t=0,i=Array.from(e.changedTouches||[]);t1?n-1:0),a=1;a3?r-3:0),l=3;l-1&&n.splice(o,1)}}))},t.emit=function(e){for(var t=this,i=arguments.length,n=new Array(i>1?i-1:0),o=1;o',D='
'+I+I+"
",F=function(e){return e&&null!==e&&e instanceof Element&&"nodeType"in e},j=function(e,t){e&&b(t).forEach((function(t){e.classList.remove(t)}))},B=function(e,t){e&&b(t).forEach((function(t){e.classList.add(t)}))},H={a:1,b:0,c:0,d:1,e:0,f:0},N=1e4,_="mousemove",W="drag",X="content",q="auto",Y=null,V=null,Z=function(e){function t(i,n,o){var a,r;if(void 0===n&&(n={}),void 0===o&&(o={}),a=e.call(this,n)||this,Object.defineProperty(c(a),"pointerTracker",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(a),"resizeObserver",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(a),"updateTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(a),"clickTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(a),"rAF",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(a),"isTicking",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(c(a),"ignoreBounds",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(c(a),"isBouncingX",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(c(a),"isBouncingY",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(c(a),"clicks",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(c(a),"trackingPoints",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(c(a),"pwt",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(c(a),"cwd",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(c(a),"pmme",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(c(a),"friction",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(c(a),"state",{enumerable:!0,configurable:!0,writable:!0,value:A.Init}),Object.defineProperty(c(a),"isDragging",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(c(a),"container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(c(a),"content",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(c(a),"spinner",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(a),"containerRect",{enumerable:!0,configurable:!0,writable:!0,value:{width:0,height:0,innerWidth:0,innerHeight:0}}),Object.defineProperty(c(a),"contentRect",{enumerable:!0,configurable:!0,writable:!0,value:{top:0,right:0,bottom:0,left:0,fullWidth:0,fullHeight:0,fitWidth:0,fitHeight:0,width:0,height:0}}),Object.defineProperty(c(a),"dragStart",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0,top:0,left:0,time:0}}),Object.defineProperty(c(a),"dragOffset",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0,time:0}}),Object.defineProperty(c(a),"current",{enumerable:!0,configurable:!0,writable:!0,value:Object.assign({},H)}),Object.defineProperty(c(a),"target",{enumerable:!0,configurable:!0,writable:!0,value:Object.assign({},H)}),Object.defineProperty(c(a),"velocity",{enumerable:!0,configurable:!0,writable:!0,value:{a:0,b:0,c:0,d:0,e:0,f:0}}),Object.defineProperty(c(a),"lockedAxis",{enumerable:!0,configurable:!0,writable:!0,value:!1}),!i)throw new Error("Container Element Not Found");a.container=i,a.initContent(),a.attachPlugins(Object.assign(Object.assign({},t.Plugins),o)),a.emit("attachPlugins"),a.emit("init");var s=a.content;if(s.addEventListener("load",a.onLoad),s.addEventListener("error",a.onError),a.isContentLoading){if(a.option("spinner")){i.classList.add(a.cn("isLoading"));var l=m(D);!i.contains(s)||s.parentElement instanceof HTMLPictureElement?a.spinner=i.appendChild(l):a.spinner=(null===(r=s.parentElement)||void 0===r?void 0:r.insertBefore(l,s))||null}a.emit("beforeLoad")}else queueMicrotask((function(){a.enable()}));return c(a)}h(t,e);var i=t.prototype;return i.initContent=function(){var e=this.container,t=this.cn(X),i=this.option(X)||e.querySelector("."+t);if(i||(i=e.querySelector("img,picture")||e.firstElementChild)&&B(i,t),i instanceof HTMLPictureElement&&(i=i.querySelector("img")),!i)throw new Error("No content found");this.content=i},i.onLoad=function(){var e=this.spinner,t=this.container,i=this.state;e&&(e.remove(),this.spinner=null),this.option("spinner")&&t.classList.remove(this.cn("isLoading")),this.emit("afterLoad"),i===A.Init?this.enable():this.updateMetrics()},i.onError=function(){this.state!==A.Destroy&&(this.spinner&&(this.spinner.remove(),this.spinner=null),this.stop(),this.detachEvents(),this.state=A.Error,this.emit("error"))},i.getNextScale=function(e){var t=this.fullScale,i=this.targetScale,n=this.coverScale,o=this.maxScale,a=this.minScale,r=a;switch(e){case"toggleMax":r=i-a<.5*(o-a)?o:a;break;case"toggleCover":r=i-a<.5*(n-a)?n:a;break;case"toggleZoom":r=i-a<.5*(t-a)?t:a;break;case"iterateZoom":var s=[1,t,o].sort((function(e,t){return e-t})),l=s.findIndex((function(e){return e>i+1e-5}));r=s[l]||1}return r},i.attachObserver=function(){var e,t=this,i=function(){var e=t.container,i=t.containerRect;return Math.abs(i.width-e.getBoundingClientRect().width)>.1||Math.abs(i.height-e.getBoundingClientRect().height)>.1};this.resizeObserver||void 0===window.ResizeObserver||(this.resizeObserver=new ResizeObserver((function(){t.updateTimer||(i()?(t.onResize(),t.isMobile&&(t.updateTimer=setTimeout((function(){i()&&t.onResize(),t.updateTimer=null}),500))):t.updateTimer&&(clearTimeout(t.updateTimer),t.updateTimer=null))}))),null===(e=this.resizeObserver)||void 0===e||e.observe(this.container)},i.detachObserver=function(){var e;null===(e=this.resizeObserver)||void 0===e||e.disconnect()},i.attachEvents=function(){var e=this.container;e.addEventListener("click",this.onClick,{passive:!1,capture:!1}),e.addEventListener("wheel",this.onWheel,{passive:!1}),this.pointerTracker=new E(e,{start:this.onPointerDown,move:this.onPointerMove,end:this.onPointerUp}),document.addEventListener(_,this.onMouseMove)},i.detachEvents=function(){var e,t=this.container;t.removeEventListener("click",this.onClick,{passive:!1,capture:!1}),t.removeEventListener("wheel",this.onWheel,{passive:!1}),null===(e=this.pointerTracker)||void 0===e||e.stop(),this.pointerTracker=null,document.removeEventListener(_,this.onMouseMove),document.removeEventListener("keydown",this.onKeydown,!0),this.clickTimer&&(clearTimeout(this.clickTimer),this.clickTimer=null),this.updateTimer&&(clearTimeout(this.updateTimer),this.updateTimer=null)},i.animate=function(){var e=this;this.setTargetForce();for(var t,i=this.friction,n=this.option("maxVelocity"),o=d(L);!(t=o()).done;){var a=t.value;i?(this.velocity[a]*=1-i,n&&!this.isScaling&&(this.velocity[a]=Math.max(Math.min(this.velocity[a],n),-1*n)),this.current[a]+=this.velocity[a]):this.current[a]=this.target[a]}this.setTransform(),this.setEdgeForce(),!this.isResting||this.isDragging?this.rAF=requestAnimationFrame((function(){return e.animate()})):this.stop("current")},i.setTargetForce=function(){for(var e,t=d(L);!(e=t()).done;){var i=e.value;"e"===i&&this.isBouncingX||"f"===i&&this.isBouncingY||(this.velocity[i]=(1/(1-this.friction)-1)*(this.target[i]-this.current[i]))}},i.checkBounds=function(e,t){void 0===e&&(e=0),void 0===t&&(t=0);var i=this.current,n=i.e+e,o=i.f+t,a=this.getBounds(),r=a.x,s=a.y,l=r.min,c=r.max,u=s.min,h=s.max,d=0,f=0;return l!==1/0&&nc&&(d=c-n),u!==1/0&&oh&&(f=h-o),Math.abs(d)<1e-4&&(d=0),Math.abs(f)<1e-4&&(f=0),Object.assign(Object.assign({},a),{xDiff:d,yDiff:f,inBounds:!d&&!f})},i.clampTargetBounds=function(){var e=this.target,t=this.getBounds(),i=t.x,n=t.y;i.min!==1/0&&(e.e=Math.max(e.e,i.min)),i.max!==1/0&&(e.e=Math.min(e.e,i.max)),n.min!==1/0&&(e.f=Math.max(e.f,n.min)),n.max!==1/0&&(e.f=Math.min(e.f,n.max))},i.calculateContentDim=function(e){void 0===e&&(e=this.current);var t=this.content,i=this.contentRect,n=i.fitWidth,o=i.fitHeight,a=i.fullWidth,r=i.fullHeight,s=a,l=r;if(this.option("zoom")||0!==this.angle){var c=!(t instanceof HTMLImageElement||"none"!==window.getComputedStyle(t).maxWidth&&"none"!==window.getComputedStyle(t).maxHeight),u=c?a:n,h=c?r:o,d=this.getMatrix(e),f=new DOMPoint(0,0).matrixTransform(d),v=new DOMPoint(0+u,0).matrixTransform(d),p=new DOMPoint(0+u,0+h).matrixTransform(d),g=new DOMPoint(0,0+h).matrixTransform(d),m=Math.abs(p.x-f.x),b=Math.abs(p.y-f.y),y=Math.abs(g.x-v.x),w=Math.abs(g.y-v.y);s=Math.max(m,y),l=Math.max(b,w)}return{contentWidth:s,contentHeight:l}},i.setEdgeForce=function(){if(this.ignoreBounds||this.isDragging||this.panMode===_||this.targetScale3||Math.abs(this.dragOffset.y)>3)return e.preventDefault(),void e.stopPropagation();if(!n.closest("[data-fancybox]")){var h=this.content.getBoundingClientRect(),d=this.dragStart;if(!d.time||this.canZoomOut()||!(Math.abs(h.x-d.x)>2||Math.abs(h.y-d.y)>2)){this.dragStart.time=0;var f=function(t){i.option("zoom",e)&&t&&"string"==typeof t&&/(iterateZoom)|(toggle(Zoom|Full|Cover|Max)|(zoomTo(Fit|Cover|Max)))/.test(t)&&"function"==typeof i[t]&&(e.preventDefault(),i[t]({event:e}))},v=this.option("click",e),p=this.option("dblClick",e);p?(this.clicks++,1==this.clicks&&(this.clickTimer=setTimeout((function(){1===i.clicks?(i.emit("click",e),!e.defaultPrevented&&v&&f(v)):(i.emit("dblClick",e),e.defaultPrevented||f(p)),i.clicks=0,i.clickTimer=null}),350))):(this.emit("click",e),!e.defaultPrevented&&v&&f(v))}}}}},i.addTrackingPoint=function(e){var t=this.trackingPoints.filter((function(e){return e.time>Date.now()-100}));t.push(e),this.trackingPoints=t},i.onPointerDown=function(e,t,i){var n;if(!1===this.option("touch",e))return!1;this.pwt=0,this.dragOffset={x:0,y:0,time:0},this.trackingPoints=[];var o=this.content.getBoundingClientRect();if(this.dragStart={x:o.x,y:o.y,top:o.top,left:o.left,time:Date.now()},this.clickTimer)return!1;if(this.panMode===_&&this.targetScale>1)return e.preventDefault(),e.stopPropagation(),!1;var a=e.composedPath()[0];if(!i.length){if(["TEXTAREA","OPTION","INPUT","SELECT","VIDEO","IFRAME"].includes(a.nodeName)||a.closest("[contenteditable],[data-selectable],[data-draggable],[data-clickable],[data-panzoom-change],[data-panzoom-action]"))return!1;null===(n=window.getSelection())||void 0===n||n.removeAllRanges()}if("mousedown"===e.type)["A","BUTTON"].includes(a.nodeName)||e.preventDefault();else if(Math.abs(this.velocity.a)>.3)return!1;return this.target.e=this.current.e,this.target.f=this.current.f,this.stop(),this.isDragging||(this.isDragging=!0,this.addTrackingPoint(t),this.emit("touchStart",e)),!0},i.onPointerMove=function(e,t,i){if(!1!==this.option("touch",e)&&this.isDragging&&!(t.length<2&&this.panOnlyZoomed&&v(this.targetScale)<=v(this.minScale)||(this.emit("touchMove",e),e.defaultPrevented))){this.addTrackingPoint(t[0]);var n=this.content,o=P(i[0],i[1]),a=P(t[0],t[1]),r=0,s=0;if(t.length>1){var l=n.getBoundingClientRect();r=o.clientX-l.left-.5*l.width,s=o.clientY-l.top-.5*l.height}var c=S(i[0],i[1]),u=S(t[0],t[1]),h=c?u/c:1,d=a.clientX-o.clientX,f=a.clientY-o.clientY;this.dragOffset.x+=d,this.dragOffset.y+=f,this.dragOffset.time=Date.now()-this.dragStart.time;var p=v(this.targetScale)===v(this.minScale)&&this.option("lockAxis");if(p&&!this.lockedAxis)if("xy"===p||"y"===p||"touchmove"===e.type){if(Math.abs(this.dragOffset.x)<6&&Math.abs(this.dragOffset.y)<6)return void e.preventDefault();var m=Math.abs(180*Math.atan2(this.dragOffset.y,this.dragOffset.x)/Math.PI);this.lockedAxis=m>45&&m<135?"y":"x",this.dragOffset.x=0,this.dragOffset.y=0,d=0,f=0}else this.lockedAxis=p;if(g(e.target,this.content)&&(p="x",this.dragOffset.y=0),!p||"xy"===p||this.lockedAxis===p||v(this.targetScale)!==v(this.minScale)){e.cancelable&&e.preventDefault(),this.container.classList.add(this.cn("isDragging"));var b=this.checkBounds(d,f);this.option("rubberband")?("x"!==this.isInfinite&&(b.xDiff>0&&d<0||b.xDiff<0&&d>0)&&(d*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitWidth*b.xDiff))),"y"!==this.isInfinite&&(b.yDiff>0&&f<0||b.yDiff<0&&f>0)&&(f*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitHeight*b.yDiff)))):(b.xDiff&&(d=0),b.yDiff&&(f=0));var y=this.targetScale,w=this.minScale,x=this.maxScale;y<.5*w&&(h=Math.max(h,w)),y>1.5*x&&(h=Math.min(h,x)),"y"===this.lockedAxis&&v(y)===v(w)&&(d=0),"x"===this.lockedAxis&&v(y)===v(w)&&(f=0),this.applyChange({originX:r,originY:s,panX:d,panY:f,scale:h,friction:this.option("dragFriction"),ignoreBounds:!0})}}},i.onPointerUp=function(e,t,i){if(i.length)return this.dragOffset.x=0,this.dragOffset.y=0,void(this.trackingPoints=[]);this.container.classList.remove(this.cn("isDragging")),this.isDragging&&(this.addTrackingPoint(t),this.panOnlyZoomed&&this.contentRect.width-this.contentRect.fitWidth<1&&this.contentRect.height-this.contentRect.fitHeight<1&&(this.trackingPoints=[]),g(e.target,this.content)&&"y"===this.lockedAxis&&(this.trackingPoints=[]),this.emit("touchEnd",e),this.isDragging=!1,this.lockedAxis=!1,this.state!==A.Destroy&&(e.defaultPrevented||this.startDecelAnim()))},i.startDecelAnim=function(){var e,t=this.isScaling;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.isBouncingX=!1,this.isBouncingY=!1;for(var i,n=d(L);!(i=n()).done;){var o=i.value;this.velocity[o]=0}this.target.e=this.current.e,this.target.f=this.current.f,j(this.container,"is-scaling"),j(this.container,"is-animating"),this.isTicking=!1;var a=this.trackingPoints,r=a[0],s=a[a.length-1],l=0,c=0,u=0;s&&r&&(l=s.clientX-r.clientX,c=s.clientY-r.clientY,u=s.time-r.time);var h=(null===(e=window.visualViewport)||void 0===e?void 0:e.scale)||1;1!==h&&(l*=h,c*=h);var f=0,p=0,g=0,m=0,b=this.option("decelFriction"),y=this.targetScale;if(u>0){g=Math.abs(l)>3?l/(u/30):0,m=Math.abs(c)>3?c/(u/30):0;var w=this.option("maxVelocity");w&&(g=Math.max(Math.min(g,w),-1*w),m=Math.max(Math.min(m,w),-1*w))}g&&(f=g/(1/(1-b)-1)),m&&(p=m/(1/(1-b)-1)),("y"===this.option("lockAxis")||"xy"===this.option("lockAxis")&&"y"===this.lockedAxis&&v(y)===this.minScale)&&(f=g=0),("x"===this.option("lockAxis")||"xy"===this.option("lockAxis")&&"x"===this.lockedAxis&&v(y)===this.minScale)&&(p=m=0);var x=this.dragOffset.x,E=this.dragOffset.y,S=this.option("dragMinThreshold")||0;Math.abs(x)this.maxScale+1e-5)||t&&!f&&!p)&&(b=.35),this.applyChange({panX:f,panY:p,friction:b}),this.emit("decel",g,m,x,E)},i.onWheel=function(e){var t=[-e.deltaX||0,-e.deltaY||0,-e.detail||0].reduce((function(e,t){return Math.abs(t)>Math.abs(e)?t:e})),i=Math.max(-1,Math.min(1,t));if(this.emit("wheel",e,i),this.panMode!==_&&!e.defaultPrevented){var n=this.option("wheel");"pan"===n?(e.preventDefault(),this.panOnlyZoomed&&!this.canZoomOut()||this.applyChange({panX:2*-e.deltaX,panY:2*-e.deltaY,bounce:!1})):"zoom"===n&&!1!==this.option("zoom")&&this.zoomWithWheel(e)}},i.onMouseMove=function(e){this.panWithMouse(e)},i.onKeydown=function(e){"Escape"===e.key&&this.toggleFS()},i.onResize=function(){this.updateMetrics(),this.checkBounds().inBounds||this.requestTick()},i.setTransform=function(){this.emit("beforeTransform");for(var e,t=this.current,i=this.target,n=this.content,o=this.contentRect,a=Object.assign({},H),r=d(L);!(e=r()).done;){var s=e.value,l="e"==s||"f"===s?N:1e5;a[s]=v(t[s],l),Math.abs(i[s]-t[s])<("e"==s||"f"===s?.51:.001)&&(t[s]=i[s])}var c="matrix("+a.a+", "+a.b+", "+a.c+", "+a.d+", "+a.e+", "+a.f+")",u=n.parentElement instanceof HTMLPictureElement?n.parentElement:n;if(this.option("transformParent")&&(u=u.parentElement||u),u.style.transform!==c){u.style.transform=c;var h=this.calculateContentDim(),f=h.contentWidth,p=h.contentHeight;o.width=f,o.height=p,this.emit("afterTransform")}},i.updateMetrics=function(e){var t,i;if(void 0===e&&(e=!1),this&&this.state!==A.Destroy&&!this.isContentLoading){var n=Math.max(1,(null===(i=window.visualViewport)||void 0===i?void 0:i.scale)||1),o=this.container,a=this.content,r=a instanceof HTMLImageElement,s=o.getBoundingClientRect(),l=getComputedStyle(this.container),c=s.width*n,u=s.height*n,h=parseFloat(l.paddingTop)+parseFloat(l.paddingBottom),d=c-(parseFloat(l.paddingLeft)+parseFloat(l.paddingRight)),f=u-h;this.containerRect={width:c,height:u,innerWidth:d,innerHeight:f};var p=parseFloat(a.dataset.width||"")||function(e){return(e instanceof HTMLImageElement?e.naturalWidth:e instanceof SVGElement?e.width.baseVal.value:Math.max(e.offsetWidth,e.scrollWidth))||0}(a),g=parseFloat(a.dataset.height||"")||function(e){return(e instanceof HTMLImageElement?e.naturalHeight:e instanceof SVGElement?e.height.baseVal.value:Math.max(e.offsetHeight,e.scrollHeight))||0}(a),m=this.option("width",p)||q,b=this.option("height",g)||q,y=m===q,w=b===q;"number"!=typeof m&&(m=p),"number"!=typeof b&&(b=g),y&&(m=p*(b/g)),w&&(b=g/(p/m));var x=a.parentElement instanceof HTMLPictureElement?a.parentElement:a;this.option("transformParent")&&(x=x.parentElement||x);var E=x.getAttribute("style")||"";x.style.setProperty("transform","none","important"),r&&(x.style.width="",x.style.height=""),x.offsetHeight;var S=a.getBoundingClientRect(),P=S.width*n,C=S.height*n,M=P,T=C;P=Math.min(P,m),C=Math.min(C,b),r?(t=function(e,t,i,n){var o=i/e,a=n/t,r=Math.min(o,a);return{width:e*=r,height:t*=r}}(m,b,P,C),P=t.width,C=t.height):(P=Math.min(P,m),C=Math.min(C,b));var O=.5*(T-C),k=.5*(M-P);this.contentRect=Object.assign(Object.assign({},this.contentRect),{top:S.top-s.top+O,bottom:s.bottom-S.bottom+O,left:S.left-s.left+k,right:s.right-S.right+k,fitWidth:P,fitHeight:C,width:P,height:C,fullWidth:m,fullHeight:b}),x.style.cssText=E,r&&(x.style.width=P+"px",x.style.height=C+"px"),this.setTransform(),!0!==e&&this.emit("refresh"),this.ignoreBounds||(v(this.targetScale)this.maxScale?this.zoomTo(this.maxScale,{friction:0}):this.state===A.Init||this.checkBounds().inBounds||this.requestTick()),this.updateControls()}},i.calculateBounds=function(){var e=this.calculateContentDim(this.target),t=e.contentWidth,i=e.contentHeight,n=this.targetScale,o=this.lockedAxis,a=this.contentRect,r=a.fitWidth,s=a.fitHeight,l=0,c=0,u=0,h=0,d=this.option("infinite");if(!0===d||o&&d===o)l=-1/0,u=1/0,c=-1/0,h=1/0;else{var f=this.containerRect,p=this.contentRect,g=v(r*n,N),m=v(s*n,N),b=f.innerWidth,y=f.innerHeight;if(f.width===g&&(b=f.width),f.width===m&&(y=f.height),t>b){l=-1*(u=.5*(t-b));var w=.5*(p.right-p.left);l+=w,u+=w}if(r>b&&ty){c=-1*(h=.5*(i-y));var x=.5*(p.bottom-p.top);c+=x,h+=x}s>y&&iv(n.fitWidth,1)||v(n.height,1)>v(n.fitHeight,1))&&(h=!0)),v(n.width*o,1)v(o),p=!f&&!h&&c&&v(r)D&&(r=D/R)}z=z.scale(r)}z=z.translate(-u,-f).translate(-T,-O).multiply(k),l&&(z=z.rotate(l)),b&&(z=z.scale(-1,1)),w&&(z=z.scale(1,-1));for(var F,j=d(L);!(F=j()).done;){var B=F.value;"e"!==B&&"f"!==B&&(z[B]>this.minScale+1e-5||z[B].1||this.panMode===_||!1===P)&&!E&&this.clampTargetBounds(),C===A.Init?this.animate():this.isResting||(this.state=A.Panning,this.requestTick())}},i.stop=function(e){if(void 0===e&&(e=!1),this.state!==A.Init&&this.state!==A.Destroy){var t=this.isTicking;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.isBouncingX=!1,this.isBouncingY=!1;for(var i,n=d(L);!(i=n()).done;){var o=i.value;this.velocity[o]=0,"current"===e?this.current[o]=this.target[o]:"target"===e&&(this.target[o]=this.current[o])}this.setTransform(),j(this.container,"is-scaling"),j(this.container,"is-animating"),this.isTicking=!1,this.state=A.Ready,t&&(this.emit("endAnimation"),this.updateControls())}},i.requestTick=function(){var e=this;this.isTicking||(this.emit("startAnimation"),this.updateControls(),B(this.container,"is-animating"),this.isScaling&&B(this.container,"is-scaling")),this.isTicking=!0,this.rAF||(this.rAF=requestAnimationFrame((function(){return e.animate()})))},i.panWithMouse=function(e,t){if(void 0===t&&(t=this.option("mouseMoveFriction")),this.pmme=e,this.panMode===_&&e&&!(v(this.targetScale)<=v(this.minScale))){this.emit("mouseMove",e);var i=this.container,n=this.containerRect,o=this.contentRect,a=n.width,r=n.height,s=i.getBoundingClientRect(),l=(e.clientX||0)-s.left,c=(e.clientY||0)-s.top,u=this.calculateContentDim(this.target),h=u.contentWidth,d=u.contentHeight,f=this.option("mouseMoveFactor");f>1&&(h!==a&&(h*=f),d!==r&&(d*=f));var p=.5*(h-a)-l/a*100/100*(h-a);p+=.5*(o.right-o.left);var g=.5*(d-r)-c/r*100/100*(d-r);g+=.5*(o.bottom-o.top),this.applyChange({panX:p-this.target.e,panY:g-this.target.f,friction:t})}},i.zoomWithWheel=function(e){if(this.state!==A.Destroy&&this.state!==A.Init){var t=Date.now();if(t-this.pwt<45)e.preventDefault();else{this.pwt=t;var i=[-e.deltaX||0,-e.deltaY||0,-e.detail||0].reduce((function(e,t){return Math.abs(t)>Math.abs(e)?t:e})),n=Math.max(-1,Math.min(1,i)),o=this.targetScale,a=this.maxScale,r=this.minScale,s=o*(100+45*n)/100;v(s)v(a)&&v(o)>=v(a)?(this.cwd+=Math.abs(n),s=a):(this.cwd=0,s=Math.max(Math.min(s,a),r)),this.cwd>this.option("wheelLimit")||(e.preventDefault(),v(s)!==v(o)&&this.zoomTo(s,{event:e}))}}},i.canZoomIn=function(){return this.option("zoom")&&(v(this.contentRect.width,1)v(this.minScale)},i.zoomIn=function(e,t){void 0===e&&(e=1.25),this.zoomTo(this.targetScale*e,t)},i.zoomOut=function(e,t){void 0===e&&(e=.8),this.zoomTo(this.targetScale*e,t)},i.zoomToFit=function(e){this.zoomTo("fit",e)},i.zoomToCover=function(e){this.zoomTo("cover",e)},i.zoomToFull=function(e){this.zoomTo("full",e)},i.zoomToMax=function(e){this.zoomTo("max",e)},i.toggleZoom=function(e){this.zoomTo(this.getNextScale("toggleZoom"),e)},i.toggleMax=function(e){this.zoomTo(this.getNextScale("toggleMax"),e)},i.toggleCover=function(e){this.zoomTo(this.getNextScale("toggleCover"),e)},i.iterateZoom=function(e){this.zoomTo("next",e)},i.zoomTo=function(e,t){void 0===e&&(e=1);var i=void 0===t?{}:t,n=i.friction,o=void 0===n?q:n,a=i.originX,r=void 0===a?q:a,s=i.originY,l=void 0===s?q:s,c=i.event;if(!this.isContentLoading&&this.state!==A.Destroy){var u=this.targetScale,h=this.fullScale,d=this.maxScale,f=this.coverScale;if(this.stop(),this.panMode===_&&(c=this.pmme||c),c||r===q||l===q){var v=this.content.getBoundingClientRect(),p=this.container.getBoundingClientRect(),g=c?c.clientX:p.left+.5*p.width,m=c?c.clientY:p.top+.5*p.height;r=g-v.left-.5*v.width,l=m-v.top-.5*v.height}var b=1;"number"==typeof e?b=e:"full"===e?b=h:"cover"===e?b=f:"max"===e?b=d:"fit"===e?b=1:"next"===e&&(b=this.getNextScale("iterateZoom")),b=b/u||1,o=o===q?b>1?.15:.25:o,this.applyChange({scale:b,originX:r,originY:l,friction:o}),c&&this.panMode===_&&this.panWithMouse(c,o)}},i.rotateCCW=function(){this.applyChange({angle:-90})},i.rotateCW=function(){this.applyChange({angle:90})},i.flipX=function(){this.applyChange({flipX:!0})},i.flipY=function(){this.applyChange({flipY:!0})},i.fitX=function(){this.stop("target");var e=this.containerRect,t=this.contentRect,i=this.target;this.applyChange({panX:.5*e.width-(t.left+.5*t.fitWidth)-i.e,panY:.5*e.height-(t.top+.5*t.fitHeight)-i.f,scale:e.width/t.fitWidth/this.targetScale,originX:0,originY:0,ignoreBounds:!0})},i.fitY=function(){this.stop("target");var e=this.containerRect,t=this.contentRect,i=this.target;this.applyChange({panX:.5*e.width-(t.left+.5*t.fitWidth)-i.e,panY:.5*e.innerHeight-(t.top+.5*t.fitHeight)-i.f,scale:e.height/t.fitHeight/this.targetScale,originX:0,originY:0,ignoreBounds:!0})},i.toggleFS=function(){var e=this.container,t=this.cn("inFullscreen"),i=this.cn("htmlHasFullscreen");e.classList.toggle(t);var n=e.classList.contains(t);n?(document.documentElement.classList.add(i),document.addEventListener("keydown",this.onKeydown,!0)):(document.documentElement.classList.remove(i),document.removeEventListener("keydown",this.onKeydown,!0)),this.updateMetrics(),this.emit(n?"enterFS":"exitFS")},i.getMatrix=function(e){void 0===e&&(e=this.current);var t=e,i=t.a,n=t.b,o=t.c,a=t.d,r=t.e,s=t.f;return new DOMMatrix([i,n,o,a,r,s])},i.reset=function(e){if(this.state!==A.Init&&this.state!==A.Destroy){this.stop("current");for(var t,i=d(L);!(t=i()).done;){var n=t.value;this.target[n]=H[n]}this.target.a=this.minScale,this.target.d=this.minScale,this.clampTargetBounds(),this.isResting||(this.friction=void 0===e?this.option("friction"):e,this.state=A.Panning,this.requestTick())}},i.destroy=function(){this.stop(),this.state=A.Destroy,this.detachEvents(),this.detachObserver();for(var e=this.container,t=this.content,i=this.option("classes")||{},n=0,o=Object.values(i);n1e-5&&!this.isResting}},{key:"isContentLoading",get:function(){var e=this.content;return!!(e&&e instanceof HTMLImageElement)&&!e.complete}},{key:"isResting",get:function(){if(this.isBouncingX||this.isBouncingY)return!1;for(var e,t=d(L);!(e=t()).done;){var i=e.value,n="e"==i||"f"===i?1e-4:1e-5;if(Math.abs(this.target[i]-this.current[i])>n)return!1}return!(!this.ignoreBounds&&!this.checkBounds().inBounds)}}]),t}(k);Object.defineProperty(Z,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:R}),Object.defineProperty(Z,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:{}});var U,G=function(e,t){var i=!0;return function(){i&&(i=!1,e.apply(void 0,arguments),setTimeout((function(){i=!0}),t))}},K=function(e,t){var i=[];return e.childNodes.forEach((function(e){e.nodeType!==Node.ELEMENT_NODE||t&&!e.matches(t)||i.push(e)})),i};!function(e){e[e.Init=0]="Init",e[e.Ready=1]="Ready",e[e.Destroy=2]="Destroy"}(U||(U={}));var J=function(e){if("string"==typeof e||e instanceof HTMLElement)e={html:e};else{var t=e.thumb;void 0!==t&&("string"==typeof t&&(e.thumbSrc=t),t instanceof HTMLImageElement&&(e.thumbEl=t,e.thumbElSrc=t.src,e.thumbSrc=t.src),delete e.thumb)}return Object.assign({html:"",el:null,isDom:!1,class:"",customClass:"",index:-1,dim:0,gap:0,pos:0,transition:!1},e)},$=function(e){return void 0===e&&(e={}),Object.assign({index:-1,slides:[],dim:0,pos:-1},e)},Q=function(e){function t(t,i){var n;return n=e.call(this,i)||this,Object.defineProperty(c(n),"instance",{enumerable:!0,configurable:!0,writable:!0,value:t}),n}h(t,e);var i=t.prototype;return i.attach=function(){},i.detach=function(){},t}(O),ee=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(c(t),"isDynamic",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(c(t),"list",{enumerable:!0,configurable:!0,writable:!0,value:null}),t}h(t,e);var i=t.prototype;return i.onRefresh=function(){this.refresh()},i.build=function(){var e=this.list;if(!e){e=document.createElement("ul"),B(e,this.cn("list")),e.setAttribute("role","tablist");var t=this.instance.container;t.appendChild(e),B(t,this.cn("hasDots")),this.list=e}return e},i.refresh=function(){var e,t=this.instance.pages.length,i=Math.min(2,this.option("minCount")),n=Math.max(2e3,this.option("maxCount")),o=this.option("dynamicFrom");if(tn)this.cleanup();else{var a="number"==typeof o&&t>5&&t>=o,r=!this.list||this.isDynamic!==a||this.list.children.length!==t;r&&this.cleanup();var s=this.build();if(y(s,this.cn("isDynamic"),!!a),r)for(var l=0;l',dynamicFrom:11,maxCount:1/0,minCount:2}});var te="disabled",ie="next",ne="prev",oe=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(c(t),"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(t),"prev",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(t),"next",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(t),"isDom",{enumerable:!0,configurable:!0,writable:!0,value:!1}),t}h(t,e);var i=t.prototype;return i.onRefresh=function(){var e=this.instance,t=e.pages.length,i=e.page;if(t<2)this.cleanup();else{this.build();var n=this.prev,o=this.next;n&&o&&(n.removeAttribute(te),o.removeAttribute(te),e.isInfinite||(i<=0&&n.setAttribute(te,""),i>=t-1&&o.setAttribute(te,"")))}},i.addBtn=function(e){var t,i=this.instance,n=document.createElement("button");n.setAttribute("tabindex","0"),n.setAttribute("title",i.localize("{{"+e.toUpperCase()+"}}")),B(n,this.cn("button")+" "+this.cn(e===ie?"isNext":"isPrev"));var o,a=i.isRTL?e===ie?ne:ie:e;return n.innerHTML=i.localize(this.option(a+"Tpl")),n.dataset["carousel"+(o=e,o?o.match("^[a-z]")?o.charAt(0).toUpperCase()+o.substring(1):o:"")]="true",null===(t=this.container)||void 0===t||t.appendChild(n),n},i.build=function(){var e=this.instance.container,t=this.cn("container"),i=this.container,n=this.prev,o=this.next;i||(i=e.querySelector("."+t),this.isDom=!!i),i||(i=document.createElement("div"),B(i,t),e.appendChild(i)),this.container=i,o||(o=i.querySelector("[data-carousel-next]")),o||(o=this.addBtn(ie)),this.next=o,n||(n=i.querySelector("[data-carousel-prev]")),n||(n=this.addBtn(ne)),this.prev=n},i.cleanup=function(){this.isDom||(this.prev&&this.prev.remove(),this.next&&this.next.remove(),this.container&&this.container.remove()),this.prev=null,this.next=null,this.container=null,this.isDom=!1},i.attach=function(){this.instance.on(["refresh","change"],this.onRefresh)},i.detach=function(){this.instance.off(["refresh","change"],this.onRefresh),this.cleanup()},t}(Q);Object.defineProperty(oe,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{classes:{container:"f-carousel__nav",button:"f-button",isNext:"is-next",isPrev:"is-prev"},nextTpl:'',prevTpl:''}});var ae=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(c(t),"selectedIndex",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(t),"target",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(t),"nav",{enumerable:!0,configurable:!0,writable:!0,value:null}),t}h(t,e);var i=t.prototype;return i.addAsTargetFor=function(e){this.target=this.instance,this.nav=e,this.attachEvents()},i.addAsNavFor=function(e){this.nav=this.instance,this.target=e,this.attachEvents()},i.attachEvents=function(){var e=this.nav,t=this.target;e&&t&&(e.options.initialSlide=t.options.initialPage,e.state===U.Ready?this.onNavReady(e):e.on("ready",this.onNavReady),t.state===U.Ready?this.onTargetReady(t):t.on("ready",this.onTargetReady))},i.onNavReady=function(e){e.on("createSlide",this.onNavCreateSlide),e.on("Panzoom.click",this.onNavClick),e.on("Panzoom.touchEnd",this.onNavTouch),this.onTargetChange()},i.onTargetReady=function(e){e.on("change",this.onTargetChange),e.on("Panzoom.refresh",this.onTargetChange),this.onTargetChange()},i.onNavClick=function(e,t,i){this.onNavTouch(e,e.panzoom,i)},i.onNavTouch=function(e,t,i){var n,o;if(!(Math.abs(t.dragOffset.x)>3||Math.abs(t.dragOffset.y)>3)){var a=i.target,r=this.nav,s=this.target;if(r&&s&&a){var l=a.closest("[data-index]");if(i.stopPropagation(),i.preventDefault(),l){var c=parseInt(l.dataset.index||"",10)||0,u=s.getPageForSlide(c),h=r.getPageForSlide(c);r.slideTo(h),s.slideTo(u,{friction:(null===(o=null===(n=this.nav)||void 0===n?void 0:n.plugins)||void 0===o?void 0:o.Sync.option("friction"))||0}),this.markSelectedSlide(c)}}}},i.onNavCreateSlide=function(e,t){t.index===this.selectedIndex&&this.markSelectedSlide(t.index)},i.onTargetChange=function(){var e,t,i=this.target,n=this.nav;if(i&&n&&n.state===U.Ready&&i.state===U.Ready){var o=null===(t=null===(e=i.pages[i.page])||void 0===e?void 0:e.slides[0])||void 0===t?void 0:t.index,a=n.getPageForSlide(o);this.markSelectedSlide(o),n.slideTo(a,null===n.prevPage&&null===i.prevPage?{friction:0}:void 0)}},i.markSelectedSlide=function(e){var t=this.nav;t&&t.state===U.Ready&&(this.selectedIndex=e,[].concat(t.slides).map((function(t){t.el&&t.el.classList[t.index===e?"add":"remove"]("is-nav-selected")})))},i.attach=function(){var e=this,t=e.options.target,i=e.options.nav;t?e.addAsNavFor(t):i&&e.addAsTargetFor(i)},i.detach=function(){var e=this,t=e.nav,i=e.target;t&&(t.off("ready",e.onNavReady),t.off("createSlide",e.onNavCreateSlide),t.off("Panzoom.click",e.onNavClick),t.off("Panzoom.touchEnd",e.onNavTouch)),e.nav=null,i&&(i.off("ready",e.onTargetReady),i.off("refresh",e.onTargetChange),i.off("change",e.onTargetChange)),e.target=null},t}(Q);Object.defineProperty(ae,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{friction:.35}});var re={Navigation:oe,Dots:ee,Sync:ae},se="animationend",le="isSelected",ce="slide",ue=function(e){function t(t,i,n){var o;if(void 0===i&&(i={}),void 0===n&&(n={}),o=e.call(this)||this,Object.defineProperty(c(o),"bp",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(c(o),"lp",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(c(o),"userOptions",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(c(o),"userPlugins",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(c(o),"state",{enumerable:!0,configurable:!0,writable:!0,value:U.Init}),Object.defineProperty(c(o),"page",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(c(o),"prevPage",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(o),"container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(c(o),"viewport",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(o),"track",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(o),"slides",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(c(o),"pages",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(c(o),"panzoom",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(o),"inTransition",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),Object.defineProperty(c(o),"contentDim",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(c(o),"viewportDim",{enumerable:!0,configurable:!0,writable:!0,value:0}),"string"==typeof t&&(t=document.querySelector(t)),!t||!F(t))throw new Error("No Element found");return o.container=t,o.slideNext=G(o.slideNext.bind(c(o)),150),o.slidePrev=G(o.slidePrev.bind(c(o)),150),o.userOptions=i,o.userPlugins=n,queueMicrotask((function(){o.processOptions()})),c(o)}h(t,e);var i=t.prototype;return i.processOptions=function(){var i,n,o=this,a=M({},t.defaults,this.userOptions),r="",s=a.breakpoints;if(s&&C(s))for(var l=0,c=Object.entries(s);l2?n-2:0),a=2;a.05||s>=n)&&(e.push($()),a=e.length-1,r=0,s=0),e[a].slides.push(c),r+=c.dim+c.gap,s++}return e},i.processPages=function(){var e=this.pages,t=this.contentDim,i=this.viewportDim,n=this.isInfinite,o=this.option("center"),a=this.option("fill"),r=a&&o&&t>i&&!n;if(e.forEach((function(e,n){var a;e.index=n,e.pos=(null===(a=e.slides[0])||void 0===a?void 0:a.pos)||0,e.dim=0;for(var s,l=d(e.slides.entries());!(s=l()).done;){var c=s.value,u=c[0],h=c[1];e.dim+=h.dim,u=t-.5*i?e.pos=t-i:o&&(e.pos+=-.5*(i-e.dim))})),e.forEach((function(e){a&&!n&&t>i&&(e.pos=Math.max(e.pos,0),e.pos=Math.min(e.pos,t-i)),e.pos=v(e.pos,1e3),e.dim=v(e.dim,1e3),Math.abs(e.pos)<=.1&&(e.pos=0)})),n)return e;var s,l=[];return e.forEach((function(e){var t=Object.assign({},e);s&&t.pos===s.pos?(s.dim+=t.dim,s.slides=[].concat(s.slides,t.slides)):(t.index=l.length,s=t,l.push(t))})),l},i.getPageFromIndex=function(e){void 0===e&&(e=0);var t=this.pages.length;return e=parseInt((e||0).toString())||0,this.isInfinite?(e%t+t)%t:Math.max(Math.min(e,t-1),0)},i.getSlideMetrics=function(e){var t,i,n,o=this.isHorizontal?"width":"height",a=0,r=e.el,s=!(!r||r.parentNode);if(r?a=parseFloat(r.dataset[o]||"")||0:((r=document.createElement("div")).style.visibility="hidden",(this.track||document.body).prepend(r)),B(r,this.cn(ce)+" "+e.class+" "+e.customClass),a)r.style[o]=a+"px",r.style["width"===o?"height":"width"]="";else{s&&(this.track||document.body).prepend(r),a=r.getBoundingClientRect()[o]*Math.max(1,(null===(t=window.visualViewport)||void 0===t?void 0:t.scale)||1);var l=r[this.isHorizontal?"offsetWidth":"offsetHeight"];l-1>a&&(a=l)}var c=getComputedStyle(r);return"content-box"===c.boxSizing&&(this.isHorizontal?(a+=parseFloat(c.paddingLeft)||0,a+=parseFloat(c.paddingRight)||0):(a+=parseFloat(c.paddingTop)||0,a+=parseFloat(c.paddingBottom)||0)),n=parseFloat(c[this.isHorizontal?"marginRight":"marginBottom"])||0,s?null===(i=r.parentElement)||void 0===i||i.removeChild(r):e.el||r.remove(),{dim:v(a,1e3),gap:v(n,1e3)}},i.getBounds=function(){var e=this.isInfinite,t=this.isRTL,i=this.isHorizontal,n=this.pages,o={min:0,max:0};if(e)o={min:-1/0,max:1/0};else if(n.length){var a=n[0].pos,r=n[n.length-1].pos;o=t&&i?{min:a,max:r}:{min:-1*r,max:-1*a}}return{x:i?o:{min:0,max:0},y:i?{min:0,max:0}:o}},i.repositionSlides=function(){var e,t=this.isHorizontal,i=this.isRTL,n=this.isInfinite,o=this.viewport,a=this.viewportDim,r=this.contentDim,s=this.page,l=this.pages,c=this.slides,u=this.panzoom,h=0,f=0,p=0,g=0;u?g=-1*u.current[this.axis]:l[s]&&(g=l[s].pos||0),e=t?i?"right":"left":"top",i&&t&&(g*=-1);for(var m,b=d(c);!(m=b()).done;){var y=m.value,w=y.el;w?("top"===e?(w.style.right="",w.style.left=""):w.style.top="",y.index!==h?w.style[e]=0===f?"":v(f,1e3)+"px":w.style[e]="",p+=y.dim+y.gap,h++):f+=y.dim+y.gap}if(n&&p&&o){var x=getComputedStyle(o),E="padding",S=t?"Right":"Bottom",P=parseFloat(x[E+(t?"Left":"Top")]);g-=P,a+=P,a+=parseFloat(x[E+S]);for(var C,M=d(c);!(C=M()).done;){var T=C.value;T.el&&(v(T.pos)v(r-a)&&(T.el.style[e]=v(f+p,1e3)+"px"),v(T.pos+T.gap)>=v(r-a)&&v(T.pos)>v(g+a)&&v(g)1&&(O=l[k[0]],A=l[k[1]]),O&&A)for(var L,z=0,R=d(c);!(L=R()).done;){var I=L.value;I.el?this.inTransition.has(I.index)&&O.slides.indexOf(I)<0&&(I.el.style[e]=v(z+(O.pos-A.pos),1e3)+"px"):z+=I.dim+I.gap}},i.createSlideEl=function(e){var t=this.track,i=this.slides;if(t&&e&&(!e.el||!e.el.parentNode)){var n=e.el||document.createElement("div");B(n,this.cn(ce)),B(n,e.class),B(n,e.customClass);var o=e.html;o&&(o instanceof HTMLElement?n.appendChild(o):n.innerHTML=e.html+"");var a=[];i.forEach((function(e,t){e.el&&a.push(t)}));var r=e.index,s=null;a.length&&(s=i[a.reduce((function(e,t){return Math.abs(t-r)1)return!1;var u=e>r?1:-1;this.isInfinite&&(0===r&&e===s.length-1&&(u=-1),r===s.length-1&&0===e&&(u=1));var h=s[c].pos*(this.isRTL?1:-1);if(r===c&&Math.abs(h-l.target[this.axis])<1)return!1;this.clearTransitions();var d=l.isResting;B(this.container,this.cn("inTransition"));var f=(null===(o=s[r])||void 0===o?void 0:o.slides[0])||null,v=(null===(a=s[c])||void 0===a?void 0:a.slides[0])||null;this.inTransition.add(v.index),this.createSlideEl(v);var p=f.el,g=v.el;d||t===ce||(t="fadeFast",p=null);var m=this.isRTL?"next":"prev",b=this.isRTL?"prev":"next";return p&&(this.inTransition.add(f.index),f.transition=t,p.addEventListener(se,this.onAnimationEnd),p.classList.add("f-"+t+"Out","to-"+(u>0?b:m))),g&&(v.transition=t,g.addEventListener(se,this.onAnimationEnd),g.classList.add("f-"+t+"In","from-"+(u>0?m:b))),l.current[this.axis]=h,l.target[this.axis]=h,l.requestTick(),this.onChange(c),!0},i.manageSlideVisiblity=function(){for(var e,t=new Set,i=new Set,n=this.getVisibleSlides(parseFloat(this.option("preload",0)+"")||0),o=d(this.slides);!(e=o()).done;){var a=e.value;n.has(a)?t.add(a):i.add(a)}for(var r,s=d(this.inTransition);!(r=s()).done;){var l=r.value;t.add(this.slides[l])}for(var c,u=d(t);!(c=u()).done;){var h=c.value;this.createSlideEl(h),this.lazyLoadSlide(h)}for(var f,v=d(i);!(f=v()).done;){var p=f.value;t.has(p)||this.removeSlideEl(p)}this.markSelectedSlides(),this.repositionSlides()},i.markSelectedSlides=function(){if(this.pages[this.page]&&this.pages[this.page].slides){var e="aria-hidden",t=this.cn(le);if(t)for(var i,n=d(this.slides);!(i=n()).done;){var o=i.value,a=o.el;a&&(a.dataset.index=""+o.index,a.classList.contains("f-thumbs__slide")?this.getVisibleSlides(0).has(o)?a.removeAttribute(e):a.setAttribute(e,"true"):this.pages[this.page].slides.includes(o)?(a.classList.contains(t)||(B(a,t),this.emit("selectSlide",o)),a.removeAttribute(e)):(a.classList.contains(t)&&(j(a,t),this.emit("unselectSlide",o)),a.setAttribute(e,"true")))}}},i.flipInfiniteTrack=function(){var e=this.axis,t=this.isHorizontal,i=this.isInfinite,n=this.isRTL,o=this.viewportDim,a=this.contentDim,r=this.panzoom;if(r&&i){var s=r.current[e],l=r.target[e]-s,c=0,u=.5*o;n&&t?(s<-u&&(c=-1,s+=a),s>a-u&&(c=1,s-=a)):(s>u&&(c=1,s-=a),s<-a+u&&(c=-1,s+=a)),c&&(r.current[e]=s,r.target[e]=s+l)}},i.lazyLoadImg=function(e,t){var i=this,n=this,o="f-fadeIn",a="is-preloading",r=!1,s=null,l=function(){r||(r=!0,s&&(s.remove(),s=null),j(t,a),t.complete&&(B(t,o),setTimeout((function(){j(t,o)}),350)),i.option("adaptiveHeight")&&e.el&&i.pages[i.page].slides.indexOf(e)>-1&&(n.updateMetrics(),n.setViewportHeight()),i.emit("load",e))};B(t,a),t.src=t.dataset.lazySrcset||t.dataset.lazySrc||"",delete t.dataset.lazySrc,delete t.dataset.lazySrcset,t.addEventListener("error",(function(){l()})),t.addEventListener("load",(function(){l()})),setTimeout((function(){var i=t.parentNode;i&&e.el&&(t.complete?l():r||(s=m(D),i.insertBefore(s,t)))}),300)},i.lazyLoadSlide=function(e){var t=e&&e.el;if(t){var i=new Set,n=Array.from(t.querySelectorAll("[data-lazy-src],[data-lazy-srcset]"));t.dataset.lazySrc&&n.push(t),n.map((function(e){e instanceof HTMLImageElement?i.add(e):e instanceof HTMLElement&&e.dataset.lazySrc&&(e.style.backgroundImage="url('"+e.dataset.lazySrc+"')",delete e.dataset.lazySrc)}));for(var o,a=d(i);!(o=a()).done;){var r=o.value;this.lazyLoadImg(e,r)}}},i.onAnimationEnd=function(e){var t,i=e.target,n=i?parseInt(i.dataset.index||"",10)||0:-1,o=this.slides[n],a=e.animationName;if(i&&o&&a){var r=!!this.inTransition.has(n)&&o.transition;r&&a.substring(0,r.length+2)==="f-"+r&&this.inTransition.delete(n),this.inTransition.size||this.clearTransitions(),n===this.page&&(null===(t=this.panzoom)||void 0===t?void 0:t.isResting)&&this.emit("settle")}},i.onDecel=function(e,t,i,n,o){if(void 0===t&&(t=0),void 0===i&&(i=0),void 0===n&&(n=0),void 0===o&&(o=0),this.option("dragFree"))this.setPageFromPosition();else{var a,r=this.isRTL,s=this.isHorizontal,l=this.axis,c=this.pages,u=c.length,h=Math.abs(Math.atan2(i,t)/(Math.PI/180));if(a=h>45&&h<135?s?0:i:s?t:0,u){var d=this.page,f=r&&s?1:-1,v=e.current[l]*f,p=this.getPageFromPosition(v).pageIndex;Math.abs(a)>5?(c[d].dim=e&&(this.page+=f.length),this.updateMetrics(),l){var w,x=(null===(a=this.pages[this.page])||void 0===a?void 0:a.pos)||0,E=(null===(r=this.pages[this.page])||void 0===r?void 0:r.dim)||0,S=this.pages.length||1,P=this.isRTL?u-E:E-u,C=this.isRTL?c-x:x-c;h&&1===S?(e<=this.page&&(l.current[this.axis]-=P,l.target[this.axis]-=P),l.panTo(((w={})[this.isHorizontal?"x":"y"]=-1*x,w))):C&&e<=this.page&&(l.target[this.axis]-=C,l.current[this.axis]-=C,l.requestTick())}for(var M=0,T=f;Mthis.page?-1:1;var s=-1*o.current.e,l=v((s-r.pos)/(1*r.dim),1e3),c=l,u=l;this.isInfinite&&!0!==i&&(c=v((s-r.pos+a)/(1*r.dim),1e3),u=v((s-r.pos-a)/(1*r.dim),1e3));var h=[l,c,u].reduce((function(e,t){return Math.abs(t)1?1:h<-1?-1:h},i.setViewportHeight=function(){var e=this.page,t=this.pages,i=this.viewport,n=this.isHorizontal;if(i&&t[e]){var o=0;n&&this.track&&(this.track.style.height="auto",t[e].slides.forEach((function(e){e.el&&(o=Math.max(o,e.el.offsetHeight))}))),i.style.height=o?o+"px":""}},i.getPageForSlide=function(e){for(var t,i=d(this.pages);!(t=i()).done;)for(var n,o=t.value,a=d(o.slides);!(n=a()).done;)if(n.value.index===e)return o.index;return-1},i.getVisibleSlides=function(e){var t;void 0===e&&(e=0);var i=new Set,n=this.panzoom,o=this.contentDim,a=this.viewportDim,r=this.pages,s=this.page;if(a){o=o+(null===(t=this.slides[this.slides.length-1])||void 0===t?void 0:t.gap)||0;var l=0;l=n&&n.state!==A.Init&&n.state!==A.Destroy?-1*n.current[this.axis]:r[s]&&r[s].pos||0,this.isInfinite&&(l-=Math.floor(l/o)*o),this.isRTL&&this.isHorizontal&&(l*=-1);for(var c,u=l-a*e,h=l+a*(e+1),f=this.isInfinite?[-1,0,1]:[0],v=d(this.slides);!(c=v()).done;)for(var p,g=c.value,m=d(f);!(p=m()).done;){var b=p.value,y=g.pos+b*o,w=y+g.dim+g.gap;yu&&i.add(g)}}return i},i.getPageFromPosition=function(e){var t,i=this.viewportDim,n=this.contentDim,o=this.slides,a=this.pages,r=this.panzoom,s=a.length,l=o.length,c=o[0],u=o[l-1],h=this.option("center"),d=0,f=void 0===e?-1*((null==r?void 0:r.target[this.axis])||0):e;h&&(f+=.5*i),this.isInfinite?(fu.pos+u.dim+.5*u.gap&&(f-=n,d=1)):f=Math.max(c.pos||0,Math.min(f,u.pos));var v=u,p=o.find((function(e){var t=e.pos-.5*v.gap,i=e.pos+e.dim+.5*e.gap;return v=e,f>=t&&f=2&&o&&t+o.dim>=i&&(e=this.option("infinite")),e}},{key:"isRTL",get:function(){return"rtl"===this.option("direction")}},{key:"isHorizontal",get:function(){return"x"===this.option("axis")}}]),t}(k);Object.defineProperty(ue,"Panzoom",{enumerable:!0,configurable:!0,writable:!0,value:Z}),Object.defineProperty(ue,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{viewport:null,track:null,enabled:!0,slides:[],axis:"x",transition:"fade",preload:1,slidesPerPage:"auto",initialPage:0,friction:.12,Panzoom:{decelFriction:.12},center:!0,infinite:!0,fill:!0,dragFree:!1,adaptiveHeight:!1,direction:"ltr",classes:{container:"f-carousel",viewport:"f-carousel__viewport",track:"f-carousel__track",slide:"f-carousel__slide",isLTR:"is-ltr",isRTL:"is-rtl",isHorizontal:"is-horizontal",isVertical:"is-vertical",inTransition:"in-transition",isSelected:"is-selected"},l10n:{NEXT:"Next slide",PREV:"Previous slide",GOTO:"Go to slide #%d"}}}),Object.defineProperty(ue,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:re});var he,de,fe,ve=function(e){if(!F(e))return 0;var t=window.scrollY,i=window.innerHeight,n=t+i,o=e.getBoundingClientRect(),a=o.y+t,r=o.height,s=a+r;if(t>s||ns)return 100;if(an)return 100;var l=r;an&&(l-=s-n);var c=l/i*100;return Math.round(c)},pe=!("undefined"==typeof window||!window.document||!window.document.createElement),ge=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden]):not(.fancybox-focus-guard)","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not([tabindex^="-"]):not([disabled]):not([aria-hidden])'].join(","),me=function(e){if(e&&pe){void 0===he&&document.createElement("div").focus({get preventScroll(){return he=!0,!1}});try{if(he)e.focus({preventScroll:!0});else{var t=window.scrollY||document.body.scrollTop,i=window.scrollX||document.body.scrollLeft;e.focus(),document.body.scrollTo({top:t,left:i,behavior:"auto"})}}catch(e){}}},be=function(){var e,t=document,i="",n="",o="";return t.fullscreenEnabled?(i="requestFullscreen",n="exitFullscreen",o="fullscreenElement"):t.webkitFullscreenEnabled&&(i="webkitRequestFullscreen",n="webkitExitFullscreen",o="webkitFullscreenElement"),i&&(e={request:function(e){return void 0===e&&(e=t.documentElement),"webkitRequestFullscreen"===i?e[i](Element.ALLOW_KEYBOARD_INPUT):e[i]()},exit:function(){return t[o]&&t[n]()},isFullscreen:function(){return t[o]}}),e},ye={animated:!0,autoFocus:!0,backdropClick:"close",Carousel:{classes:{container:"fancybox__carousel",viewport:"fancybox__viewport",track:"fancybox__track",slide:"fancybox__slide"}},closeButton:"auto",closeExisting:!1,commonCaption:!1,compact:function(){return window.matchMedia("(max-width: 578px), (max-height: 578px)").matches},contentClick:"toggleZoom",contentDblClick:!1,defaultType:"image",defaultDisplay:"flex",dragToClose:!0,Fullscreen:{autoStart:!1},groupAll:!1,groupAttr:"data-fancybox",hideClass:"f-fadeOut",hideScrollbar:!0,idle:3500,keyboard:{Escape:"close",Delete:"close",Backspace:"close",PageUp:"next",PageDown:"prev",ArrowUp:"prev",ArrowDown:"next",ArrowRight:"next",ArrowLeft:"prev"},l10n:Object.assign(Object.assign({},z),{CLOSE:"Close",NEXT:"Next",PREV:"Previous",MODAL:"You can close this modal content with the ESC key",ERROR:"Something Went Wrong, Please Try Again Later",IMAGE_ERROR:"Image Not Found",ELEMENT_NOT_FOUND:"HTML Element Not Found",AJAX_NOT_FOUND:"Error Loading AJAX : Not Found",AJAX_FORBIDDEN:"Error Loading AJAX : Forbidden",IFRAME_ERROR:"Error Loading Page",TOGGLE_ZOOM:"Toggle zoom level",TOGGLE_THUMBS:"Toggle thumbnails",TOGGLE_SLIDESHOW:"Toggle slideshow",TOGGLE_FULLSCREEN:"Toggle full-screen mode",DOWNLOAD:"Download"}),parentEl:null,placeFocusBack:!0,showClass:"f-zoomInUp",startIndex:0,tpl:{closeButton:'',main:''},trapFocus:!0,wheel:"zoom"};!function(e){e[e.Init=0]="Init",e[e.Ready=1]="Ready",e[e.Closing=2]="Closing",e[e.CustomClosing=3]="CustomClosing",e[e.Destroy=4]="Destroy"}(de||(de={})),function(e){e[e.Loading=0]="Loading",e[e.Opening=1]="Opening",e[e.Ready=2]="Ready",e[e.Closing=3]="Closing"}(fe||(fe={}));var we="",xe=!1,Ee=!1,Se=null,Pe=function(){var e="",t="",i=Ft.getInstance();if(i){var n=i.carousel,o=i.getSlide();if(n&&o){var a=o.slug||void 0,r=o.triggerEl||void 0;!(t=a||i.option("slug")||"")&&r&&r.dataset&&(t=r.dataset.fancybox||""),t&&"true"!==t&&(e="#"+t+(!a&&n.slides.length>1?"-"+(o.index+1):""))}}return{hash:e,slug:t,index:1}},Ce=function(){var e=new URL(document.URL).hash,t=e.slice(1).split("-"),i=t[t.length-1],n=i&&/^\+?\d+$/.test(i)&&parseInt(t.pop()||"1",10)||1;return{hash:e,slug:t.join("-"),index:n}},Me=function(){var e=Ce(),t=e.slug,i=e.index;if(t){var n=document.querySelector('[data-slug="'+t+'"]');if(n&&n.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})),!Ft.getInstance()){var o=document.querySelectorAll('[data-fancybox="'+t+'"]');o.length&&(n=o[i-1])&&n.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0}))}}},Te=function(){if(!1!==Ft.defaults.Hash){var e=Ft.getInstance();if(!1!==(null==e?void 0:e.options.Hash)){var t=Ce(),i=t.slug,n=t.index,o=Pe().slug;e&&(i===o?e.jumpTo(n-1):(xe=!0,e.close())),Me()}}},Oe=function(){Se&&clearTimeout(Se),queueMicrotask((function(){Te()}))},Ae=function(){window.addEventListener("hashchange",Oe,!1),setTimeout((function(){Te()}),500)};pe&&(/complete|interactive|loaded/.test(document.readyState)?Ae():document.addEventListener("DOMContentLoaded",Ae));var ke="is-zooming-in",Le=function(e){function t(){return e.apply(this,arguments)||this}h(t,e);var i=t.prototype;return i.onCreateSlide=function(e,t,i){var n=this.instance.optionFor(i,"src")||"";i.el&&"image"===i.type&&"string"==typeof n&&this.setImage(i,n)},i.onRemoveSlide=function(e,t,i){i.panzoom&&i.panzoom.destroy(),i.panzoom=void 0,i.imageEl=void 0},i.onChange=function(e,t,i,n){j(this.instance.container,ke);for(var o,a=d(t.slides);!(o=a()).done;){var r=o.value,s=r.panzoom;s&&r.index!==i&&s.reset(.35)}},i.onClose=function(){var e,t=this.instance,i=t.container,n=t.getSlide();if(i&&i.parentElement&&n){var o=n.el,a=n.contentEl,r=n.panzoom,s=n.thumbElSrc;if(o&&s&&a&&r&&!r.isContentLoading&&r.state!==A.Init&&r.state!==A.Destroy){r.updateMetrics();var l=this.getZoomInfo(n);if(l){this.instance.state=de.CustomClosing,i.classList.remove(ke),i.classList.add("is-zooming-out"),a.style.backgroundImage="url('"+s+"')";var c=i.getBoundingClientRect();1===((null===(e=window.visualViewport)||void 0===e?void 0:e.scale)||1)&&Object.assign(i.style,{position:"absolute",top:i.offsetTop+window.scrollY+"px",left:i.offsetLeft+window.scrollX+"px",bottom:"auto",right:"auto",width:c.width+"px",height:c.height+"px",overflow:"hidden"});var u=l.x,h=l.y,d=l.scale,f=l.opacity;if(f){var v=function(e,t,i,n){var o=t-e;return function(t){return 1+((t-e)/o*-1||0)}}(r.scale,d);r.on("afterTransform",(function(){a.style.opacity=v(r.scale)+""}))}r.on("endAnimation",(function(){t.destroy()})),r.target.a=d,r.target.b=0,r.target.c=0,r.target.d=d,r.panTo({x:u,y:h,scale:d,friction:f?.2:.33,ignoreBounds:!0}),r.isResting&&t.destroy()}}}},i.setImage=function(e,t){var i=this,n=this.instance;e.src=t,this.process(e,t).then((function(t){var o=e.contentEl,a=e.imageEl,r=e.thumbElSrc,s=e.el;if(!n.isClosing()&&o&&a){o.offsetHeight;var l,c=!!n.isOpeningSlide(e)&&i.getZoomInfo(e);if(i.option("protected")&&s){s.addEventListener("contextmenu",(function(e){e.preventDefault()}));var u=document.createElement("div");B(u,"fancybox-protected"),o.appendChild(u)}if(r&&c){var h=t.contentRect,d=Math.max(h.fullWidth,h.fullHeight),f=null;!c.opacity&&d>1200&&(f=document.createElement("img"),B(f,"fancybox-ghost"),f.src=r,o.appendChild(f));var v=function(){f&&(B(f,"f-fadeFastOut"),setTimeout((function(){f&&(f.remove(),f=null)}),200))};(l=r,new Promise((function(e,t){var i=new Image;i.onload=e,i.onerror=t,i.src=l}))).then((function(){n.hideLoading(e),e.state=fe.Opening,i.instance.emit("reveal",e),i.zoomIn(e).then((function(){v(),i.instance.done(e)}),(function(){})),f&&setTimeout((function(){v()}),d>2500?800:200)}),(function(){n.hideLoading(e),n.revealContent(e)}))}else{var p=i.optionFor(e,"initialSize"),g=i.optionFor(e,"zoom"),m={event:n.prevMouseMoveEvent||n.options.event,friction:g?.12:0},b=n.optionFor(e,"showClass")||void 0,y=!0;n.isOpeningSlide(e)&&("full"===p?t.zoomToFull(m):"cover"===p?t.zoomToCover(m):"max"===p?t.zoomToMax(m):y=!1,t.stop("current")),y&&b&&(b=t.isDragging?"f-fadeIn":""),n.hideLoading(e),n.revealContent(e,b)}}}),(function(){n.setError(e,"{{IMAGE_ERROR}}")}))},i.process=function(e,t){var i=this;return new Promise((function(n,o){var a,r=i.instance,s=e.el;r.clearContent(e),r.showLoading(e);var l=i.optionFor(e,"content");if("string"==typeof l&&(l=m(l)),!l||!F(l)){if((l=document.createElement("img"))instanceof HTMLImageElement){var c,u=e.caption;c="string"==typeof u&&u?u.replace(/<[^>]+>/gi,"").substring(0,1e3):"Image "+(e.index+1)+" of "+((null===(a=r.carousel)||void 0===a?void 0:a.pages.length)||1),l.src=t||"",l.alt=c,l.draggable=!1,e.srcset&&l.setAttribute("srcset",e.srcset),i.instance.isOpeningSlide(e)&&(l.fetchPriority="high")}e.sizes&&l.setAttribute("sizes",e.sizes)}B(l,"fancybox-image"),e.imageEl=l,r.setContent(e,l,!1),e.panzoom=new Z(s,M({transformParent:!0},i.option("Panzoom")||{},{content:l,width:function(t,i){return r.optionFor(e,"width","auto",i)||"auto"},height:function(t,i){return r.optionFor(e,"height","auto",i)||"auto"},wheel:function(){var e=r.option("wheel");return("zoom"===e||"pan"==e)&&e},click:function(t,i){var n,o;if(r.isCompact||r.isClosing())return!1;if(e.index!==(null===(n=r.getSlide())||void 0===n?void 0:n.index))return!1;if(i){var a=i.composedPath()[0];if(["A","BUTTON","TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].includes(a.nodeName))return!1}var s=!i||i.target&&(null===(o=e.contentEl)||void 0===o?void 0:o.contains(i.target));return r.option(s?"contentClick":"backdropClick")||!1},dblClick:function(){return r.isCompact?"toggleZoom":r.option("contentDblClick")||!1},spinner:!1,panOnlyZoomed:!0,wheelLimit:1/0,on:{ready:function(e){n(e)},error:function(){o()},destroy:function(){o()}}}))}))},i.zoomIn=function(e){var t=this;return new Promise((function(i,n){var o=t.instance,a=o.container,r=e.panzoom,s=e.contentEl,l=e.el;r&&r.updateMetrics();var c=t.getZoomInfo(e);if(c&&l&&s&&r&&a){var u=c.x,h=c.y,d=c.scale,f=c.opacity,v=function(){e.state!==fe.Closing&&(f&&(s.style.opacity=Math.max(Math.min(1,1-(1-r.scale)/(1-d)),0)+""),r.scale>=1&&r.scale>r.targetScale-.1&&i(r))},p=function e(t){(t.scale<.99||t.scale>1.01)&&!t.isDragging||(j(a,ke),s.style.opacity="",t.off("endAnimation",e),t.off("touchStart",e),t.off("afterTransform",v),i(t))};r.on("endAnimation",p),r.on("touchStart",p),r.on("afterTransform",v),r.on(["error","destroy"],(function(){n()})),r.panTo({x:u,y:h,scale:d,friction:0,ignoreBounds:!0}),r.stop("current");var g={event:"mousemove"===r.panMode?o.prevMouseMoveEvent||o.options.event:void 0},m=t.optionFor(e,"initialSize");B(a,ke),o.hideLoading(e),"full"===m?r.zoomToFull(g):"cover"===m?r.zoomToCover(g):"max"===m?r.zoomToMax(g):r.reset(.172)}else n()}))},i.getZoomInfo=function(e){var t=e.el,i=e.imageEl,n=e.thumbEl,o=e.panzoom,a=this.instance,r=a.container;if(!t||!i||!n||!o||ve(n)<3||!this.optionFor(e,"zoom")||!r||a.state===de.Destroy)return!1;if("0"===getComputedStyle(r).getPropertyValue("--f-images-zoom"))return!1;var s=window.visualViewport||null;if(1!==(s?s.scale:1))return!1;var l=n.getBoundingClientRect(),c=l.top,u=l.left,h=l.width,d=l.height,f=o.contentRect,v=f.top,p=f.left,g=f.fitWidth,m=f.fitHeight;if(!(h&&d&&g&&m))return!1;var b=o.container.getBoundingClientRect(),y=-1*((p+=b.left)+.5*g-(u+.5*h)),w=-1*((v+=b.top)+.5*m-(c+.5*d)),x=h/g,E=this.option("zoomOpacity")||!1;return"auto"===E&&(E=Math.abs(h/d-g/m)>.1),{x:y,y:w,scale:x,opacity:E}},i.attach=function(){var e=this,t=e.instance;t.on("Carousel.change",e.onChange),t.on("Carousel.createSlide",e.onCreateSlide),t.on("Carousel.removeSlide",e.onRemoveSlide),t.on("close",e.onClose)},i.detach=function(){var e=this,t=e.instance;t.off("Carousel.change",e.onChange),t.off("Carousel.createSlide",e.onCreateSlide),t.off("Carousel.removeSlide",e.onRemoveSlide),t.off("close",e.onClose)},t}(Q);Object.defineProperty(Le,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{initialSize:"fit",Panzoom:{maxScale:1},protected:!1,zoom:!0,zoomOpacity:"auto"}}),"function"==typeof SuppressedError&&SuppressedError;var ze="html",Re="image",Ie="map",De="youtube",Fe="vimeo",je="html5video",Be=function(e,t){void 0===t&&(t={});for(var i=new URL(e),n=new URLSearchParams(i.search),o=new URLSearchParams,a=0,r=[].concat(n,Object.entries(t));a0?"svembed":"embed"),i=Ie):(n=t.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:maps\/search\/)(.*)/i))&&(e.src="https://maps.google."+n[1]+"/maps?q="+n[2].replace("query=","q=").replace("api=1","")+"&output=embed",i=Ie),i=i||this.instance.option("defaultType"),e.type=i,i===Re&&(e.thumbSrc=e.thumbSrc||e.src)}},i.setContent=function(e){var t=this.instance.optionFor(e,"src")||"";if(e&&e.type&&t){switch(e.type){case ze:this.instance.setContent(e,t);break;case je:var i=this.option("videoTpl");i&&this.instance.setContent(e,i.replace(/\{\{src\}\}/gi,t+"").replace(/\{\{format\}\}/gi,this.optionFor(e,"videoFormat")||"").replace(/\{\{poster\}\}/gi,e.poster||e.thumbSrc||""));break;case"inline":case"clone":this.setInlineContent(e);break;case"ajax":this.loadAjaxContent(e);break;case"pdf":case Ie:case De:case Fe:e.preload=!1;case"iframe":this.setIframeContent(e)}this.setAspectRatio(e)}},i.setAspectRatio=function(e){var t=e.contentEl;if(e.el&&t&&e.type&&[De,Fe,je].includes(e.type)){var i,n=e.width||"auto",o=e.height||"auto";if("auto"===n||"auto"===o){var a=((i=this.optionFor(e,"videoRatio"))+"").match(/(\d+)\s*\/\s?(\d+)/);i=a&&a.length>2?parseFloat(a[1])/parseFloat(a[2]):parseFloat(i+"")}else n&&o&&(i=n/o);if(i){t.style.aspectRatio="",t.style.width="",t.style.height="",t.offsetHeight;var r=t.getBoundingClientRect(),s=r.width||1,l=r.height||1;t.style.aspectRatio=i+"",i\n Sorry, your browser doesn\'t support embedded videos.',videoFormat:"",vimeo:{byline:1,color:"00adef",controls:1,dnt:1,muted:0},youtube:{controls:1,enablejsapi:1,nocookie:1,rel:0,fs:1}}});var _e="play",We="pause",Xe="ready",qe=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(c(t),"state",{enumerable:!0,configurable:!0,writable:!0,value:Xe}),Object.defineProperty(c(t),"inHover",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(c(t),"timer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(t),"progressBar",{enumerable:!0,configurable:!0,writable:!0,value:null}),t}h(t,e);var i=t.prototype;return i.onReady=function(e){this.option("autoStart")&&(e.isInfinite||e.page',type:"modern"};!function(e){e[e.Init=0]="Init",e[e.Ready=1]="Ready",e[e.Hidden=2]="Hidden"}(Ve||(Ve={}));var Ue="isResting",Ge="thumbWidth",Ke="thumbHeight",Je="thumbClipWidth",$e=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(c(t),"type",{enumerable:!0,configurable:!0,writable:!0,value:"modern"}),Object.defineProperty(c(t),"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(t),"track",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(t),"carousel",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(t),"thumbWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(c(t),"thumbClipWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(c(t),"thumbHeight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(c(t),"thumbGap",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(c(t),"thumbExtraGap",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(c(t),"state",{enumerable:!0,configurable:!0,writable:!0,value:Ve.Init}),t}h(t,e);var i=t.prototype;return i.onInitSlide=function(e,t){var i=t.el?t.el.dataset:void 0;i&&(t.thumbSrc=i.thumbSrc||t.thumbSrc||"",t[Je]=parseFloat(i[Je]||"")||t[Je]||0,t[Ke]=parseFloat(i.thumbHeight||"")||t[Ke]||0),this.addSlide(t)},i.onInitSlides=function(){this.build()},i.onChange=function(){var e;if(this.isModern){var t=this.container,i=this.instance,n=i.panzoom,o=this.carousel,a=o?o.panzoom:null,r=i.page;if(n&&o&&a){if(n.isDragging){j(t,this.cn(Ue));var s=(null===(e=o.pages[r])||void 0===e?void 0:e.pos)||0;s+=i.getProgress(r)*(this[Je]+this.thumbGap);var l=a.getBounds();-1*s>l.x.min&&-1*s-1)){var l=this[Je],c=e.clientX,u=e.clientY,h=a(c-l,u),d=h[0],f=h[1],v=a(c+l,u),p=v[0],g=v[1];f&&g?(s=Math.abs(c-f.getBoundingClientRect().right)-1&&i[s]&&t.slideTo(s)}},i.getShift=function(e){var t,i=this,n=i.instance,o=i.carousel;if(!n||!o)return 0;var a=i[Ge],r=i[Je],s=i.thumbGap,l=i.thumbExtraGap;if(!(null===(t=o.slides[e])||void 0===t?void 0:t.el))return 0;var c=.5*(a-r),u=n.pages.length-1,h=n.getProgress(0),d=n.getProgress(u),f=n.getProgress(e,!1,!0),v=0,p=c+l+s,g=h<0&&h>-1,m=d>0&&d<1;return 0===e?(v=p*Math.abs(h),m&&1===h&&(v-=p*Math.abs(d))):e===u?(v=p*Math.abs(d)*-1,g&&-1===d&&(v+=p*Math.abs(h))):g||m?(v=-1*p,v+=p*Math.abs(h),v+=p*(1-Math.abs(d))):v=p*f,v},i.setProps=function(e){var t,i=this;if(i.isModern){var n=i.instance,o=i.carousel;if(n&&o){var a=null===(t=o.slides[e])||void 0===t?void 0:t.el;if(a&&a.childNodes.length){var r=v(1-Math.abs(n.getProgress(e))),s=v(i.getShift(e));a.style.setProperty("--progress",r?r+"":""),a.style.setProperty("--shift",s+"")}}}},i.shiftModern=function(){var e=this;if(e.isModern){var t=e.instance,i=e.track,n=t.panzoom,o=e.carousel;if(t&&i&&n&&o&&n.state!==A.Init&&n.state!==A.Destroy){for(var a,r=d(t.slides);!(a=r()).done;){var s=a.value;e.setProps(s.index)}var l=(e[Je]+e.thumbGap)*(o.slides.length||0);i.style.setProperty("--width",l+"")}}},i.cleanup=function(){var e=this;e.carousel&&e.carousel.destroy(),e.carousel=null,e.container&&e.container.remove(),e.container=null,e.track&&e.track.remove(),e.track=null,e.state=Ve.Init,j(e.instance.container,e.cn("hasThumbs"))},i.attach=function(){var e=this,t=e.instance;t.on("initSlide",e.onInitSlide),t.state===U.Init?t.on("initSlides",e.onInitSlides):e.onInitSlides(),t.on(["change","Panzoom.afterTransform"],e.onChange),t.on("Panzoom.refresh",e.onRefresh)},i.detach=function(){var e=this,t=e.instance;t.off("initSlide",e.onInitSlide),t.off("initSlides",e.onInitSlides),t.off(["change","Panzoom.afterTransform"],e.onChange),t.off("Panzoom.refresh",e.onRefresh),e.cleanup()},l(t,[{key:"isModern",get:function(){return"modern"===this.type}}]),t}(Q);Object.defineProperty($e,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Ze});var Qe=Object.assign(Object.assign({},Ze),{key:"t",showOnStart:!0,parentEl:null}),et="is-masked",tt="aria-hidden",it=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(c(t),"ref",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(t),"hidden",{enumerable:!0,configurable:!0,writable:!0,value:!1}),t}h(t,e);var i=t.prototype;return i.onClick=function(e,t){t.stopPropagation()},i.onCreateSlide=function(e,t){var i,n,o,a=(null===(o=null===(n=null===(i=this.instance)||void 0===i?void 0:i.carousel)||void 0===n?void 0:n.slides[t.index])||void 0===o?void 0:o.type)||"",r=t.el;if(r&&a){var s="for-"+a;["video","youtube","vimeo","html5video"].includes(a)&&(s+=" for-video"),B(r,s)}},i.onInit=function(){var e,t=this,i=this,n=i.instance,o=n.carousel;if(!i.ref&&o){var a=i.option("parentEl")||n.footer||n.container;if(a){var r=M({},i.options,{parentEl:a,classes:{container:"f-thumbs fancybox__thumbs"},Carousel:{Sync:{friction:n.option("Carousel.friction")||0}},on:{ready:function(e){var n=e.container;n&&t.hidden&&(i.refresh(),n.style.transition="none",i.hide(),n.offsetHeight,queueMicrotask((function(){n.style.transition="",i.show()})))}}});r.Carousel=r.Carousel||{},r.Carousel.on=M((null===(e=i.options.Carousel)||void 0===e?void 0:e.on)||{},{click:this.onClick,createSlide:this.onCreateSlide}),o.options.Thumbs=r,o.attachPlugins({Thumbs:$e}),i.ref=o.plugins.Thumbs,i.option("showOnStart")||(i.ref.state=Ve.Hidden,i.hidden=!0)}}},i.onResize=function(){var e,t=null===(e=this.ref)||void 0===e?void 0:e.container;t&&(t.style.maxHeight="")},i.onKeydown=function(e,t){var i=this.option("key");i&&i===t&&this.toggle()},i.toggle=function(){var e=this.ref;if(e&&!e.isDisabled())return e.state===Ve.Hidden?(e.state=Ve.Init,void e.build()):void(this.hidden?this.show():this.hide())},i.show=function(){var e=this.ref;if(e&&!e.isDisabled()){var t=e.container;t&&(this.refresh(),t.offsetHeight,t.removeAttribute(tt),t.classList.remove(et),this.hidden=!1)}},i.hide=function(){var e=this.ref,t=e&&e.container;t&&(this.refresh(),t.offsetHeight,t.classList.add(et),t.setAttribute(tt,"true")),this.hidden=!0},i.refresh=function(){var e=this.ref;if(e&&e.state){var t=e.container,i=(null==t?void 0:t.firstChild)||null;t&&i&&i.childNodes.length&&(t.style.maxHeight=i.getBoundingClientRect().height+"px")}},i.attach=function(){var e=this,t=e.instance;t.state===de.Init?t.on("Carousel.init",e.onInit):e.onInit(),t.on("resize",e.onResize),t.on("keydown",e.onKeydown)},i.detach=function(){var e,t=this,i=t.instance;i.off("Carousel.init",t.onInit),i.off("resize",t.onResize),i.off("keydown",t.onKeydown),null===(e=i.carousel)||void 0===e||e.detachPlugins(["Thumbs"]),t.ref=null},l(t,[{key:"isEnabled",get:function(){var e=this.ref;return e&&!e.isDisabled()}},{key:"isHidden",get:function(){return this.hidden}}]),t}(Q);Object.defineProperty(it,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Qe});var nt,ot={panLeft:{icon:'',change:{panX:-100}},panRight:{icon:'',change:{panX:100}},panUp:{icon:'',change:{panY:-100}},panDown:{icon:'',change:{panY:100}},zoomIn:{icon:'',action:"zoomIn"},zoomOut:{icon:'',action:"zoomOut"},toggle1to1:{icon:'',action:"toggleZoom"},toggleZoom:{icon:'',action:"toggleZoom"},iterateZoom:{icon:'',action:"iterateZoom"},rotateCCW:{icon:'',action:"rotateCCW"},rotateCW:{icon:'',action:"rotateCW"},flipX:{icon:'',action:"flipX"},flipY:{icon:'',action:"flipY"},fitX:{icon:'',action:"fitX"},fitY:{icon:'',action:"fitY"},reset:{icon:'',action:"reset"},toggleFS:{icon:'',action:"toggleFS"}};!function(e){e[e.Init=0]="Init",e[e.Ready=1]="Ready",e[e.Disabled=2]="Disabled"}(nt||(nt={}));var at={tabindex:"-1",width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},rt="has-toolbar",st="fancybox__toolbar",lt=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(c(t),"state",{enumerable:!0,configurable:!0,writable:!0,value:nt.Init}),Object.defineProperty(c(t),"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),t}h(t,e);var i=t.prototype;return i.onReady=function(e){var t;if(e.carousel){var i=this.option("display"),n=this.option("absolute"),o=this.option("enabled");if("auto"===o){var a=this.instance.carousel,r=0;if(a)for(var s,l=d(a.slides);!(s=l()).done;){var c=s.value;(c.panzoom||"image"===c.type)&&r++}r||(o=!1)}o||(i=void 0);var u=0,h={left:[],middle:[],right:[]};if(i)for(var f=0,v=["left","middle","right"];f/'},download:{tpl:''},prev:{tpl:''},next:{tpl:''},slideshow:{tpl:''},fullscreen:{tpl:''},thumbs:{tpl:''},close:{tpl:''}},parentEl:null}});var ct,ut={Hash:function(e){function t(){return e.apply(this,arguments)||this}h(t,e);var i=t.prototype;return i.onReady=function(){xe=!1},i.onChange=function(e){Se&&clearTimeout(Se);var t=Pe().hash,i=Ce().hash,n=e.isOpeningSlide(e.getSlide());n&&(we=i===t?"":i),t&&t!==i&&(Se=setTimeout((function(){try{if(e.state===de.Ready){var i="replaceState";n&&!Ee&&(i="pushState",Ee=!0),window.history[i]({},document.title,window.location.pathname+window.location.search+t)}}catch(e){}}),300))},i.onClose=function(e){if(Se&&clearTimeout(Se),!xe&&Ee)return Ee=!1,xe=!1,void window.history.back();if(!xe)try{window.history.replaceState({},document.title,window.location.pathname+window.location.search+(we||""))}catch(e){}},i.attach=function(){var e=this.instance;e.on("ready",this.onReady),e.on(["Carousel.ready","Carousel.change"],this.onChange),e.on("close",this.onClose)},i.detach=function(){var e=this.instance;e.off("ready",this.onReady),e.off(["Carousel.ready","Carousel.change"],this.onChange),e.off("close",this.onClose)},t.parseURL=function(){return Ce()},t.startFromUrl=function(){Me()},t.destroy=function(){window.removeEventListener("hashchange",Oe,!1)},t}(Q),Html:Ne,Images:Le,Slideshow:Ye,Thumbs:it,Toolbar:lt},ht="with-fancybox",dt="hide-scrollbar",ft="--fancybox-scrollbar-compensate",vt="--fancybox-body-margin",pt="aria-hidden",gt="is-using-tab",mt="is-animated",bt="is-compact",yt="is-loading",wt="is-opening",xt="has-caption",Et="disabled",St="tabindex",Pt="download",Ct="href",Mt=function(e){return"string"==typeof e},Tt=function(){var e=window.getSelection();return!!e&&"Range"===e.type},Ot=null,At=null,kt=0,Lt=0,zt=0,Rt=0,It=new Map,Dt=0,Ft=function(e){function t(t,i,n){var o;return void 0===t&&(t=[]),void 0===i&&(i={}),void 0===n&&(n={}),o=e.call(this,i)||this,Object.defineProperty(c(o),"userSlides",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(c(o),"userPlugins",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(c(o),"idle",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(c(o),"idleTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(o),"clickTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(o),"pwt",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(c(o),"ignoreFocusChange",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(c(o),"startedFs",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(c(o),"state",{enumerable:!0,configurable:!0,writable:!0,value:de.Init}),Object.defineProperty(c(o),"id",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(c(o),"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(o),"caption",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(o),"footer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(o),"carousel",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(o),"lastFocus",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(c(o),"prevMouseMoveEvent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),ct||(ct=be()),o.id=i.id||++Dt,It.set(o.id,c(o)),o.userSlides=t,o.userPlugins=n,queueMicrotask((function(){o.init()})),o}h(t,e);var i=t.prototype;return i.init=function(){var e=this;if(this.state!==de.Destroy){this.state=de.Init,this.attachPlugins(Object.assign(Object.assign({},t.Plugins),this.userPlugins)),this.emit("init"),this.emit("attachPlugins"),!0===this.option("hideScrollbar")&&function(){if(pe){var e=document,t=e.body,i=e.documentElement;if(!t.classList.contains(dt)){var n=window.innerWidth-i.getBoundingClientRect().width,o=parseFloat(window.getComputedStyle(t).marginRight);n<0&&(n=0),i.style.setProperty(ft,n+"px"),o&&t.style.setProperty(vt,o+"px"),t.classList.add(dt)}}}(),this.initLayout(),this.scale();var i=function(){e.initCarousel(e.userSlides),e.state=de.Ready,e.attachEvents(),e.emit("ready"),setTimeout((function(){e.container&&e.container.setAttribute(pt,"false")}),16)};this.option("Fullscreen.autoStart")&&ct&&!ct.isFullscreen()?ct.request().then((function(){e.startedFs=!0,i()})).catch((function(){return i()})):i()}},i.initLayout=function(){var e,t,i=this,n=this.option("parentEl")||document.body,o=m(this.localize(this.option("tpl.main")||""));if(o){if(o.setAttribute("id","fancybox-"+this.id),o.setAttribute("aria-label",this.localize("{{MODAL}}")),o.classList.toggle(bt,this.isCompact),B(o,this.option("mainClass")||""),B(o,wt),this.container=o,this.footer=o.querySelector(".fancybox__footer"),n.appendChild(o),B(document.documentElement,ht),Ot&&At||(Ot=document.createElement("span"),B(Ot,"fancybox-focus-guard"),Ot.setAttribute(St,"0"),Ot.setAttribute(pt,"true"),Ot.setAttribute("aria-label","Focus guard"),At=Ot.cloneNode(),null===(e=o.parentElement)||void 0===e||e.insertBefore(Ot,o),null===(t=o.parentElement)||void 0===t||t.append(At)),o.addEventListener("mousedown",(function(e){kt=e.pageX,Lt=e.pageY,j(o,gt)})),this.option("closeExisting"))for(var a,r=d(It.values());!(a=r()).done;){var s=a.value;s.id!==this.id&&s.close()}else this.option("animated")&&(B(o,mt),setTimeout((function(){i.isClosing()||j(o,mt)}),350));this.emit("initLayout")}},i.initCarousel=function(e){var t=this,i=this.container;if(i){var n=i.querySelector(".fancybox__carousel");if(n){var o=this.carousel=new ue(n,M({},{slides:e,transition:"fade",Panzoom:{lockAxis:this.option("dragToClose")?"xy":"x",infinite:!!this.option("dragToClose")&&"y"},Dots:!1,Navigation:{classes:{container:"fancybox__nav",button:"f-button",isNext:"is-next",isPrev:"is-prev"}},initialPage:this.option("startIndex"),l10n:this.option("l10n")},this.option("Carousel")||{}));o.on("*",(function(e,i){for(var n=arguments.length,o=new Array(n>2?n-2:0),a=2;a=200||r>=50&&i.dragOffset.time<300)&&(n&&n.cancelable&&n.preventDefault(),t.close(n,"f-throwOut"+(i.current.f<0?"Up":"Down")))}}))),o.on("change",(function(e){var i,n=null===(i=t.getSlide())||void 0===i?void 0:i.triggerEl;if(n){var o=new CustomEvent("slideTo",{bubbles:!0,cancelable:!0,detail:e.page});n.dispatchEvent(o)}})),o.on(["refresh","change"],(function(e){var i=t.container;if(i){for(var n,o=d(i.querySelectorAll("[data-fancybox-current-index]"));!(n=o()).done;)n.value.innerHTML=e.page+1;for(var a,r=d(i.querySelectorAll("[data-fancybox-count]"));!(a=r()).done;)a.value.innerHTML=e.pages.length;if(!e.isInfinite){for(var s,l=d(i.querySelectorAll("[data-fancybox-next]"));!(s=l()).done;){var c=s.value;e.page0?(f.removeAttribute(Et),f.removeAttribute(St)):(f.setAttribute(Et,""),f.setAttribute(St,"-1"))}}var v=t.getSlide();if(v){var p=v.downloadSrc||"";p||"image"!==v.type||v.error||!Mt(v.src)||(p=v.src);for(var g,m=d(i.querySelectorAll("[data-fancybox-download]"));!(g=m()).done;){var b=g.value,y=v.downloadFilename;p?(b.removeAttribute(Et),b.removeAttribute(St),b.setAttribute(Ct,p),b.setAttribute(Pt,y||p),b.setAttribute("target","_blank")):(b.setAttribute(Et,""),b.setAttribute(St,"-1"),b.removeAttribute(Ct),b.removeAttribute(Pt))}}}})),this.emit("initCarousel")}}},i.attachEvents=function(){var e=this,t=e.container;if(t){t.addEventListener("click",e.onClick,{passive:!1,capture:!1}),t.addEventListener("wheel",e.onWheel,{passive:!1,capture:!1}),document.addEventListener("keydown",e.onKeydown,{passive:!1,capture:!0}),document.addEventListener("visibilitychange",e.onVisibilityChange,!1),document.addEventListener("mousemove",e.onMousemove),e.option("trapFocus")&&document.addEventListener("focus",e.onFocus,!0),window.addEventListener("resize",e.onResize);var i=window.visualViewport;i&&(i.addEventListener("scroll",e.onResize),i.addEventListener("resize",e.onResize))}},i.detachEvents=function(){var e=this,t=e.container;if(t){document.removeEventListener("keydown",e.onKeydown,{passive:!1,capture:!0}),t.removeEventListener("wheel",e.onWheel,{passive:!1,capture:!1}),t.removeEventListener("click",e.onClick,{passive:!1,capture:!1}),document.removeEventListener("mousemove",e.onMousemove),window.removeEventListener("resize",e.onResize);var i=window.visualViewport;i&&(i.removeEventListener("resize",e.onResize),i.removeEventListener("scroll",e.onResize)),document.removeEventListener("visibilitychange",e.onVisibilityChange,!1),document.removeEventListener("focus",e.onFocus,!0)}},i.scale=function(){var e=this.container;if(e){var t=window.visualViewport,i=Math.max(1,(null==t?void 0:t.scale)||1),n="",o="",a="";if(t&&i>1){var r=t.offsetLeft+"px",s=t.offsetTop+"px";n=t.width*i+"px",o=t.height*i+"px",a="translate3d("+r+", "+s+", 0) scale("+1/i+")"}e.style.transform=a,e.style.width=n,e.style.height=o}},i.onClick=function(e){var t,i=this,n=this.container,o=this.isCompact;if(n&&!this.isClosing()){!o&&this.option("idle")&&this.resetIdle();var a=e.composedPath()[0];if(a.closest(".fancybox-spinner")||a.closest("[data-fancybox-close]"))return e.preventDefault(),void this.close(e);if(a.closest("[data-fancybox-prev]"))return e.preventDefault(),void this.prev();if(a.closest("[data-fancybox-next]"))return e.preventDefault(),void this.next();if(("click"!==e.type||0!==e.detail)&&!(Math.abs(e.pageX-kt)>30||Math.abs(e.pageY-Lt)>30)){var r=document.activeElement;if(!(Tt()&&r&&n.contains(r)))if(o&&"image"===(null===(t=this.getSlide())||void 0===t?void 0:t.type))this.clickTimer?(clearTimeout(this.clickTimer),this.clickTimer=null):this.clickTimer=setTimeout((function(){i.toggleIdle(),i.clickTimer=null}),350);else if(this.emit("click",e),!e.defaultPrevented){var s=!1;if(a.closest(".fancybox__content")){if(r){if(r.closest("[contenteditable]"))return;a.matches(ge)||r.blur()}if(Tt())return;s=this.option("contentClick")}else a.closest(".fancybox__carousel")&&!a.matches(ge)&&(s=this.option("backdropClick"));"close"===s?(e.preventDefault(),this.close(e)):"next"===s?(e.preventDefault(),this.next()):"prev"===s&&(e.preventDefault(),this.prev())}}}},i.onWheel=function(e){var t=e.target,i=this.option("wheel",e);t.closest(".fancybox__thumbs")&&(i="slide");var n="slide"===i,o=[-e.deltaX||0,-e.deltaY||0,-e.detail||0].reduce((function(e,t){return Math.abs(t)>Math.abs(e)?t:e})),a=Math.max(-1,Math.min(1,o)),r=Date.now();this.pwt&&r-this.pwt<300?n&&e.preventDefault():(this.pwt=r,this.emit("wheel",e,a),e.defaultPrevented||("close"===i?(e.preventDefault(),this.close(e)):"slide"===i&&(g(t)||(e.preventDefault(),this[a>0?"prev":"next"]()))))},i.onScroll=function(){window.scrollTo(zt,Rt)},i.onKeydown=function(e){if(this.isTopmost()){this.isCompact||!this.option("idle")||this.isClosing()||this.resetIdle();var t=e.key,i=this.option("keyboard");if(i){var n=e.composedPath()[0],o=document.activeElement&&document.activeElement.classList,a=o&&o.contains("f-button")||n.dataset.carouselPage||n.dataset.carouselIndex;if(("Escape"===t||a||!F(n)||!n.isContentEditable&&-1===["TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].indexOf(n.nodeName))&&("Tab"===e.key?B(this.container,gt):j(this.container,gt),!(e.ctrlKey||e.altKey||e.shiftKey))){this.emit("keydown",t,e);var r=i[t];r&&"function"==typeof this[r]&&(e.preventDefault(),this[r]())}}}},i.onResize=function(){var e=this.container;if(e){var t=this.isCompact;e.classList.toggle(bt,t),this.manageCaption(this.getSlide()),this.isCompact?this.clearIdle():this.endIdle(),this.scale(),this.emit("resize")}},i.onFocus=function(e){this.isTopmost()&&this.checkFocus(e)},i.onMousemove=function(e){this.prevMouseMoveEvent=e,!this.isCompact&&this.option("idle")&&this.resetIdle()},i.onVisibilityChange=function(){"visible"===document.visibilityState?this.checkFocus():this.endIdle()},i.manageCloseBtn=function(e){var t=this.optionFor(e,"closeButton")||!1;if("auto"===t){var i=this.plugins.Toolbar;if(i&&i.state===nt.Ready)return}if(t&&e.contentEl&&!e.closeBtnEl){var n=this.option("tpl.closeButton");if(n){var o=m(this.localize(n));e.closeBtnEl=e.contentEl.appendChild(o),e.el&&B(e.el,"has-close-btn")}}},i.manageCaption=function(e){var t,i,n=this;void 0===e&&(e=void 0);var o="fancybox__caption",a=this.container;if(a){j(a,xt);var r=this.isCompact||this.option("commonCaption"),s=!r;if(this.caption&&this.stop(this.caption),s&&this.caption&&(this.caption.remove(),this.caption=null),r&&!this.caption)for(var l,c=d((null===(t=this.carousel)||void 0===t?void 0:t.slides)||[]);!(l=c()).done;){var u=l.value;u.captionEl&&(u.captionEl.remove(),u.captionEl=void 0,j(u.el,xt),null===(i=u.el)||void 0===i||i.removeAttribute("aria-labelledby"))}if(e||(e=this.getSlide()),e&&(!r||this.isCurrentSlide(e))){var h=e.el,f=this.optionFor(e,"caption","");if(f){var v=null;if(s){if(v=e.captionEl||null,h&&!v){var p=o+"_"+this.id+"_"+e.index;v=document.createElement("div"),B(v,o),v.setAttribute("id",p),e.captionEl=h.appendChild(v),B(h,xt),h.setAttribute("aria-labelledby",p)}}else(v=this.caption)||(v=a.querySelector("."+o)),v||((v=document.createElement("div")).dataset.fancyboxCaption="",B(v,o),(this.footer||a).prepend(v)),B(a,xt),this.caption=v;v&&(v.innerHTML="",Mt(f)||"number"==typeof f?v.innerHTML=f+"":f instanceof HTMLElement&&v.appendChild(f))}else r&&this.caption&&this.animate(this.caption,"f-fadeOut",(function(){n.caption&&(n.caption.innerHTML="")}))}}},i.checkFocus=function(e){this.focus(e)},i.focus=function(e){var t;if(!this.ignoreFocusChange){var i=document.activeElement||null,n=(null==e?void 0:e.target)||null,o=this.container,a=null===(t=this.carousel)||void 0===t?void 0:t.viewport;if(o&&a&&(e||!i||!o.contains(i))){var r=this.getSlide(),s=r&&r.state===fe.Ready?r.el:null;if(s&&!s.contains(i)&&o!==i){e&&e.cancelable&&e.preventDefault(),this.ignoreFocusChange=!0;for(var l=[],c=null,u=0,h=Array.from(o.querySelectorAll(ge));u1&&e.slideNext()},i.prev=function(){var e=this.carousel;e&&e.pages.length>1&&e.slidePrev()},i.jumpTo=function(){var e;this.carousel&&(e=this.carousel).slideTo.apply(e,arguments)},i.isTopmost=function(){var e;return(null===(e=t.getInstance())||void 0===e?void 0:e.id)==this.id},i.animate=function(e,t,i){void 0===e&&(e=null),void 0===t&&(t=""),e&&t?(this.stop(e),e.dataset.animationName=t,e.addEventListener("animationend",(function n(o){o.target===e&&e.dataset.animationName&&(e.removeEventListener("animationend",n),delete e.dataset.animationName,i&&i(),j(e,t))})),B(e,t)):i&&i()},i.stop=function(e){e&&e.dispatchEvent(new CustomEvent("animationend",{bubbles:!1,cancelable:!0,currentTarget:e}))},i.setContent=function(e,t,i){if(void 0===t&&(t=""),void 0===i&&(i=!0),!this.isClosing()){var n=e.el;if(n){var o=null;if(F(t)?o=t:(o=m(t+""),F(o)||((o=document.createElement("div")).innerHTML=t+"")),["img","picture","iframe","video","audio"].includes(o.nodeName.toLowerCase())){var a=document.createElement("div");a.appendChild(o),o=a}F(o)&&e.filter&&!e.error&&(o=o.querySelector(e.filter)),o&&F(o)?(B(o,"fancybox__content"),e.id&&o.setAttribute("id",e.id),n.classList.add("has-"+(e.error?"error":e.type||"unknown")),n.prepend(o),"none"===o.style.display&&(o.style.display=""),"none"===getComputedStyle(o).getPropertyValue("display")&&(o.style.display=e.display||this.option("defaultDisplay")||"flex"),e.contentEl=o,i&&this.revealContent(e),this.manageCloseBtn(e),this.manageCaption(e)):this.setError(e,"{{ELEMENT_NOT_FOUND}}")}}},i.revealContent=function(e,t){var i=this,n=e.el,o=e.contentEl;n&&o&&(this.emit("reveal",e),this.hideLoading(e),e.state=fe.Opening,(t=this.isOpeningSlide(e)?void 0===t?this.optionFor(e,"showClass"):t:"f-fadeIn")?this.animate(o,t,(function(){i.done(e)})):this.done(e))},i.done=function(e){var t=this;this.isClosing()||(e.state=fe.Ready,this.emit("done",e),B(e.el,"is-done"),this.isCurrentSlide(e)&&this.option("autoFocus")&&queueMicrotask((function(){var i;null===(i=e.panzoom)||void 0===i||i.updateControls(),t.option("autoFocus")&&t.focus()})),this.isOpeningSlide(e)&&(j(this.container,wt),!this.isCompact&&this.option("idle")&&this.setIdle()))},i.isCurrentSlide=function(e){var t=this.getSlide();return!(!e||!t)&&t.index===e.index},i.isOpeningSlide=function(e){var t,i;return null===(null===(t=this.carousel)||void 0===t?void 0:t.prevPage)&&e&&e.index===(null===(i=this.getSlide())||void 0===i?void 0:i.index)},i.showLoading=function(e){var t=this;e.state=fe.Loading;var i=e.el;i&&(B(i,yt),this.emit("loading",e),e.spinnerEl||setTimeout((function(){if(!t.isClosing()&&!e.spinnerEl&&e.state===fe.Loading){var n=m(D);B(n,"fancybox-spinner"),e.spinnerEl=n,i.prepend(n),t.animate(n,"f-fadeIn")}}),250))},i.hideLoading=function(e){var t=e.el;if(t){var i=e.spinnerEl;this.isClosing()?null==i||i.remove():(j(t,yt),i&&this.animate(i,"f-fadeOut",(function(){i.remove()})),e.state===fe.Loading&&(this.emit("loaded",e),e.state=fe.Ready))}},i.setError=function(e,t){if(!this.isClosing()){var i=new Event("error",{bubbles:!0,cancelable:!0});if(this.emit("error",i,e),!i.defaultPrevented){e.error=t,this.hideLoading(e),this.clearContent(e);var n=document.createElement("div");n.classList.add("fancybox-error"),n.innerHTML=this.localize(t||"

{{ERROR}}

"),this.setContent(e,n)}}},i.clearContent=function(e){if(void 0!==e.state){this.emit("clearContent",e),e.contentEl&&(e.contentEl.remove(),e.contentEl=void 0);var t=e.el;t&&(j(t,"has-error"),j(t,"has-unknown"),j(t,"has-"+(e.type||"unknown"))),e.closeBtnEl&&e.closeBtnEl.remove(),e.closeBtnEl=void 0,e.captionEl&&e.captionEl.remove(),e.captionEl=void 0,e.spinnerEl&&e.spinnerEl.remove(),e.spinnerEl=void 0}},i.getSlide=function(){var e,t=this.carousel;return(null===(e=null==t?void 0:t.pages[null==t?void 0:t.page])||void 0===e?void 0:e.slides[0])||void 0},i.close=function(e,t){var i=this;if(!this.isClosing()){var n=new Event("shouldClose",{bubbles:!0,cancelable:!0});if(this.emit("shouldClose",n,e),!n.defaultPrevented){e&&e.cancelable&&(e.preventDefault(),e.stopPropagation());var o=function(){i.proceedClose(e,t)};this.startedFs&&ct&&ct.isFullscreen()?Promise.resolve(ct.exit()).then((function(){return o()})):o()}}},i.clearIdle=function(){this.idleTimer&&clearTimeout(this.idleTimer),this.idleTimer=null},i.setIdle=function(e){var t=this;void 0===e&&(e=!1);var i=function(){t.clearIdle(),t.idle=!0,B(t.container,"is-idle"),t.emit("setIdle")};if(this.clearIdle(),!this.isClosing())if(e)i();else{var n=this.option("idle");n&&(this.idleTimer=setTimeout(i,n))}},i.endIdle=function(){this.clearIdle(),this.idle&&!this.isClosing()&&(this.idle=!1,j(this.container,"is-idle"),this.emit("endIdle"))},i.resetIdle=function(){this.endIdle(),this.setIdle()},i.toggleIdle=function(){this.idle?this.endIdle():this.setIdle(!0)},i.toggleFullscreen=function(){var e=this;ct&&(ct.isFullscreen()?ct.exit():ct.request().then((function(){e.startedFs=!0})))},i.isClosing=function(){return[de.Closing,de.CustomClosing,de.Destroy].includes(this.state)},i.proceedClose=function(e,t){var i,n,o=this;this.state=de.Closing,this.clearIdle(),this.detachEvents();var a=this.container,r=this.carousel,s=this.getSlide(),l=s&&this.option("placeFocusBack")?s.triggerEl||this.option("triggerEl"):null;if(l&&(ve(l)?me(l):l.focus()),a&&(j(a,wt),B(a,"is-closing"),a.setAttribute(pt,"true"),this.option("animated")&&B(a,mt),a.style.pointerEvents="none"),r){r.clearTransitions(),null===(i=r.panzoom)||void 0===i||i.destroy(),null===(n=r.plugins.Navigation)||void 0===n||n.detach();for(var c,u=d(r.slides);!(c=u()).done;){var h=c.value;h.state=fe.Closing,this.hideLoading(h);var f=h.contentEl;f&&this.stop(f);var v=null==h?void 0:h.panzoom;v&&(v.stop(),v.detachEvents(),v.detachObserver()),this.isCurrentSlide(h)||r.emit("removeSlide",h)}}zt=window.scrollX,Rt=window.scrollY,window.addEventListener("scroll",this.onScroll),this.emit("close",e),this.state!==de.CustomClosing?(void 0===t&&s&&(t=this.optionFor(s,"hideClass")),t&&s?(this.animate(s.contentEl,t,(function(){r&&r.emit("removeSlide",s)})),setTimeout((function(){o.destroy()}),500)):this.destroy()):setTimeout((function(){o.destroy()}),500)},i.destroy=function(){var e;if(this.state!==de.Destroy){window.removeEventListener("scroll",this.onScroll),this.state=de.Destroy,null===(e=this.carousel)||void 0===e||e.destroy();var i=this.container;i&&i.remove(),It.delete(this.id);var n=t.getInstance();n?n.focus():(Ot&&(Ot.remove(),Ot=null),At&&(At.remove(),At=null),j(document.documentElement,ht),function(){if(pe){var e=document,t=e.body;t.classList.remove(dt),t.style.setProperty(vt,""),e.documentElement.style.setProperty(ft,"")}}(),this.emit("destroy"))}},t.bind=function(e,i,n){if(pe){var o,a="",r={};if(void 0===e?o=document.body:Mt(e)?(o=document.body,a=e,"object"==typeof i&&(r=i||{})):(o=e,Mt(i)&&(a=i),"object"==typeof n&&(r=n||{})),o&&F(o)){a=a||"[data-fancybox]";var s=t.openers.get(o)||new Map;s.set(a,r),t.openers.set(o,s),1===s.size&&o.addEventListener("click",t.fromEvent)}}},t.unbind=function(e,i){var n,o="";if(Mt(e)?(n=document.body,o=e):(n=e,Mt(i)&&(o=i)),n){var a=t.openers.get(n);a&&o&&a.delete(o),o&&a||(t.openers.delete(n),n.removeEventListener("click",t.fromEvent))}},t.destroy=function(){for(var e;e=t.getInstance();)e.destroy();for(var i,n=d(t.openers.keys());!(i=n()).done;)i.value.removeEventListener("click",t.fromEvent);t.openers=new Map},t.fromEvent=function(e){if(!e.defaultPrevented&&!(e.button&&0!==e.button||e.ctrlKey||e.metaKey||e.shiftKey)){var i,n,o,a,r=e.composedPath()[0],s=r.closest("[data-fancybox-trigger]");if(s){var l=s.dataset.fancyboxTrigger||"",c=document.querySelectorAll('[data-fancybox="'+l+'"]'),u=parseInt(s.dataset.fancyboxIndex||"",10)||0;r=c[u]||r}if(r&&r instanceof Element&&([].concat(t.openers).reverse().find((function(e){var t=e[0],s=e[1];return!(!t.contains(r)||![].concat(s).reverse().find((function(e){var s=e[0],l=e[1],c=r.closest(s);return!!c&&(i=t,n=s,o=c,a=l,!0)})))})),i&&n&&o)){a=a||{},e.preventDefault(),r=o;var h=[],d=M({},ye,a);d.event=e,d.triggerEl=r,d.delegate=s;var f=d.groupAll,v=d.groupAttr,p=v&&r?r.getAttribute(""+v):"";if((!r||p||f)&&(h=[].slice.call(i.querySelectorAll(n))),r&&!f&&(h=p?h.filter((function(e){return e.getAttribute(""+v)===p})):[r]),h.length){var g=t.getInstance();return g&&g.options.triggerEl&&h.indexOf(g.options.triggerEl)>-1?void 0:(r&&(d.startIndex=h.indexOf(r)),t.fromNodes(h,d))}}}},t.fromSelector=function(e,i,n){var o=null,a="",r={};if(Mt(e)?(o=document.body,a=e,"object"==typeof i&&(r=i||{})):e instanceof HTMLElement&&Mt(i)&&(o=e,a=i,"object"==typeof n&&(r=n||{})),!o||!a)return!1;var s=t.openers.get(o);return!!s&&!!(r=M({},s.get(a)||{},r))&&t.fromNodes(Array.from(o.querySelectorAll(a)),r)},t.fromNodes=function(e,i){i=M({},ye,i||{});for(var n,o=[],a=d(e);!(n=a()).done;){var r=n.value,s=r.dataset||{},l=s.src||r.getAttribute(Ct)||r.getAttribute("currentSrc")||r.getAttribute("src")||void 0,c=void 0,u=i.delegate,h=void 0;u&&o.length===i.startIndex&&(c=u instanceof HTMLImageElement?u:u.querySelector("img:not([aria-hidden])")),c||(c=r instanceof HTMLImageElement?r:r.querySelector("img:not([aria-hidden])")),c&&!(h=c.currentSrc||c.src||void 0)&&c.dataset&&(h=c.dataset.lazySrc||c.dataset.src||void 0);var f={src:l,triggerEl:r,thumbEl:c,thumbElSrc:h,thumbSrc:h};for(var v in s){var p=s[v]+"";p="false"!==p&&("true"===p||p),f[v]=p}o.push(f)}return new t(o,i)},t.getInstance=function(e){return e?It.get(e):Array.from(It.values()).reverse().find((function(e){return!e.isClosing()&&e}))||null},t.getSlide=function(){var e;return(null===(e=t.getInstance())||void 0===e?void 0:e.getSlide())||null},t.show=function(e,i){return void 0===e&&(e=[]),void 0===i&&(i={}),new t(e,i)},t.next=function(){var e=t.getInstance();e&&e.next()},t.prev=function(){var e=t.getInstance();e&&e.prev()},t.close=function(e){void 0===e&&(e=!0);for(var i=arguments.length,n=new Array(i>1?i-1:0),o=1;o {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/app'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/extend'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/components/CommentPost'];","function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nexport default function _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}","export default function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}","export default function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}","import setPrototypeOf from \"./setPrototypeOf.js\";\nexport default function _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n setPrototypeOf(subClass, superClass);\n}","const t=(t,e=1e4)=>(t=parseFloat(t+\"\")||0,Math.round((t+Number.EPSILON)*e)/e),e=function(t){if(!(t&&t instanceof Element&&t.offsetParent))return!1;const e=t.scrollHeight>t.clientHeight,i=window.getComputedStyle(t).overflowY,n=-1!==i.indexOf(\"hidden\"),s=-1!==i.indexOf(\"visible\");return e&&!n&&!s},i=function(t,n=void 0){return!(!t||t===document.body||n&&t===n)&&(e(t)?t:i(t.parentElement,n))},n=function(t){var e=(new DOMParser).parseFromString(t,\"text/html\").body;if(e.childElementCount>1){for(var i=document.createElement(\"div\");e.firstChild;)i.appendChild(e.firstChild);return i}return e.firstChild},s=t=>`${t||\"\"}`.split(\" \").filter((t=>!!t)),o=(t,e,i)=>{t&&s(e).forEach((e=>{t.classList.toggle(e,i||!1)}))};class a{constructor(t){Object.defineProperty(this,\"pageX\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"pageY\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"clientX\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"clientY\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"id\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"time\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"nativePointer\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.nativePointer=t,this.pageX=t.pageX,this.pageY=t.pageY,this.clientX=t.clientX,this.clientY=t.clientY,this.id=self.Touch&&t instanceof Touch?t.identifier:-1,this.time=Date.now()}}const r={passive:!1};class l{constructor(t,{start:e=(()=>!0),move:i=(()=>{}),end:n=(()=>{})}){Object.defineProperty(this,\"element\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"startCallback\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"moveCallback\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"endCallback\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"currentPointers\",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,\"startPointers\",{enumerable:!0,configurable:!0,writable:!0,value:[]}),this.element=t,this.startCallback=e,this.moveCallback=i,this.endCallback=n;for(const t of[\"onPointerStart\",\"onTouchStart\",\"onMove\",\"onTouchEnd\",\"onPointerEnd\",\"onWindowBlur\"])this[t]=this[t].bind(this);this.element.addEventListener(\"mousedown\",this.onPointerStart,r),this.element.addEventListener(\"touchstart\",this.onTouchStart,r),this.element.addEventListener(\"touchmove\",this.onMove,r),this.element.addEventListener(\"touchend\",this.onTouchEnd),this.element.addEventListener(\"touchcancel\",this.onTouchEnd)}onPointerStart(t){if(!t.buttons||0!==t.button)return;const e=new a(t);this.currentPointers.some((t=>t.id===e.id))||this.triggerPointerStart(e,t)&&(window.addEventListener(\"mousemove\",this.onMove),window.addEventListener(\"mouseup\",this.onPointerEnd),window.addEventListener(\"blur\",this.onWindowBlur))}onTouchStart(t){for(const e of Array.from(t.changedTouches||[]))this.triggerPointerStart(new a(e),t);window.addEventListener(\"blur\",this.onWindowBlur)}onMove(t){const e=this.currentPointers.slice(),i=\"changedTouches\"in t?Array.from(t.changedTouches||[]).map((t=>new a(t))):[new a(t)],n=[];for(const t of i){const e=this.currentPointers.findIndex((e=>e.id===t.id));e<0||(n.push(t),this.currentPointers[e]=t)}n.length&&this.moveCallback(t,this.currentPointers.slice(),e)}onPointerEnd(t){t.buttons>0&&0!==t.button||(this.triggerPointerEnd(t,new a(t)),window.removeEventListener(\"mousemove\",this.onMove),window.removeEventListener(\"mouseup\",this.onPointerEnd),window.removeEventListener(\"blur\",this.onWindowBlur))}onTouchEnd(t){for(const e of Array.from(t.changedTouches||[]))this.triggerPointerEnd(t,new a(e))}triggerPointerStart(t,e){return!!this.startCallback(e,t,this.currentPointers.slice())&&(this.currentPointers.push(t),this.startPointers.push(t),!0)}triggerPointerEnd(t,e){const i=this.currentPointers.findIndex((t=>t.id===e.id));i<0||(this.currentPointers.splice(i,1),this.startPointers.splice(i,1),this.endCallback(t,e,this.currentPointers.slice()))}onWindowBlur(){this.clear()}clear(){for(;this.currentPointers.length;){const t=this.currentPointers[this.currentPointers.length-1];this.currentPointers.splice(this.currentPointers.length-1,1),this.startPointers.splice(this.currentPointers.length-1,1),this.endCallback(new Event(\"touchend\",{bubbles:!0,cancelable:!0,clientX:t.clientX,clientY:t.clientY}),t,this.currentPointers.slice())}}stop(){this.element.removeEventListener(\"mousedown\",this.onPointerStart,r),this.element.removeEventListener(\"touchstart\",this.onTouchStart,r),this.element.removeEventListener(\"touchmove\",this.onMove,r),this.element.removeEventListener(\"touchend\",this.onTouchEnd),this.element.removeEventListener(\"touchcancel\",this.onTouchEnd),window.removeEventListener(\"mousemove\",this.onMove),window.removeEventListener(\"mouseup\",this.onPointerEnd),window.removeEventListener(\"blur\",this.onWindowBlur)}}function c(t,e){return e?Math.sqrt(Math.pow(e.clientX-t.clientX,2)+Math.pow(e.clientY-t.clientY,2)):0}function h(t,e){return e?{clientX:(t.clientX+e.clientX)/2,clientY:(t.clientY+e.clientY)/2}:t}const d=t=>\"object\"==typeof t&&null!==t&&t.constructor===Object&&\"[object Object]\"===Object.prototype.toString.call(t),u=(t,...e)=>{const i=e.length;for(let n=0;n{const n=Array.isArray(i)?[]:{};t[e]||Object.assign(t,{[e]:n}),d(i)?Object.assign(t[e],u(n,i)):Array.isArray(i)?Object.assign(t,{[e]:[...i]}):Object.assign(t,{[e]:i})}))}return t},p=function(t,e){return t.split(\".\").reduce(((t,e)=>\"object\"==typeof t?t[e]:void 0),e)};class f{constructor(t={}){Object.defineProperty(this,\"options\",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,\"events\",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),this.setOptions(t);for(const t of Object.getOwnPropertyNames(Object.getPrototypeOf(this)))t.startsWith(\"on\")&&\"function\"==typeof this[t]&&(this[t]=this[t].bind(this))}setOptions(t){this.options=t?u({},this.constructor.defaults,t):{};for(const[t,e]of Object.entries(this.option(\"on\")||{}))this.on(t,e)}option(t,...e){let i=p(t,this.options);return i&&\"function\"==typeof i&&(i=i.call(this,this,...e)),i}optionFor(t,e,i,...n){let s=p(e,t);var o;\"string\"!=typeof(o=s)||isNaN(o)||isNaN(parseFloat(o))||(s=parseFloat(s)),\"true\"===s&&(s=!0),\"false\"===s&&(s=!1),s&&\"function\"==typeof s&&(s=s.call(this,this,t,...n));let a=p(e,this.options);return a&&\"function\"==typeof a?s=a.call(this,this,t,...n,s):void 0===s&&(s=a),void 0===s?i:s}cn(t){const e=this.options.classes;return e&&e[t]||\"\"}localize(t,e=[]){t=String(t).replace(/\\{\\{(\\w+).?(\\w+)?\\}\\}/g,((t,e,i)=>{let n=\"\";return i?n=this.option(`${e[0]+e.toLowerCase().substring(1)}.l10n.${i}`):e&&(n=this.option(`l10n.${e}`)),n||(n=t),n}));for(let i=0;ie))}on(t,e){let i=[];\"string\"==typeof t?i=t.split(\" \"):Array.isArray(t)&&(i=t),this.events||(this.events=new Map),i.forEach((t=>{let i=this.events.get(t);i||(this.events.set(t,[]),i=[]),i.includes(e)||i.push(e),this.events.set(t,i)}))}off(t,e){let i=[];\"string\"==typeof t?i=t.split(\" \"):Array.isArray(t)&&(i=t),i.forEach((t=>{const i=this.events.get(t);if(Array.isArray(i)){const t=i.indexOf(e);t>-1&&i.splice(t,1)}}))}emit(t,...e){[...this.events.get(t)||[]].forEach((t=>t(this,...e))),\"*\"!==t&&this.emit(\"*\",t,...e)}}Object.defineProperty(f,\"version\",{enumerable:!0,configurable:!0,writable:!0,value:\"5.0.36\"}),Object.defineProperty(f,\"defaults\",{enumerable:!0,configurable:!0,writable:!0,value:{}});class g extends f{constructor(t={}){super(t),Object.defineProperty(this,\"plugins\",{enumerable:!0,configurable:!0,writable:!0,value:{}})}attachPlugins(t={}){const e=new Map;for(const[i,n]of Object.entries(t)){const t=this.option(i),s=this.plugins[i];s||!1===t?s&&!1===t&&(s.detach(),delete this.plugins[i]):e.set(i,new n(this,t||{}))}for(const[t,i]of e)this.plugins[t]=i,i.attach()}detachPlugins(t){t=t||Object.keys(this.plugins);for(const e of t){const t=this.plugins[e];t&&t.detach(),delete this.plugins[e]}return this.emit(\"detachPlugins\"),this}}var m;!function(t){t[t.Init=0]=\"Init\",t[t.Error=1]=\"Error\",t[t.Ready=2]=\"Ready\",t[t.Panning=3]=\"Panning\",t[t.Mousemove=4]=\"Mousemove\",t[t.Destroy=5]=\"Destroy\"}(m||(m={}));const v=[\"a\",\"b\",\"c\",\"d\",\"e\",\"f\"],b={PANUP:\"Move up\",PANDOWN:\"Move down\",PANLEFT:\"Move left\",PANRIGHT:\"Move right\",ZOOMIN:\"Zoom in\",ZOOMOUT:\"Zoom out\",TOGGLEZOOM:\"Toggle zoom level\",TOGGLE1TO1:\"Toggle zoom level\",ITERATEZOOM:\"Toggle zoom level\",ROTATECCW:\"Rotate counterclockwise\",ROTATECW:\"Rotate clockwise\",FLIPX:\"Flip horizontally\",FLIPY:\"Flip vertically\",FITX:\"Fit horizontally\",FITY:\"Fit vertically\",RESET:\"Reset\",TOGGLEFS:\"Toggle fullscreen\"},y={content:null,width:\"auto\",height:\"auto\",panMode:\"drag\",touch:!0,dragMinThreshold:3,lockAxis:!1,mouseMoveFactor:1,mouseMoveFriction:.12,zoom:!0,pinchToZoom:!0,panOnlyZoomed:\"auto\",minScale:1,maxScale:2,friction:.25,dragFriction:.35,decelFriction:.05,click:\"toggleZoom\",dblClick:!1,wheel:\"zoom\",wheelLimit:7,spinner:!0,bounds:\"auto\",infinite:!1,rubberband:!0,bounce:!0,maxVelocity:75,transformParent:!1,classes:{content:\"f-panzoom__content\",isLoading:\"is-loading\",canZoomIn:\"can-zoom_in\",canZoomOut:\"can-zoom_out\",isDraggable:\"is-draggable\",isDragging:\"is-dragging\",inFullscreen:\"in-fullscreen\",htmlHasFullscreen:\"with-panzoom-in-fullscreen\"},l10n:b},w='',x='
'+w+w+\"
\",E=t=>t&&null!==t&&t instanceof Element&&\"nodeType\"in t,S=(t,e)=>{t&&s(e).forEach((e=>{t.classList.remove(e)}))},P=(t,e)=>{t&&s(e).forEach((e=>{t.classList.add(e)}))},C={a:1,b:0,c:0,d:1,e:0,f:0},T=1e5,M=1e4,O=\"mousemove\",A=\"drag\",L=\"content\",z=\"auto\";let R=null,k=null;class I extends g{get fits(){return this.contentRect.width-this.contentRect.fitWidth<1&&this.contentRect.height-this.contentRect.fitHeight<1}get isTouchDevice(){return null===k&&(k=window.matchMedia(\"(hover: none)\").matches),k}get isMobile(){return null===R&&(R=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)),R}get panMode(){return this.options.panMode!==O||this.isTouchDevice?A:O}get panOnlyZoomed(){const t=this.options.panOnlyZoomed;return t===z?this.isTouchDevice:t}get isInfinite(){return this.option(\"infinite\")}get angle(){return 180*Math.atan2(this.current.b,this.current.a)/Math.PI||0}get targetAngle(){return 180*Math.atan2(this.target.b,this.target.a)/Math.PI||0}get scale(){const{a:t,b:e}=this.current;return Math.sqrt(t*t+e*e)||1}get targetScale(){const{a:t,b:e}=this.target;return Math.sqrt(t*t+e*e)||1}get minScale(){return this.option(\"minScale\")||1}get fullScale(){const{contentRect:t}=this;return t.fullWidth/t.fitWidth||1}get maxScale(){return this.fullScale*(this.option(\"maxScale\")||1)||1}get coverScale(){const{containerRect:t,contentRect:e}=this,i=Math.max(t.height/e.fitHeight,t.width/e.fitWidth)||1;return Math.min(this.fullScale,i)}get isScaling(){return Math.abs(this.targetScale-this.scale)>1e-5&&!this.isResting}get isContentLoading(){const t=this.content;return!!(t&&t instanceof HTMLImageElement)&&!t.complete}get isResting(){if(this.isBouncingX||this.isBouncingY)return!1;for(const t of v){const e=\"e\"==t||\"f\"===t?1e-4:1e-5;if(Math.abs(this.target[t]-this.current[t])>e)return!1}return!(!this.ignoreBounds&&!this.checkBounds().inBounds)}constructor(t,e={},i={}){var s;if(super(e),Object.defineProperty(this,\"pointerTracker\",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,\"resizeObserver\",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,\"updateTimer\",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,\"clickTimer\",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,\"rAF\",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,\"isTicking\",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,\"ignoreBounds\",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,\"isBouncingX\",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,\"isBouncingY\",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,\"clicks\",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,\"trackingPoints\",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,\"pwt\",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,\"cwd\",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,\"pmme\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"friction\",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,\"state\",{enumerable:!0,configurable:!0,writable:!0,value:m.Init}),Object.defineProperty(this,\"isDragging\",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,\"container\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"content\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"spinner\",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,\"containerRect\",{enumerable:!0,configurable:!0,writable:!0,value:{width:0,height:0,innerWidth:0,innerHeight:0}}),Object.defineProperty(this,\"contentRect\",{enumerable:!0,configurable:!0,writable:!0,value:{top:0,right:0,bottom:0,left:0,fullWidth:0,fullHeight:0,fitWidth:0,fitHeight:0,width:0,height:0}}),Object.defineProperty(this,\"dragStart\",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0,top:0,left:0,time:0}}),Object.defineProperty(this,\"dragOffset\",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0,time:0}}),Object.defineProperty(this,\"current\",{enumerable:!0,configurable:!0,writable:!0,value:Object.assign({},C)}),Object.defineProperty(this,\"target\",{enumerable:!0,configurable:!0,writable:!0,value:Object.assign({},C)}),Object.defineProperty(this,\"velocity\",{enumerable:!0,configurable:!0,writable:!0,value:{a:0,b:0,c:0,d:0,e:0,f:0}}),Object.defineProperty(this,\"lockedAxis\",{enumerable:!0,configurable:!0,writable:!0,value:!1}),!t)throw new Error(\"Container Element Not Found\");this.container=t,this.initContent(),this.attachPlugins(Object.assign(Object.assign({},I.Plugins),i)),this.emit(\"attachPlugins\"),this.emit(\"init\");const o=this.content;if(o.addEventListener(\"load\",this.onLoad),o.addEventListener(\"error\",this.onError),this.isContentLoading){if(this.option(\"spinner\")){t.classList.add(this.cn(\"isLoading\"));const e=n(x);!t.contains(o)||o.parentElement instanceof HTMLPictureElement?this.spinner=t.appendChild(e):this.spinner=(null===(s=o.parentElement)||void 0===s?void 0:s.insertBefore(e,o))||null}this.emit(\"beforeLoad\")}else queueMicrotask((()=>{this.enable()}))}initContent(){const{container:t}=this,e=this.cn(L);let i=this.option(L)||t.querySelector(`.${e}`);if(i||(i=t.querySelector(\"img,picture\")||t.firstElementChild,i&&P(i,e)),i instanceof HTMLPictureElement&&(i=i.querySelector(\"img\")),!i)throw new Error(\"No content found\");this.content=i}onLoad(){const{spinner:t,container:e,state:i}=this;t&&(t.remove(),this.spinner=null),this.option(\"spinner\")&&e.classList.remove(this.cn(\"isLoading\")),this.emit(\"afterLoad\"),i===m.Init?this.enable():this.updateMetrics()}onError(){this.state!==m.Destroy&&(this.spinner&&(this.spinner.remove(),this.spinner=null),this.stop(),this.detachEvents(),this.state=m.Error,this.emit(\"error\"))}getNextScale(t){const{fullScale:e,targetScale:i,coverScale:n,maxScale:s,minScale:o}=this;let a=o;switch(t){case\"toggleMax\":a=i-o<.5*(s-o)?s:o;break;case\"toggleCover\":a=i-o<.5*(n-o)?n:o;break;case\"toggleZoom\":a=i-o<.5*(e-o)?e:o;break;case\"iterateZoom\":let t=[1,e,s].sort(((t,e)=>t-e)),r=t.findIndex((t=>t>i+1e-5));a=t[r]||1}return a}attachObserver(){var t;const e=()=>{const{container:t,containerRect:e}=this;return Math.abs(e.width-t.getBoundingClientRect().width)>.1||Math.abs(e.height-t.getBoundingClientRect().height)>.1};this.resizeObserver||void 0===window.ResizeObserver||(this.resizeObserver=new ResizeObserver((()=>{this.updateTimer||(e()?(this.onResize(),this.isMobile&&(this.updateTimer=setTimeout((()=>{e()&&this.onResize(),this.updateTimer=null}),500))):this.updateTimer&&(clearTimeout(this.updateTimer),this.updateTimer=null))}))),null===(t=this.resizeObserver)||void 0===t||t.observe(this.container)}detachObserver(){var t;null===(t=this.resizeObserver)||void 0===t||t.disconnect()}attachEvents(){const{container:t}=this;t.addEventListener(\"click\",this.onClick,{passive:!1,capture:!1}),t.addEventListener(\"wheel\",this.onWheel,{passive:!1}),this.pointerTracker=new l(t,{start:this.onPointerDown,move:this.onPointerMove,end:this.onPointerUp}),document.addEventListener(O,this.onMouseMove)}detachEvents(){var t;const{container:e}=this;e.removeEventListener(\"click\",this.onClick,{passive:!1,capture:!1}),e.removeEventListener(\"wheel\",this.onWheel,{passive:!1}),null===(t=this.pointerTracker)||void 0===t||t.stop(),this.pointerTracker=null,document.removeEventListener(O,this.onMouseMove),document.removeEventListener(\"keydown\",this.onKeydown,!0),this.clickTimer&&(clearTimeout(this.clickTimer),this.clickTimer=null),this.updateTimer&&(clearTimeout(this.updateTimer),this.updateTimer=null)}animate(){this.setTargetForce();const t=this.friction,e=this.option(\"maxVelocity\");for(const i of v)t?(this.velocity[i]*=1-t,e&&!this.isScaling&&(this.velocity[i]=Math.max(Math.min(this.velocity[i],e),-1*e)),this.current[i]+=this.velocity[i]):this.current[i]=this.target[i];this.setTransform(),this.setEdgeForce(),!this.isResting||this.isDragging?this.rAF=requestAnimationFrame((()=>this.animate())):this.stop(\"current\")}setTargetForce(){for(const t of v)\"e\"===t&&this.isBouncingX||\"f\"===t&&this.isBouncingY||(this.velocity[t]=(1/(1-this.friction)-1)*(this.target[t]-this.current[t]))}checkBounds(t=0,e=0){const{current:i}=this,n=i.e+t,s=i.f+e,o=this.getBounds(),{x:a,y:r}=o,l=a.min,c=a.max,h=r.min,d=r.max;let u=0,p=0;return l!==1/0&&nc&&(u=c-n),h!==1/0&&sd&&(p=d-s),Math.abs(u)<1e-4&&(u=0),Math.abs(p)<1e-4&&(p=0),Object.assign(Object.assign({},o),{xDiff:u,yDiff:p,inBounds:!u&&!p})}clampTargetBounds(){const{target:t}=this,{x:e,y:i}=this.getBounds();e.min!==1/0&&(t.e=Math.max(t.e,e.min)),e.max!==1/0&&(t.e=Math.min(t.e,e.max)),i.min!==1/0&&(t.f=Math.max(t.f,i.min)),i.max!==1/0&&(t.f=Math.min(t.f,i.max))}calculateContentDim(t=this.current){const{content:e,contentRect:i}=this,{fitWidth:n,fitHeight:s,fullWidth:o,fullHeight:a}=i;let r=o,l=a;if(this.option(\"zoom\")||0!==this.angle){const i=!(e instanceof HTMLImageElement)&&(\"none\"===window.getComputedStyle(e).maxWidth||\"none\"===window.getComputedStyle(e).maxHeight),c=i?o:n,h=i?a:s,d=this.getMatrix(t),u=new DOMPoint(0,0).matrixTransform(d),p=new DOMPoint(0+c,0).matrixTransform(d),f=new DOMPoint(0+c,0+h).matrixTransform(d),g=new DOMPoint(0,0+h).matrixTransform(d),m=Math.abs(f.x-u.x),v=Math.abs(f.y-u.y),b=Math.abs(g.x-p.x),y=Math.abs(g.y-p.y);r=Math.max(m,b),l=Math.max(v,y)}return{contentWidth:r,contentHeight:l}}setEdgeForce(){if(this.ignoreBounds||this.isDragging||this.panMode===O||this.targetScale{const t=window.getSelection();return t&&\"Range\"===t.type})()&&!i.closest(\"button\"))return;const n=i.closest(\"[data-panzoom-action]\"),s=i.closest(\"[data-panzoom-change]\"),o=n||s,a=o&&E(o)?o.dataset:null;if(a){const e=a.panzoomChange,i=a.panzoomAction;if((e||i)&&t.preventDefault(),e){let t={};try{t=JSON.parse(e)}catch(t){console&&console.warn(\"The given data was not valid JSON\")}return void this.applyChange(t)}if(i)return void(this[i]&&this[i]())}if(Math.abs(this.dragOffset.x)>3||Math.abs(this.dragOffset.y)>3)return t.preventDefault(),void t.stopPropagation();if(i.closest(\"[data-fancybox]\"))return;const r=this.content.getBoundingClientRect(),l=this.dragStart;if(l.time&&!this.canZoomOut()&&(Math.abs(r.x-l.x)>2||Math.abs(r.y-l.y)>2))return;this.dragStart.time=0;const c=e=>{this.option(\"zoom\",t)&&e&&\"string\"==typeof e&&/(iterateZoom)|(toggle(Zoom|Full|Cover|Max)|(zoomTo(Fit|Cover|Max)))/.test(e)&&\"function\"==typeof this[e]&&(t.preventDefault(),this[e]({event:t}))},h=this.option(\"click\",t),d=this.option(\"dblClick\",t);d?(this.clicks++,1==this.clicks&&(this.clickTimer=setTimeout((()=>{1===this.clicks?(this.emit(\"click\",t),!t.defaultPrevented&&h&&c(h)):(this.emit(\"dblClick\",t),t.defaultPrevented||c(d)),this.clicks=0,this.clickTimer=null}),350))):(this.emit(\"click\",t),!t.defaultPrevented&&h&&c(h))}addTrackingPoint(t){const e=this.trackingPoints.filter((t=>t.time>Date.now()-100));e.push(t),this.trackingPoints=e}onPointerDown(t,e,i){var n;if(!1===this.option(\"touch\",t))return!1;this.pwt=0,this.dragOffset={x:0,y:0,time:0},this.trackingPoints=[];const s=this.content.getBoundingClientRect();if(this.dragStart={x:s.x,y:s.y,top:s.top,left:s.left,time:Date.now()},this.clickTimer)return!1;if(this.panMode===O&&this.targetScale>1)return t.preventDefault(),t.stopPropagation(),!1;const o=t.composedPath()[0];if(!i.length){if([\"TEXTAREA\",\"OPTION\",\"INPUT\",\"SELECT\",\"VIDEO\",\"IFRAME\"].includes(o.nodeName)||o.closest(\"[contenteditable],[data-selectable],[data-draggable],[data-clickable],[data-panzoom-change],[data-panzoom-action]\"))return!1;null===(n=window.getSelection())||void 0===n||n.removeAllRanges()}if(\"mousedown\"===t.type)[\"A\",\"BUTTON\"].includes(o.nodeName)||t.preventDefault();else if(Math.abs(this.velocity.a)>.3)return!1;return this.target.e=this.current.e,this.target.f=this.current.f,this.stop(),this.isDragging||(this.isDragging=!0,this.addTrackingPoint(e),this.emit(\"touchStart\",t)),!0}onPointerMove(e,n,s){if(!1===this.option(\"touch\",e))return;if(!this.isDragging)return;if(n.length<2&&this.panOnlyZoomed&&t(this.targetScale)<=t(this.minScale))return;if(this.emit(\"touchMove\",e),e.defaultPrevented)return;this.addTrackingPoint(n[0]);const{content:o}=this,a=h(s[0],s[1]),r=h(n[0],n[1]);let l=0,d=0;if(n.length>1){const t=o.getBoundingClientRect();l=a.clientX-t.left-.5*t.width,d=a.clientY-t.top-.5*t.height}const u=c(s[0],s[1]),p=c(n[0],n[1]);let f=u?p/u:1,g=r.clientX-a.clientX,m=r.clientY-a.clientY;this.dragOffset.x+=g,this.dragOffset.y+=m,this.dragOffset.time=Date.now()-this.dragStart.time;let v=t(this.targetScale)===t(this.minScale)&&this.option(\"lockAxis\");if(v&&!this.lockedAxis)if(\"xy\"===v||\"y\"===v||\"touchmove\"===e.type){if(Math.abs(this.dragOffset.x)<6&&Math.abs(this.dragOffset.y)<6)return void e.preventDefault();const t=Math.abs(180*Math.atan2(this.dragOffset.y,this.dragOffset.x)/Math.PI);this.lockedAxis=t>45&&t<135?\"y\":\"x\",this.dragOffset.x=0,this.dragOffset.y=0,g=0,m=0}else this.lockedAxis=v;if(i(e.target,this.content)&&(v=\"x\",this.dragOffset.y=0),v&&\"xy\"!==v&&this.lockedAxis!==v&&t(this.targetScale)===t(this.minScale))return;e.cancelable&&e.preventDefault(),this.container.classList.add(this.cn(\"isDragging\"));const b=this.checkBounds(g,m);this.option(\"rubberband\")?(\"x\"!==this.isInfinite&&(b.xDiff>0&&g<0||b.xDiff<0&&g>0)&&(g*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitWidth*b.xDiff))),\"y\"!==this.isInfinite&&(b.yDiff>0&&m<0||b.yDiff<0&&m>0)&&(m*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitHeight*b.yDiff)))):(b.xDiff&&(g=0),b.yDiff&&(m=0));const y=this.targetScale,w=this.minScale,x=this.maxScale;y<.5*w&&(f=Math.max(f,w)),y>1.5*x&&(f=Math.min(f,x)),\"y\"===this.lockedAxis&&t(y)===t(w)&&(g=0),\"x\"===this.lockedAxis&&t(y)===t(w)&&(m=0),this.applyChange({originX:l,originY:d,panX:g,panY:m,scale:f,friction:this.option(\"dragFriction\"),ignoreBounds:!0})}onPointerUp(t,e,n){if(n.length)return this.dragOffset.x=0,this.dragOffset.y=0,void(this.trackingPoints=[]);this.container.classList.remove(this.cn(\"isDragging\")),this.isDragging&&(this.addTrackingPoint(e),this.panOnlyZoomed&&this.contentRect.width-this.contentRect.fitWidth<1&&this.contentRect.height-this.contentRect.fitHeight<1&&(this.trackingPoints=[]),i(t.target,this.content)&&\"y\"===this.lockedAxis&&(this.trackingPoints=[]),this.emit(\"touchEnd\",t),this.isDragging=!1,this.lockedAxis=!1,this.state!==m.Destroy&&(t.defaultPrevented||this.startDecelAnim()))}startDecelAnim(){var e;const i=this.isScaling;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.isBouncingX=!1,this.isBouncingY=!1;for(const t of v)this.velocity[t]=0;this.target.e=this.current.e,this.target.f=this.current.f,S(this.container,\"is-scaling\"),S(this.container,\"is-animating\"),this.isTicking=!1;const{trackingPoints:n}=this,s=n[0],o=n[n.length-1];let a=0,r=0,l=0;o&&s&&(a=o.clientX-s.clientX,r=o.clientY-s.clientY,l=o.time-s.time);const c=(null===(e=window.visualViewport)||void 0===e?void 0:e.scale)||1;1!==c&&(a*=c,r*=c);let h=0,d=0,u=0,p=0,f=this.option(\"decelFriction\");const g=this.targetScale;if(l>0){u=Math.abs(a)>3?a/(l/30):0,p=Math.abs(r)>3?r/(l/30):0;const t=this.option(\"maxVelocity\");t&&(u=Math.max(Math.min(u,t),-1*t),p=Math.max(Math.min(p,t),-1*t))}u&&(h=u/(1/(1-f)-1)),p&&(d=p/(1/(1-f)-1)),(\"y\"===this.option(\"lockAxis\")||\"xy\"===this.option(\"lockAxis\")&&\"y\"===this.lockedAxis&&t(g)===this.minScale)&&(h=u=0),(\"x\"===this.option(\"lockAxis\")||\"xy\"===this.option(\"lockAxis\")&&\"x\"===this.lockedAxis&&t(g)===this.minScale)&&(d=p=0);const m=this.dragOffset.x,b=this.dragOffset.y,y=this.option(\"dragMinThreshold\")||0;Math.abs(m)this.maxScale+1e-5)||i&&!h&&!d)&&(f=.35),this.applyChange({panX:h,panY:d,friction:f}),this.emit(\"decel\",u,p,m,b)}onWheel(t){var e=[-t.deltaX||0,-t.deltaY||0,-t.detail||0].reduce((function(t,e){return Math.abs(e)>Math.abs(t)?e:t}));const i=Math.max(-1,Math.min(1,e));if(this.emit(\"wheel\",t,i),this.panMode===O)return;if(t.defaultPrevented)return;const n=this.option(\"wheel\");\"pan\"===n?(t.preventDefault(),this.panOnlyZoomed&&!this.canZoomOut()||this.applyChange({panX:2*-t.deltaX,panY:2*-t.deltaY,bounce:!1})):\"zoom\"===n&&!1!==this.option(\"zoom\")&&this.zoomWithWheel(t)}onMouseMove(t){this.panWithMouse(t)}onKeydown(t){\"Escape\"===t.key&&this.toggleFS()}onResize(){this.updateMetrics(),this.checkBounds().inBounds||this.requestTick()}setTransform(){this.emit(\"beforeTransform\");const{current:e,target:i,content:n,contentRect:s}=this,o=Object.assign({},C);for(const n of v){const s=\"e\"==n||\"f\"===n?M:T;o[n]=t(e[n],s),Math.abs(i[n]-e[n])<(\"e\"==n||\"f\"===n?.51:.001)&&(e[n]=i[n])}let{a:a,b:r,c:l,d:c,e:h,f:d}=o,u=`matrix(${a}, ${r}, ${l}, ${c}, ${h}, ${d})`,p=n.parentElement instanceof HTMLPictureElement?n.parentElement:n;if(this.option(\"transformParent\")&&(p=p.parentElement||p),p.style.transform===u)return;p.style.transform=u;const{contentWidth:f,contentHeight:g}=this.calculateContentDim();s.width=f,s.height=g,this.emit(\"afterTransform\")}updateMetrics(e=!1){var i;if(!this||this.state===m.Destroy)return;if(this.isContentLoading)return;const n=Math.max(1,(null===(i=window.visualViewport)||void 0===i?void 0:i.scale)||1),{container:s,content:o}=this,a=o instanceof HTMLImageElement,r=s.getBoundingClientRect(),l=getComputedStyle(this.container);let c=r.width*n,h=r.height*n;const d=parseFloat(l.paddingTop)+parseFloat(l.paddingBottom),u=c-(parseFloat(l.paddingLeft)+parseFloat(l.paddingRight)),p=h-d;this.containerRect={width:c,height:h,innerWidth:u,innerHeight:p};const f=parseFloat(o.dataset.width||\"\")||(t=>{let e=0;return e=t instanceof HTMLImageElement?t.naturalWidth:t instanceof SVGElement?t.width.baseVal.value:Math.max(t.offsetWidth,t.scrollWidth),e||0})(o),g=parseFloat(o.dataset.height||\"\")||(t=>{let e=0;return e=t instanceof HTMLImageElement?t.naturalHeight:t instanceof SVGElement?t.height.baseVal.value:Math.max(t.offsetHeight,t.scrollHeight),e||0})(o);let v=this.option(\"width\",f)||z,b=this.option(\"height\",g)||z;const y=v===z,w=b===z;\"number\"!=typeof v&&(v=f),\"number\"!=typeof b&&(b=g),y&&(v=f*(b/g)),w&&(b=g/(f/v));let x=o.parentElement instanceof HTMLPictureElement?o.parentElement:o;this.option(\"transformParent\")&&(x=x.parentElement||x);const E=x.getAttribute(\"style\")||\"\";x.style.setProperty(\"transform\",\"none\",\"important\"),a&&(x.style.width=\"\",x.style.height=\"\"),x.offsetHeight;const S=o.getBoundingClientRect();let P=S.width*n,C=S.height*n,T=P,M=C;P=Math.min(P,v),C=Math.min(C,b),a?({width:P,height:C}=((t,e,i,n)=>{const s=i/t,o=n/e,a=Math.min(s,o);return{width:t*=a,height:e*=a}})(v,b,P,C)):(P=Math.min(P,v),C=Math.min(C,b));let O=.5*(M-C),A=.5*(T-P);this.contentRect=Object.assign(Object.assign({},this.contentRect),{top:S.top-r.top+O,bottom:r.bottom-S.bottom+O,left:S.left-r.left+A,right:r.right-S.right+A,fitWidth:P,fitHeight:C,width:P,height:C,fullWidth:v,fullHeight:b}),x.style.cssText=E,a&&(x.style.width=`${P}px`,x.style.height=`${C}px`),this.setTransform(),!0!==e&&this.emit(\"refresh\"),this.ignoreBounds||(t(this.targetScale)this.maxScale?this.zoomTo(this.maxScale,{friction:0}):this.state===m.Init||this.checkBounds().inBounds||this.requestTick()),this.updateControls()}calculateBounds(){const{contentWidth:e,contentHeight:i}=this.calculateContentDim(this.target),{targetScale:n,lockedAxis:s}=this,{fitWidth:o,fitHeight:a}=this.contentRect;let r=0,l=0,c=0,h=0;const d=this.option(\"infinite\");if(!0===d||s&&d===s)r=-1/0,c=1/0,l=-1/0,h=1/0;else{let{containerRect:s,contentRect:d}=this,u=t(o*n,M),p=t(a*n,M),{innerWidth:f,innerHeight:g}=s;if(s.width===u&&(f=s.width),s.width===p&&(g=s.height),e>f){c=.5*(e-f),r=-1*c;let t=.5*(d.right-d.left);r+=t,c+=t}if(o>f&&eg){h=.5*(i-g),l=-1*h;let t=.5*(d.bottom-d.top);l+=t,h+=t}a>g&&it(s.fitWidth,1)||t(s.height,1)>t(s.fitHeight,1))&&(p=!0)),t(s.width*a,1)t(a),g=!f&&!p&&d&&t(l)i&&(n=i/t)}y=y.scale(n)}y=y.translate(-o,-a).translate(-f,-g).multiply(b),s&&(y=y.rotate(s)),l&&(y=y.scale(-1,1)),c&&(y=y.scale(1,-1));for(const e of v)\"e\"!==e&&\"f\"!==e&&(y[e]>this.minScale+1e-5||y[e].1||this.panMode===O||!1===d)&&!h&&this.clampTargetBounds(),u===m.Init?this.animate():this.isResting||(this.state=m.Panning,this.requestTick())}stop(t=!1){if(this.state===m.Init||this.state===m.Destroy)return;const e=this.isTicking;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.isBouncingX=!1,this.isBouncingY=!1;for(const e of v)this.velocity[e]=0,\"current\"===t?this.current[e]=this.target[e]:\"target\"===t&&(this.target[e]=this.current[e]);this.setTransform(),S(this.container,\"is-scaling\"),S(this.container,\"is-animating\"),this.isTicking=!1,this.state=m.Ready,e&&(this.emit(\"endAnimation\"),this.updateControls())}requestTick(){this.isTicking||(this.emit(\"startAnimation\"),this.updateControls(),P(this.container,\"is-animating\"),this.isScaling&&P(this.container,\"is-scaling\")),this.isTicking=!0,this.rAF||(this.rAF=requestAnimationFrame((()=>this.animate())))}panWithMouse(e,i=this.option(\"mouseMoveFriction\")){if(this.pmme=e,this.panMode!==O||!e)return;if(t(this.targetScale)<=t(this.minScale))return;this.emit(\"mouseMove\",e);const{container:n,containerRect:s,contentRect:o}=this,a=s.width,r=s.height,l=n.getBoundingClientRect(),c=(e.clientX||0)-l.left,h=(e.clientY||0)-l.top;let{contentWidth:d,contentHeight:u}=this.calculateContentDim(this.target);const p=this.option(\"mouseMoveFactor\");p>1&&(d!==a&&(d*=p),u!==r&&(u*=p));let f=.5*(d-a)-c/a*100/100*(d-a);f+=.5*(o.right-o.left);let g=.5*(u-r)-h/r*100/100*(u-r);g+=.5*(o.bottom-o.top),this.applyChange({panX:f-this.target.e,panY:g-this.target.f,friction:i})}zoomWithWheel(e){if(this.state===m.Destroy||this.state===m.Init)return;const i=Date.now();if(i-this.pwt<45)return void e.preventDefault();this.pwt=i;var n=[-e.deltaX||0,-e.deltaY||0,-e.detail||0].reduce((function(t,e){return Math.abs(e)>Math.abs(t)?e:t}));const s=Math.max(-1,Math.min(1,n)),{targetScale:o,maxScale:a,minScale:r}=this;let l=o*(100+45*s)/100;t(l)t(a)&&t(o)>=t(a)?(this.cwd+=Math.abs(s),l=a):(this.cwd=0,l=Math.max(Math.min(l,a),r)),this.cwd>this.option(\"wheelLimit\")||(e.preventDefault(),t(l)!==t(o)&&this.zoomTo(l,{event:e}))}canZoomIn(){return this.option(\"zoom\")&&(t(this.contentRect.width,1)t(this.minScale)}zoomIn(t=1.25,e){this.zoomTo(this.targetScale*t,e)}zoomOut(t=.8,e){this.zoomTo(this.targetScale*t,e)}zoomToFit(t){this.zoomTo(\"fit\",t)}zoomToCover(t){this.zoomTo(\"cover\",t)}zoomToFull(t){this.zoomTo(\"full\",t)}zoomToMax(t){this.zoomTo(\"max\",t)}toggleZoom(t){this.zoomTo(this.getNextScale(\"toggleZoom\"),t)}toggleMax(t){this.zoomTo(this.getNextScale(\"toggleMax\"),t)}toggleCover(t){this.zoomTo(this.getNextScale(\"toggleCover\"),t)}iterateZoom(t){this.zoomTo(\"next\",t)}zoomTo(t=1,{friction:e=z,originX:i=z,originY:n=z,event:s}={}){if(this.isContentLoading||this.state===m.Destroy)return;const{targetScale:o,fullScale:a,maxScale:r,coverScale:l}=this;if(this.stop(),this.panMode===O&&(s=this.pmme||s),s||i===z||n===z){const t=this.content.getBoundingClientRect(),e=this.container.getBoundingClientRect(),o=s?s.clientX:e.left+.5*e.width,a=s?s.clientY:e.top+.5*e.height;i=o-t.left-.5*t.width,n=a-t.top-.5*t.height}let c=1;\"number\"==typeof t?c=t:\"full\"===t?c=a:\"cover\"===t?c=l:\"max\"===t?c=r:\"fit\"===t?c=1:\"next\"===t&&(c=this.getNextScale(\"iterateZoom\")),c=c/o||1,e=e===z?c>1?.15:.25:e,this.applyChange({scale:c,originX:i,originY:n,friction:e}),s&&this.panMode===O&&this.panWithMouse(s,e)}rotateCCW(){this.applyChange({angle:-90})}rotateCW(){this.applyChange({angle:90})}flipX(){this.applyChange({flipX:!0})}flipY(){this.applyChange({flipY:!0})}fitX(){this.stop(\"target\");const{containerRect:t,contentRect:e,target:i}=this;this.applyChange({panX:.5*t.width-(e.left+.5*e.fitWidth)-i.e,panY:.5*t.height-(e.top+.5*e.fitHeight)-i.f,scale:t.width/e.fitWidth/this.targetScale,originX:0,originY:0,ignoreBounds:!0})}fitY(){this.stop(\"target\");const{containerRect:t,contentRect:e,target:i}=this;this.applyChange({panX:.5*t.width-(e.left+.5*e.fitWidth)-i.e,panY:.5*t.innerHeight-(e.top+.5*e.fitHeight)-i.f,scale:t.height/e.fitHeight/this.targetScale,originX:0,originY:0,ignoreBounds:!0})}toggleFS(){const{container:t}=this,e=this.cn(\"inFullscreen\"),i=this.cn(\"htmlHasFullscreen\");t.classList.toggle(e);const n=t.classList.contains(e);n?(document.documentElement.classList.add(i),document.addEventListener(\"keydown\",this.onKeydown,!0)):(document.documentElement.classList.remove(i),document.removeEventListener(\"keydown\",this.onKeydown,!0)),this.updateMetrics(),this.emit(n?\"enterFS\":\"exitFS\")}getMatrix(t=this.current){const{a:e,b:i,c:n,d:s,e:o,f:a}=t;return new DOMMatrix([e,i,n,s,o,a])}reset(t){if(this.state!==m.Init&&this.state!==m.Destroy){this.stop(\"current\");for(const t of v)this.target[t]=C[t];this.target.a=this.minScale,this.target.d=this.minScale,this.clampTargetBounds(),this.isResting||(this.friction=void 0===t?this.option(\"friction\"):t,this.state=m.Panning,this.requestTick())}}destroy(){this.stop(),this.state=m.Destroy,this.detachEvents(),this.detachObserver();const{container:t,content:e}=this,i=this.option(\"classes\")||{};for(const e of Object.values(i))t.classList.remove(e+\"\");e&&(e.removeEventListener(\"load\",this.onLoad),e.removeEventListener(\"error\",this.onError)),this.detachPlugins()}}Object.defineProperty(I,\"defaults\",{enumerable:!0,configurable:!0,writable:!0,value:y}),Object.defineProperty(I,\"Plugins\",{enumerable:!0,configurable:!0,writable:!0,value:{}});const D=function(t,e){let i=!0;return(...n)=>{i&&(i=!1,t(...n),setTimeout((()=>{i=!0}),e))}},F=(t,e)=>{let i=[];return t.childNodes.forEach((t=>{t.nodeType!==Node.ELEMENT_NODE||e&&!t.matches(e)||i.push(t)})),i},j={viewport:null,track:null,enabled:!0,slides:[],axis:\"x\",transition:\"fade\",preload:1,slidesPerPage:\"auto\",initialPage:0,friction:.12,Panzoom:{decelFriction:.12},center:!0,infinite:!0,fill:!0,dragFree:!1,adaptiveHeight:!1,direction:\"ltr\",classes:{container:\"f-carousel\",viewport:\"f-carousel__viewport\",track:\"f-carousel__track\",slide:\"f-carousel__slide\",isLTR:\"is-ltr\",isRTL:\"is-rtl\",isHorizontal:\"is-horizontal\",isVertical:\"is-vertical\",inTransition:\"in-transition\",isSelected:\"is-selected\"},l10n:{NEXT:\"Next slide\",PREV:\"Previous slide\",GOTO:\"Go to slide #%d\"}};var B;!function(t){t[t.Init=0]=\"Init\",t[t.Ready=1]=\"Ready\",t[t.Destroy=2]=\"Destroy\"}(B||(B={}));const H=t=>{if(\"string\"==typeof t||t instanceof HTMLElement)t={html:t};else{const e=t.thumb;void 0!==e&&(\"string\"==typeof e&&(t.thumbSrc=e),e instanceof HTMLImageElement&&(t.thumbEl=e,t.thumbElSrc=e.src,t.thumbSrc=e.src),delete t.thumb)}return Object.assign({html:\"\",el:null,isDom:!1,class:\"\",customClass:\"\",index:-1,dim:0,gap:0,pos:0,transition:!1},t)},N=(t={})=>Object.assign({index:-1,slides:[],dim:0,pos:-1},t);class _ extends f{constructor(t,e){super(e),Object.defineProperty(this,\"instance\",{enumerable:!0,configurable:!0,writable:!0,value:t})}attach(){}detach(){}}const $={classes:{list:\"f-carousel__dots\",isDynamic:\"is-dynamic\",hasDots:\"has-dots\",dot:\"f-carousel__dot\",isBeforePrev:\"is-before-prev\",isPrev:\"is-prev\",isCurrent:\"is-current\",isNext:\"is-next\",isAfterNext:\"is-after-next\"},dotTpl:'',dynamicFrom:11,maxCount:1/0,minCount:2};class W extends _{constructor(){super(...arguments),Object.defineProperty(this,\"isDynamic\",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,\"list\",{enumerable:!0,configurable:!0,writable:!0,value:null})}onRefresh(){this.refresh()}build(){let t=this.list;if(!t){t=document.createElement(\"ul\"),P(t,this.cn(\"list\")),t.setAttribute(\"role\",\"tablist\");const e=this.instance.container;e.appendChild(t),P(e,this.cn(\"hasDots\")),this.list=t}return t}refresh(){var t;const e=this.instance.pages.length,i=Math.min(2,this.option(\"minCount\")),n=Math.max(2e3,this.option(\"maxCount\")),s=this.option(\"dynamicFrom\");if(en)return void this.cleanup();const a=\"number\"==typeof s&&e>5&&e>=s,r=!this.list||this.isDynamic!==a||this.list.children.length!==e;r&&this.cleanup();const l=this.build();if(o(l,this.cn(\"isDynamic\"),!!a),r)for(let t=0;t=e-1&&s.setAttribute(X,\"\")))}addBtn(t){var e;const i=this.instance,n=document.createElement(\"button\");n.setAttribute(\"tabindex\",\"0\"),n.setAttribute(\"title\",i.localize(`{{${t.toUpperCase()}}}`)),P(n,this.cn(\"button\")+\" \"+this.cn(t===q?\"isNext\":\"isPrev\"));const s=i.isRTL?t===q?Y:q:t;var o;return n.innerHTML=i.localize(this.option(`${s}Tpl`)),n.dataset[`carousel${o=t,o?o.match(\"^[a-z]\")?o.charAt(0).toUpperCase()+o.substring(1):o:\"\"}`]=\"true\",null===(e=this.container)||void 0===e||e.appendChild(n),n}build(){const t=this.instance.container,e=this.cn(\"container\");let{container:i,prev:n,next:s}=this;i||(i=t.querySelector(\".\"+e),this.isDom=!!i),i||(i=document.createElement(\"div\"),P(i,e),t.appendChild(i)),this.container=i,s||(s=i.querySelector(\"[data-carousel-next]\")),s||(s=this.addBtn(q)),this.next=s,n||(n=i.querySelector(\"[data-carousel-prev]\")),n||(n=this.addBtn(Y)),this.prev=n}cleanup(){this.isDom||(this.prev&&this.prev.remove(),this.next&&this.next.remove(),this.container&&this.container.remove()),this.prev=null,this.next=null,this.container=null,this.isDom=!1}attach(){this.instance.on([\"refresh\",\"change\"],this.onRefresh)}detach(){this.instance.off([\"refresh\",\"change\"],this.onRefresh),this.cleanup()}}Object.defineProperty(V,\"defaults\",{enumerable:!0,configurable:!0,writable:!0,value:{classes:{container:\"f-carousel__nav\",button:\"f-button\",isNext:\"is-next\",isPrev:\"is-prev\"},nextTpl:'',prevTpl:''}});class Z extends _{constructor(){super(...arguments),Object.defineProperty(this,\"selectedIndex\",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,\"target\",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,\"nav\",{enumerable:!0,configurable:!0,writable:!0,value:null})}addAsTargetFor(t){this.target=this.instance,this.nav=t,this.attachEvents()}addAsNavFor(t){this.nav=this.instance,this.target=t,this.attachEvents()}attachEvents(){const{nav:t,target:e}=this;t&&e&&(t.options.initialSlide=e.options.initialPage,t.state===B.Ready?this.onNavReady(t):t.on(\"ready\",this.onNavReady),e.state===B.Ready?this.onTargetReady(e):e.on(\"ready\",this.onTargetReady))}onNavReady(t){t.on(\"createSlide\",this.onNavCreateSlide),t.on(\"Panzoom.click\",this.onNavClick),t.on(\"Panzoom.touchEnd\",this.onNavTouch),this.onTargetChange()}onTargetReady(t){t.on(\"change\",this.onTargetChange),t.on(\"Panzoom.refresh\",this.onTargetChange),this.onTargetChange()}onNavClick(t,e,i){this.onNavTouch(t,t.panzoom,i)}onNavTouch(t,e,i){var n,s;if(Math.abs(e.dragOffset.x)>3||Math.abs(e.dragOffset.y)>3)return;const o=i.target,{nav:a,target:r}=this;if(!a||!r||!o)return;const l=o.closest(\"[data-index]\");if(i.stopPropagation(),i.preventDefault(),!l)return;const c=parseInt(l.dataset.index||\"\",10)||0,h=r.getPageForSlide(c),d=a.getPageForSlide(c);a.slideTo(d),r.slideTo(h,{friction:(null===(s=null===(n=this.nav)||void 0===n?void 0:n.plugins)||void 0===s?void 0:s.Sync.option(\"friction\"))||0}),this.markSelectedSlide(c)}onNavCreateSlide(t,e){e.index===this.selectedIndex&&this.markSelectedSlide(e.index)}onTargetChange(){var t,e;const{target:i,nav:n}=this;if(!i||!n)return;if(n.state!==B.Ready||i.state!==B.Ready)return;const s=null===(e=null===(t=i.pages[i.page])||void 0===t?void 0:t.slides[0])||void 0===e?void 0:e.index,o=n.getPageForSlide(s);this.markSelectedSlide(s),n.slideTo(o,null===n.prevPage&&null===i.prevPage?{friction:0}:void 0)}markSelectedSlide(t){const e=this.nav;e&&e.state===B.Ready&&(this.selectedIndex=t,[...e.slides].map((e=>{e.el&&e.el.classList[e.index===t?\"add\":\"remove\"](\"is-nav-selected\")})))}attach(){const t=this;let e=t.options.target,i=t.options.nav;e?t.addAsNavFor(e):i&&t.addAsTargetFor(i)}detach(){const t=this,e=t.nav,i=t.target;e&&(e.off(\"ready\",t.onNavReady),e.off(\"createSlide\",t.onNavCreateSlide),e.off(\"Panzoom.click\",t.onNavClick),e.off(\"Panzoom.touchEnd\",t.onNavTouch)),t.nav=null,i&&(i.off(\"ready\",t.onTargetReady),i.off(\"refresh\",t.onTargetChange),i.off(\"change\",t.onTargetChange)),t.target=null}}Object.defineProperty(Z,\"defaults\",{enumerable:!0,configurable:!0,writable:!0,value:{friction:.35}});const U={Navigation:V,Dots:W,Sync:Z},G=\"animationend\",K=\"isSelected\",J=\"slide\";class Q extends g{get axis(){return this.isHorizontal?\"e\":\"f\"}get isEnabled(){return this.state===B.Ready}get isInfinite(){let t=!1;const{contentDim:e,viewportDim:i,pages:n,slides:s}=this,o=s[0];return n.length>=2&&o&&e+o.dim>=i&&(t=this.option(\"infinite\")),t}get isRTL(){return\"rtl\"===this.option(\"direction\")}get isHorizontal(){return\"x\"===this.option(\"axis\")}constructor(t,e={},i={}){if(super(),Object.defineProperty(this,\"bp\",{enumerable:!0,configurable:!0,writable:!0,value:\"\"}),Object.defineProperty(this,\"lp\",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,\"userOptions\",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,\"userPlugins\",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,\"state\",{enumerable:!0,configurable:!0,writable:!0,value:B.Init}),Object.defineProperty(this,\"page\",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,\"prevPage\",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,\"container\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"viewport\",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,\"track\",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,\"slides\",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,\"pages\",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,\"panzoom\",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,\"inTransition\",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),Object.defineProperty(this,\"contentDim\",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,\"viewportDim\",{enumerable:!0,configurable:!0,writable:!0,value:0}),\"string\"==typeof t&&(t=document.querySelector(t)),!t||!E(t))throw new Error(\"No Element found\");this.container=t,this.slideNext=D(this.slideNext.bind(this),150),this.slidePrev=D(this.slidePrev.bind(this),150),this.userOptions=e,this.userPlugins=i,queueMicrotask((()=>{this.processOptions()}))}processOptions(){var t,e;const i=u({},Q.defaults,this.userOptions);let n=\"\";const s=i.breakpoints;if(s&&d(s))for(const[t,e]of Object.entries(s))window.matchMedia(t).matches&&d(e)&&(n+=t,u(i,e));n===this.bp&&this.state!==B.Init||(this.bp=n,this.state===B.Ready&&(i.initialSlide=(null===(e=null===(t=this.pages[this.page])||void 0===t?void 0:t.slides[0])||void 0===e?void 0:e.index)||0),this.state!==B.Init&&this.destroy(),super.setOptions(i),!1===this.option(\"enabled\")?this.attachEvents():setTimeout((()=>{this.init()}),0))}init(){this.state=B.Init,this.emit(\"init\"),this.attachPlugins(Object.assign(Object.assign({},Q.Plugins),this.userPlugins)),this.emit(\"attachPlugins\"),this.initLayout(),this.initSlides(),this.updateMetrics(),this.setInitialPosition(),this.initPanzoom(),this.attachEvents(),this.state=B.Ready,this.emit(\"ready\")}initLayout(){const{container:t}=this,e=this.option(\"classes\");P(t,this.cn(\"container\")),o(t,e.isLTR,!this.isRTL),o(t,e.isRTL,this.isRTL),o(t,e.isVertical,!this.isHorizontal),o(t,e.isHorizontal,this.isHorizontal);let i=this.option(\"viewport\")||t.querySelector(`.${e.viewport}`);i||(i=document.createElement(\"div\"),P(i,e.viewport),i.append(...F(t,`.${e.slide}`)),t.prepend(i)),i.addEventListener(\"scroll\",this.onScroll);let n=this.option(\"track\")||t.querySelector(`.${e.track}`);n||(n=document.createElement(\"div\"),P(n,e.track),n.append(...Array.from(i.childNodes))),n.setAttribute(\"aria-live\",\"polite\"),i.contains(n)||i.prepend(n),this.viewport=i,this.track=n,this.emit(\"initLayout\")}initSlides(){const{track:t}=this;if(!t)return;const e=[...this.slides],i=[];[...F(t,`.${this.cn(J)}`)].forEach((t=>{if(E(t)){const e=H({el:t,isDom:!0,index:this.slides.length});i.push(e)}}));for(let t of[...this.option(\"slides\",[])||[],...e])i.push(H(t));this.slides=i;for(let t=0;t!(this.pages.length<2&&!t.options.infinite),bounds:()=>this.getBounds(),maxVelocity:t=>Math.abs(t.target[this.axis]-t.current[this.axis])<2*this.viewportDim?100:0},t)),this.panzoom.on(\"*\",((t,e,...i)=>{this.emit(`Panzoom.${e}`,t,...i)})),this.panzoom.on(\"decel\",this.onDecel),this.panzoom.on(\"refresh\",this.onRefresh),this.panzoom.on(\"beforeTransform\",this.onBeforeTransform),this.panzoom.on(\"endAnimation\",this.onEndAnimation)}attachEvents(){const t=this.container;t&&(t.addEventListener(\"click\",this.onClick,{passive:!1,capture:!1}),t.addEventListener(\"slideTo\",this.onSlideTo)),window.addEventListener(\"resize\",this.onResize)}createPages(){let t=[];const{contentDim:e,viewportDim:i}=this;let n=this.option(\"slidesPerPage\");n=(\"auto\"===n||e<=i)&&!1!==this.option(\"fill\")?1/0:parseFloat(n+\"\");let s=0,o=0,a=0;for(const e of this.slides)(!t.length||o+e.dim-i>.05||a>=n)&&(t.push(N()),s=t.length-1,o=0,a=0),t[s].slides.push(e),o+=e.dim+e.gap,a++;return t}processPages(){const e=this.pages,{contentDim:i,viewportDim:n,isInfinite:s}=this,o=this.option(\"center\"),a=this.option(\"fill\"),r=a&&o&&i>n&&!s;if(e.forEach(((t,e)=>{var s;t.index=e,t.pos=(null===(s=t.slides[0])||void 0===s?void 0:s.pos)||0,t.dim=0;for(const[e,i]of t.slides.entries())t.dim+=i.dim,e=i-.5*n?t.pos=i-n:o&&(t.pos+=-.5*(n-t.dim))})),e.forEach((e=>{a&&!s&&i>n&&(e.pos=Math.max(e.pos,0),e.pos=Math.min(e.pos,i-n)),e.pos=t(e.pos,1e3),e.dim=t(e.dim,1e3),Math.abs(e.pos)<=.1&&(e.pos=0)})),s)return e;const l=[];let c;return e.forEach((t=>{const e=Object.assign({},t);c&&e.pos===c.pos?(c.dim+=e.dim,c.slides=[...c.slides,...e.slides]):(e.index=l.length,c=e,l.push(e))})),l}getPageFromIndex(t=0){const e=this.pages.length;let i;return t=parseInt((t||0).toString())||0,i=this.isInfinite?(t%e+e)%e:Math.max(Math.min(t,e-1),0),i}getSlideMetrics(e){var i,n;const s=this.isHorizontal?\"width\":\"height\";let o=0,a=0,r=e.el;const l=!(!r||r.parentNode);if(r?o=parseFloat(r.dataset[s]||\"\")||0:(r=document.createElement(\"div\"),r.style.visibility=\"hidden\",(this.track||document.body).prepend(r)),P(r,this.cn(J)+\" \"+e.class+\" \"+e.customClass),o)r.style[s]=`${o}px`,r.style[\"width\"===s?\"height\":\"width\"]=\"\";else{l&&(this.track||document.body).prepend(r),o=r.getBoundingClientRect()[s]*Math.max(1,(null===(i=window.visualViewport)||void 0===i?void 0:i.scale)||1);let t=r[this.isHorizontal?\"offsetWidth\":\"offsetHeight\"];t-1>o&&(o=t)}const c=getComputedStyle(r);return\"content-box\"===c.boxSizing&&(this.isHorizontal?(o+=parseFloat(c.paddingLeft)||0,o+=parseFloat(c.paddingRight)||0):(o+=parseFloat(c.paddingTop)||0,o+=parseFloat(c.paddingBottom)||0)),a=parseFloat(c[this.isHorizontal?\"marginRight\":\"marginBottom\"])||0,l?null===(n=r.parentElement)||void 0===n||n.removeChild(r):e.el||r.remove(),{dim:t(o,1e3),gap:t(a,1e3)}}getBounds(){const{isInfinite:t,isRTL:e,isHorizontal:i,pages:n}=this;let s={min:0,max:0};if(t)s={min:-1/0,max:1/0};else if(n.length){const t=n[0].pos,o=n[n.length-1].pos;s=e&&i?{min:t,max:o}:{min:-1*o,max:-1*t}}return{x:i?s:{min:0,max:0},y:i?{min:0,max:0}:s}}repositionSlides(){let e,{isHorizontal:i,isRTL:n,isInfinite:s,viewport:o,viewportDim:a,contentDim:r,page:l,pages:c,slides:h,panzoom:d}=this,u=0,p=0,f=0,g=0;d?g=-1*d.current[this.axis]:c[l]&&(g=c[l].pos||0),e=i?n?\"right\":\"left\":\"top\",n&&i&&(g*=-1);for(const i of h){const n=i.el;n?(\"top\"===e?(n.style.right=\"\",n.style.left=\"\"):n.style.top=\"\",i.index!==u?n.style[e]=0===p?\"\":`${t(p,1e3)}px`:n.style[e]=\"\",f+=i.dim+i.gap,u++):p+=i.dim+i.gap}if(s&&f&&o){let n=getComputedStyle(o),s=\"padding\",l=i?\"Right\":\"Bottom\",c=parseFloat(n[s+(i?\"Left\":\"Top\")]);g-=c,a+=c,a+=parseFloat(n[s+l]);for(const i of h)i.el&&(t(i.pos)t(r-a)&&(i.el.style[e]=`${t(p+f,1e3)}px`),t(i.pos+i.gap)>=t(r-a)&&t(i.pos)>t(g+a)&&t(g)1&&(m=c[b[0]],v=c[b[1]]),m&&v){let i=0;for(const n of h)n.el?this.inTransition.has(n.index)&&m.slides.indexOf(n)<0&&(n.el.style[e]=`${t(i+(m.pos-v.pos),1e3)}px`):i+=n.dim+n.gap}}createSlideEl(t){const{track:e,slides:i}=this;if(!e||!t)return;if(t.el&&t.el.parentNode)return;const n=t.el||document.createElement(\"div\");P(n,this.cn(J)),P(n,t.class),P(n,t.customClass);const s=t.html;s&&(s instanceof HTMLElement?n.appendChild(s):n.innerHTML=t.html+\"\");const o=[];i.forEach(((t,e)=>{t.el&&o.push(e)}));const a=t.index;let r=null;if(o.length){r=i[o.reduce(((t,e)=>Math.abs(e-a)1)return!1;let h=t>a?1:-1;this.isInfinite&&(0===a&&t===r.length-1&&(h=-1),a===r.length-1&&0===t&&(h=1));const d=r[c].pos*(this.isRTL?1:-1);if(a===c&&Math.abs(d-l.target[this.axis])<1)return!1;this.clearTransitions();const u=l.isResting;P(this.container,this.cn(\"inTransition\"));const p=(null===(s=r[a])||void 0===s?void 0:s.slides[0])||null,f=(null===(o=r[c])||void 0===o?void 0:o.slides[0])||null;this.inTransition.add(f.index),this.createSlideEl(f);let g=p.el,m=f.el;u||e===J||(e=\"fadeFast\",g=null);const v=this.isRTL?\"next\":\"prev\",b=this.isRTL?\"prev\":\"next\";return g&&(this.inTransition.add(p.index),p.transition=e,g.addEventListener(G,this.onAnimationEnd),g.classList.add(`f-${e}Out`,`to-${h>0?b:v}`)),m&&(f.transition=e,m.addEventListener(G,this.onAnimationEnd),m.classList.add(`f-${e}In`,`from-${h>0?v:b}`)),l.current[this.axis]=d,l.target[this.axis]=d,l.requestTick(),this.onChange(c),!0}manageSlideVisiblity(){const t=new Set,e=new Set,i=this.getVisibleSlides(parseFloat(this.option(\"preload\",0)+\"\")||0);for(const n of this.slides)i.has(n)?t.add(n):e.add(n);for(const e of this.inTransition)t.add(this.slides[e]);for(const e of t)this.createSlideEl(e),this.lazyLoadSlide(e);for(const i of e)t.has(i)||this.removeSlideEl(i);this.markSelectedSlides(),this.repositionSlides()}markSelectedSlides(){if(!this.pages[this.page]||!this.pages[this.page].slides)return;const t=\"aria-hidden\";let e=this.cn(K);if(e)for(const i of this.slides){const n=i.el;n&&(n.dataset.index=`${i.index}`,n.classList.contains(\"f-thumbs__slide\")?this.getVisibleSlides(0).has(i)?n.removeAttribute(t):n.setAttribute(t,\"true\"):this.pages[this.page].slides.includes(i)?(n.classList.contains(e)||(P(n,e),this.emit(\"selectSlide\",i)),n.removeAttribute(t)):(n.classList.contains(e)&&(S(n,e),this.emit(\"unselectSlide\",i)),n.setAttribute(t,\"true\")))}}flipInfiniteTrack(){const{axis:t,isHorizontal:e,isInfinite:i,isRTL:n,viewportDim:s,contentDim:o}=this,a=this.panzoom;if(!a||!i)return;let r=a.current[t],l=a.target[t]-r,c=0,h=.5*s;n&&e?(r<-h&&(c=-1,r+=o),r>o-h&&(c=1,r-=o)):(r>h&&(c=1,r-=o),r<-o+h&&(c=-1,r+=o)),c&&(a.current[t]=r,a.target[t]=r+l)}lazyLoadImg(t,e){const i=this,s=\"f-fadeIn\",o=\"is-preloading\";let a=!1,r=null;const l=()=>{a||(a=!0,r&&(r.remove(),r=null),S(e,o),e.complete&&(P(e,s),setTimeout((()=>{S(e,s)}),350)),this.option(\"adaptiveHeight\")&&t.el&&this.pages[this.page].slides.indexOf(t)>-1&&(i.updateMetrics(),i.setViewportHeight()),this.emit(\"load\",t))};P(e,o),e.src=e.dataset.lazySrcset||e.dataset.lazySrc||\"\",delete e.dataset.lazySrc,delete e.dataset.lazySrcset,e.addEventListener(\"error\",(()=>{l()})),e.addEventListener(\"load\",(()=>{l()})),setTimeout((()=>{const i=e.parentNode;i&&t.el&&(e.complete?l():a||(r=n(x),i.insertBefore(r,e)))}),300)}lazyLoadSlide(t){const e=t&&t.el;if(!e)return;const i=new Set;let n=Array.from(e.querySelectorAll(\"[data-lazy-src],[data-lazy-srcset]\"));e.dataset.lazySrc&&n.push(e),n.map((t=>{t instanceof HTMLImageElement?i.add(t):t instanceof HTMLElement&&t.dataset.lazySrc&&(t.style.backgroundImage=`url('${t.dataset.lazySrc}')`,delete t.dataset.lazySrc)}));for(const e of i)this.lazyLoadImg(t,e)}onAnimationEnd(t){var e;const i=t.target,n=i?parseInt(i.dataset.index||\"\",10)||0:-1,s=this.slides[n],o=t.animationName;if(!i||!s||!o)return;const a=!!this.inTransition.has(n)&&s.transition;a&&o.substring(0,a.length+2)===`f-${a}`&&this.inTransition.delete(n),this.inTransition.size||this.clearTransitions(),n===this.page&&(null===(e=this.panzoom)||void 0===e?void 0:e.isResting)&&this.emit(\"settle\")}onDecel(t,e=0,i=0,n=0,s=0){if(this.option(\"dragFree\"))return void this.setPageFromPosition();const{isRTL:o,isHorizontal:a,axis:r,pages:l}=this,c=l.length,h=Math.abs(Math.atan2(i,e)/(Math.PI/180));let d=0;if(d=h>45&&h<135?a?0:i:a?e:0,!c)return;let u=this.page,p=o&&a?1:-1;const f=t.current[r]*p;let{pageIndex:g}=this.getPageFromPosition(f);Math.abs(d)>5?(l[u].dim=t&&(this.page+=d.length),this.updateMetrics(),a){const e=(null===(s=this.pages[this.page])||void 0===s?void 0:s.pos)||0,i=(null===(o=this.pages[this.page])||void 0===o?void 0:o.dim)||0,n=this.pages.length||1,h=this.isRTL?l-i:i-l,d=this.isRTL?r-e:e-r;c&&1===n?(t<=this.page&&(a.current[this.axis]-=h,a.target[this.axis]-=h),a.panTo({[this.isHorizontal?\"x\":\"y\"]:-1*e})):d&&t<=this.page&&(a.target[this.axis]-=d,a.current[this.axis]-=d,a.requestTick())}for(const t of d)this.emit(\"initSlide\",t,t.index)}prependSlide(t){this.addSlide(0,t)}appendSlide(t){this.addSlide(this.slides.length,t)}removeSlide(t){const e=this.slides.length;t=(t%e+e)%e;const i=this.slides[t];if(i){this.removeSlideEl(i,!0),this.slides.splice(t,1);for(let t=0;tthis.page?-1:1;let l=-1*o.current.e,c=t((l-r.pos)/(1*r.dim),1e3),h=c,d=c;this.isInfinite&&!0!==n&&(h=t((l-r.pos+a)/(1*r.dim),1e3),d=t((l-r.pos-a)/(1*r.dim),1e3));let u=[c,h,d].reduce((function(t,e){return Math.abs(e)1?1:u<-1?-1:u}setViewportHeight(){const{page:t,pages:e,viewport:i,isHorizontal:n}=this;if(!i||!e[t])return;let s=0;n&&this.track&&(this.track.style.height=\"auto\",e[t].slides.forEach((t=>{t.el&&(s=Math.max(s,t.el.offsetHeight))}))),i.style.height=s?`${s}px`:\"\"}getPageForSlide(t){for(const e of this.pages)for(const i of e.slides)if(i.index===t)return e.index;return-1}getVisibleSlides(t=0){var e;const i=new Set;let{panzoom:n,contentDim:s,viewportDim:o,pages:a,page:r}=this;if(o){s=s+(null===(e=this.slides[this.slides.length-1])||void 0===e?void 0:e.gap)||0;let l=0;l=n&&n.state!==m.Init&&n.state!==m.Destroy?-1*n.current[this.axis]:a[r]&&a[r].pos||0,this.isInfinite&&(l-=Math.floor(l/s)*s),this.isRTL&&this.isHorizontal&&(l*=-1);const c=l-o*t,h=l+o*(t+1),d=this.isInfinite?[-1,0,1]:[0];for(const t of this.slides)for(const e of d){const n=t.pos+e*s,o=n+t.dim+t.gap;nc&&i.add(t)}}return i}getPageFromPosition(t){const{viewportDim:e,contentDim:i,slides:n,pages:s,panzoom:o}=this,a=s.length,r=n.length,l=n[0],c=n[r-1],h=this.option(\"center\");let d=0,u=0,p=0,f=void 0===t?-1*((null==o?void 0:o.target[this.axis])||0):t;h&&(f+=.5*e),this.isInfinite?(fc.pos+c.dim+.5*c.gap&&(f-=i,p=1)):f=Math.max(l.pos||0,Math.min(f,c.pos));let g=c,m=n.find((t=>{const e=t.pos-.5*g.gap,i=t.pos+t.dim+.5*t.gap;return g=t,f>=e&&f{this.removeSlideEl(t)})),this.detachPlugins(),e&&(e.removeEventListener(\"scroll\",this.onScroll),e.offsetParent&&i&&i.offsetParent&&e.replaceWith(...i.childNodes));for(const[e,i]of Object.entries(o))\"container\"!==e&&i&&t.classList.remove(i);this.track=null,this.viewport=null,this.page=0,this.slides=[];const a=this.events.get(\"ready\");this.events=new Map,a&&this.events.set(\"ready\",a)}}Object.defineProperty(Q,\"Panzoom\",{enumerable:!0,configurable:!0,writable:!0,value:I}),Object.defineProperty(Q,\"defaults\",{enumerable:!0,configurable:!0,writable:!0,value:j}),Object.defineProperty(Q,\"Plugins\",{enumerable:!0,configurable:!0,writable:!0,value:U});const tt=function(t){if(!E(t))return 0;const e=window.scrollY,i=window.innerHeight,n=e+i,s=t.getBoundingClientRect(),o=s.y+e,a=s.height,r=o+a;if(e>r||nr)return 100;if(on)return 100;let l=a;on&&(l-=r-n);const c=l/i*100;return Math.round(c)},et=!(\"undefined\"==typeof window||!window.document||!window.document.createElement);let it;const nt=[\"a[href]\",\"area[href]\",'input:not([disabled]):not([type=\"hidden\"]):not([aria-hidden])',\"select:not([disabled]):not([aria-hidden])\",\"textarea:not([disabled]):not([aria-hidden])\",\"button:not([disabled]):not([aria-hidden]):not(.fancybox-focus-guard)\",\"iframe\",\"object\",\"embed\",\"video\",\"audio\",\"[contenteditable]\",'[tabindex]:not([tabindex^=\"-\"]):not([disabled]):not([aria-hidden])'].join(\",\"),st=t=>{if(t&&et){void 0===it&&document.createElement(\"div\").focus({get preventScroll(){return it=!0,!1}});try{if(it)t.focus({preventScroll:!0});else{const e=window.scrollY||document.body.scrollTop,i=window.scrollX||document.body.scrollLeft;t.focus(),document.body.scrollTo({top:e,left:i,behavior:\"auto\"})}}catch(t){}}},ot=()=>{const t=document;let e,i=\"\",n=\"\",s=\"\";return t.fullscreenEnabled?(i=\"requestFullscreen\",n=\"exitFullscreen\",s=\"fullscreenElement\"):t.webkitFullscreenEnabled&&(i=\"webkitRequestFullscreen\",n=\"webkitExitFullscreen\",s=\"webkitFullscreenElement\"),i&&(e={request:function(e=t.documentElement){return\"webkitRequestFullscreen\"===i?e[i](Element.ALLOW_KEYBOARD_INPUT):e[i]()},exit:function(){return t[s]&&t[n]()},isFullscreen:function(){return t[s]}}),e},at={animated:!0,autoFocus:!0,backdropClick:\"close\",Carousel:{classes:{container:\"fancybox__carousel\",viewport:\"fancybox__viewport\",track:\"fancybox__track\",slide:\"fancybox__slide\"}},closeButton:\"auto\",closeExisting:!1,commonCaption:!1,compact:()=>window.matchMedia(\"(max-width: 578px), (max-height: 578px)\").matches,contentClick:\"toggleZoom\",contentDblClick:!1,defaultType:\"image\",defaultDisplay:\"flex\",dragToClose:!0,Fullscreen:{autoStart:!1},groupAll:!1,groupAttr:\"data-fancybox\",hideClass:\"f-fadeOut\",hideScrollbar:!0,idle:3500,keyboard:{Escape:\"close\",Delete:\"close\",Backspace:\"close\",PageUp:\"next\",PageDown:\"prev\",ArrowUp:\"prev\",ArrowDown:\"next\",ArrowRight:\"next\",ArrowLeft:\"prev\"},l10n:Object.assign(Object.assign({},b),{CLOSE:\"Close\",NEXT:\"Next\",PREV:\"Previous\",MODAL:\"You can close this modal content with the ESC key\",ERROR:\"Something Went Wrong, Please Try Again Later\",IMAGE_ERROR:\"Image Not Found\",ELEMENT_NOT_FOUND:\"HTML Element Not Found\",AJAX_NOT_FOUND:\"Error Loading AJAX : Not Found\",AJAX_FORBIDDEN:\"Error Loading AJAX : Forbidden\",IFRAME_ERROR:\"Error Loading Page\",TOGGLE_ZOOM:\"Toggle zoom level\",TOGGLE_THUMBS:\"Toggle thumbnails\",TOGGLE_SLIDESHOW:\"Toggle slideshow\",TOGGLE_FULLSCREEN:\"Toggle full-screen mode\",DOWNLOAD:\"Download\"}),parentEl:null,placeFocusBack:!0,showClass:\"f-zoomInUp\",startIndex:0,tpl:{closeButton:'',main:'
\\n
\\n
\\n
\\n
'},trapFocus:!0,wheel:\"zoom\"};var rt,lt;!function(t){t[t.Init=0]=\"Init\",t[t.Ready=1]=\"Ready\",t[t.Closing=2]=\"Closing\",t[t.CustomClosing=3]=\"CustomClosing\",t[t.Destroy=4]=\"Destroy\"}(rt||(rt={})),function(t){t[t.Loading=0]=\"Loading\",t[t.Opening=1]=\"Opening\",t[t.Ready=2]=\"Ready\",t[t.Closing=3]=\"Closing\"}(lt||(lt={}));let ct=\"\",ht=!1,dt=!1,ut=null;const pt=()=>{let t=\"\",e=\"\";const i=Oe.getInstance();if(i){const n=i.carousel,s=i.getSlide();if(n&&s){let o=s.slug||void 0,a=s.triggerEl||void 0;e=o||(i.option(\"slug\")||\"\"),!e&&a&&a.dataset&&(e=a.dataset.fancybox||\"\"),e&&\"true\"!==e&&(t=\"#\"+e+(!o&&n.slides.length>1?\"-\"+(s.index+1):\"\"))}}return{hash:t,slug:e,index:1}},ft=()=>{const t=new URL(document.URL).hash,e=t.slice(1).split(\"-\"),i=e[e.length-1],n=i&&/^\\+?\\d+$/.test(i)&&parseInt(e.pop()||\"1\",10)||1;return{hash:t,slug:e.join(\"-\"),index:n}},gt=()=>{const{slug:t,index:e}=ft();if(!t)return;let i=document.querySelector(`[data-slug=\"${t}\"]`);if(i&&i.dispatchEvent(new CustomEvent(\"click\",{bubbles:!0,cancelable:!0})),Oe.getInstance())return;const n=document.querySelectorAll(`[data-fancybox=\"${t}\"]`);n.length&&(i=n[e-1],i&&i.dispatchEvent(new CustomEvent(\"click\",{bubbles:!0,cancelable:!0})))},mt=()=>{if(!1===Oe.defaults.Hash)return;const t=Oe.getInstance();if(!1===(null==t?void 0:t.options.Hash))return;const{slug:e,index:i}=ft(),{slug:n}=pt();t&&(e===n?t.jumpTo(i-1):(ht=!0,t.close())),gt()},vt=()=>{ut&&clearTimeout(ut),queueMicrotask((()=>{mt()}))},bt=()=>{window.addEventListener(\"hashchange\",vt,!1),setTimeout((()=>{mt()}),500)};et&&(/complete|interactive|loaded/.test(document.readyState)?bt():document.addEventListener(\"DOMContentLoaded\",bt));const yt=\"is-zooming-in\";class wt extends _{onCreateSlide(t,e,i){const n=this.instance.optionFor(i,\"src\")||\"\";i.el&&\"image\"===i.type&&\"string\"==typeof n&&this.setImage(i,n)}onRemoveSlide(t,e,i){i.panzoom&&i.panzoom.destroy(),i.panzoom=void 0,i.imageEl=void 0}onChange(t,e,i,n){S(this.instance.container,yt);for(const t of e.slides){const e=t.panzoom;e&&t.index!==i&&e.reset(.35)}}onClose(){var t;const e=this.instance,i=e.container,n=e.getSlide();if(!i||!i.parentElement||!n)return;const{el:s,contentEl:o,panzoom:a,thumbElSrc:r}=n;if(!s||!r||!o||!a||a.isContentLoading||a.state===m.Init||a.state===m.Destroy)return;a.updateMetrics();let l=this.getZoomInfo(n);if(!l)return;this.instance.state=rt.CustomClosing,i.classList.remove(yt),i.classList.add(\"is-zooming-out\"),o.style.backgroundImage=`url('${r}')`;const c=i.getBoundingClientRect();1===((null===(t=window.visualViewport)||void 0===t?void 0:t.scale)||1)&&Object.assign(i.style,{position:\"absolute\",top:`${i.offsetTop+window.scrollY}px`,left:`${i.offsetLeft+window.scrollX}px`,bottom:\"auto\",right:\"auto\",width:`${c.width}px`,height:`${c.height}px`,overflow:\"hidden\"});const{x:h,y:d,scale:u,opacity:p}=l;if(p){const t=((t,e,i,n)=>{const s=e-t,o=n-i;return e=>i+((e-t)/s*o||0)})(a.scale,u,1,0);a.on(\"afterTransform\",(()=>{o.style.opacity=t(a.scale)+\"\"}))}a.on(\"endAnimation\",(()=>{e.destroy()})),a.target.a=u,a.target.b=0,a.target.c=0,a.target.d=u,a.panTo({x:h,y:d,scale:u,friction:p?.2:.33,ignoreBounds:!0}),a.isResting&&e.destroy()}setImage(t,e){const i=this.instance;t.src=e,this.process(t,e).then((e=>{const{contentEl:n,imageEl:s,thumbElSrc:o,el:a}=t;if(i.isClosing()||!n||!s)return;n.offsetHeight;const r=!!i.isOpeningSlide(t)&&this.getZoomInfo(t);if(this.option(\"protected\")&&a){a.addEventListener(\"contextmenu\",(t=>{t.preventDefault()}));const t=document.createElement(\"div\");P(t,\"fancybox-protected\"),n.appendChild(t)}if(o&&r){const s=e.contentRect,a=Math.max(s.fullWidth,s.fullHeight);let c=null;!r.opacity&&a>1200&&(c=document.createElement(\"img\"),P(c,\"fancybox-ghost\"),c.src=o,n.appendChild(c));const h=()=>{c&&(P(c,\"f-fadeFastOut\"),setTimeout((()=>{c&&(c.remove(),c=null)}),200))};(l=o,new Promise(((t,e)=>{const i=new Image;i.onload=t,i.onerror=e,i.src=l}))).then((()=>{i.hideLoading(t),t.state=lt.Opening,this.instance.emit(\"reveal\",t),this.zoomIn(t).then((()=>{h(),this.instance.done(t)}),(()=>{})),c&&setTimeout((()=>{h()}),a>2500?800:200)}),(()=>{i.hideLoading(t),i.revealContent(t)}))}else{const n=this.optionFor(t,\"initialSize\"),s=this.optionFor(t,\"zoom\"),o={event:i.prevMouseMoveEvent||i.options.event,friction:s?.12:0};let a=i.optionFor(t,\"showClass\")||void 0,r=!0;i.isOpeningSlide(t)&&(\"full\"===n?e.zoomToFull(o):\"cover\"===n?e.zoomToCover(o):\"max\"===n?e.zoomToMax(o):r=!1,e.stop(\"current\")),r&&a&&(a=e.isDragging?\"f-fadeIn\":\"\"),i.hideLoading(t),i.revealContent(t,a)}var l}),(()=>{i.setError(t,\"{{IMAGE_ERROR}}\")}))}process(t,e){return new Promise(((i,s)=>{var o;const a=this.instance,r=t.el;a.clearContent(t),a.showLoading(t);let l=this.optionFor(t,\"content\");if(\"string\"==typeof l&&(l=n(l)),!l||!E(l)){if(l=document.createElement(\"img\"),l instanceof HTMLImageElement){let i=\"\",n=t.caption;i=\"string\"==typeof n&&n?n.replace(/<[^>]+>/gi,\"\").substring(0,1e3):`Image ${t.index+1} of ${(null===(o=a.carousel)||void 0===o?void 0:o.pages.length)||1}`,l.src=e||\"\",l.alt=i,l.draggable=!1,t.srcset&&l.setAttribute(\"srcset\",t.srcset),this.instance.isOpeningSlide(t)&&(l.fetchPriority=\"high\")}t.sizes&&l.setAttribute(\"sizes\",t.sizes)}P(l,\"fancybox-image\"),t.imageEl=l,a.setContent(t,l,!1);t.panzoom=new I(r,u({transformParent:!0},this.option(\"Panzoom\")||{},{content:l,width:(e,i)=>a.optionFor(t,\"width\",\"auto\",i)||\"auto\",height:(e,i)=>a.optionFor(t,\"height\",\"auto\",i)||\"auto\",wheel:()=>{const t=a.option(\"wheel\");return(\"zoom\"===t||\"pan\"==t)&&t},click:(e,i)=>{var n,s;if(a.isCompact||a.isClosing())return!1;if(t.index!==(null===(n=a.getSlide())||void 0===n?void 0:n.index))return!1;if(i){const t=i.composedPath()[0];if([\"A\",\"BUTTON\",\"TEXTAREA\",\"OPTION\",\"INPUT\",\"SELECT\",\"VIDEO\"].includes(t.nodeName))return!1}let o=!i||i.target&&(null===(s=t.contentEl)||void 0===s?void 0:s.contains(i.target));return a.option(o?\"contentClick\":\"backdropClick\")||!1},dblClick:()=>a.isCompact?\"toggleZoom\":a.option(\"contentDblClick\")||!1,spinner:!1,panOnlyZoomed:!0,wheelLimit:1/0,on:{ready:t=>{i(t)},error:()=>{s()},destroy:()=>{s()}}}))}))}zoomIn(t){return new Promise(((e,i)=>{const n=this.instance,s=n.container,{panzoom:o,contentEl:a,el:r}=t;o&&o.updateMetrics();const l=this.getZoomInfo(t);if(!(l&&r&&a&&o&&s))return void i();const{x:c,y:h,scale:d,opacity:u}=l,p=()=>{t.state!==lt.Closing&&(u&&(a.style.opacity=Math.max(Math.min(1,1-(1-o.scale)/(1-d)),0)+\"\"),o.scale>=1&&o.scale>o.targetScale-.1&&e(o))},f=t=>{(t.scale<.99||t.scale>1.01)&&!t.isDragging||(S(s,yt),a.style.opacity=\"\",t.off(\"endAnimation\",f),t.off(\"touchStart\",f),t.off(\"afterTransform\",p),e(t))};o.on(\"endAnimation\",f),o.on(\"touchStart\",f),o.on(\"afterTransform\",p),o.on([\"error\",\"destroy\"],(()=>{i()})),o.panTo({x:c,y:h,scale:d,friction:0,ignoreBounds:!0}),o.stop(\"current\");const g={event:\"mousemove\"===o.panMode?n.prevMouseMoveEvent||n.options.event:void 0},m=this.optionFor(t,\"initialSize\");P(s,yt),n.hideLoading(t),\"full\"===m?o.zoomToFull(g):\"cover\"===m?o.zoomToCover(g):\"max\"===m?o.zoomToMax(g):o.reset(.172)}))}getZoomInfo(t){const{el:e,imageEl:i,thumbEl:n,panzoom:s}=t,o=this.instance,a=o.container;if(!e||!i||!n||!s||tt(n)<3||!this.optionFor(t,\"zoom\")||!a||o.state===rt.Destroy)return!1;if(\"0\"===getComputedStyle(a).getPropertyValue(\"--f-images-zoom\"))return!1;const r=window.visualViewport||null;if(1!==(r?r.scale:1))return!1;let{top:l,left:c,width:h,height:d}=n.getBoundingClientRect(),{top:u,left:p,fitWidth:f,fitHeight:g}=s.contentRect;if(!(h&&d&&f&&g))return!1;const m=s.container.getBoundingClientRect();p+=m.left,u+=m.top;const v=-1*(p+.5*f-(c+.5*h)),b=-1*(u+.5*g-(l+.5*d)),y=h/f;let w=this.option(\"zoomOpacity\")||!1;return\"auto\"===w&&(w=Math.abs(h/d-f/g)>.1),{x:v,y:b,scale:y,opacity:w}}attach(){const t=this,e=t.instance;e.on(\"Carousel.change\",t.onChange),e.on(\"Carousel.createSlide\",t.onCreateSlide),e.on(\"Carousel.removeSlide\",t.onRemoveSlide),e.on(\"close\",t.onClose)}detach(){const t=this,e=t.instance;e.off(\"Carousel.change\",t.onChange),e.off(\"Carousel.createSlide\",t.onCreateSlide),e.off(\"Carousel.removeSlide\",t.onRemoveSlide),e.off(\"close\",t.onClose)}}Object.defineProperty(wt,\"defaults\",{enumerable:!0,configurable:!0,writable:!0,value:{initialSize:\"fit\",Panzoom:{maxScale:1},protected:!1,zoom:!0,zoomOpacity:\"auto\"}}),\"function\"==typeof SuppressedError&&SuppressedError;const xt=\"html\",Et=\"image\",St=\"map\",Pt=\"youtube\",Ct=\"vimeo\",Tt=\"html5video\",Mt=(t,e={})=>{const i=new URL(t),n=new URLSearchParams(i.search),s=new URLSearchParams;for(const[t,i]of[...n,...Object.entries(e)]){let e=i+\"\";if(\"t\"===t){let t=e.match(/((\\d*)m)?(\\d*)s?/);t&&s.set(\"start\",60*parseInt(t[2]||\"0\")+parseInt(t[3]||\"0\")+\"\")}else s.set(t,e)}let o=s+\"\",a=t.match(/#t=((.*)?\\d+s)/);return a&&(o+=`#t=${a[1]}`),o},Ot={ajax:null,autoSize:!0,iframeAttr:{allow:\"autoplay; fullscreen\",scrolling:\"auto\"},preload:!0,videoAutoplay:!0,videoRatio:16/9,videoTpl:'',videoFormat:\"\",vimeo:{byline:1,color:\"00adef\",controls:1,dnt:1,muted:0},youtube:{controls:1,enablejsapi:1,nocookie:1,rel:0,fs:1}},At=[\"image\",\"html\",\"ajax\",\"inline\",\"clone\",\"iframe\",\"map\",\"pdf\",\"html5video\",\"youtube\",\"vimeo\"];class Lt extends _{onBeforeInitSlide(t,e,i){this.processType(i)}onCreateSlide(t,e,i){this.setContent(i)}onClearContent(t,e){e.xhr&&(e.xhr.abort(),e.xhr=null);const i=e.iframeEl;i&&(i.onload=i.onerror=null,i.src=\"//about:blank\",e.iframeEl=null);const n=e.contentEl,s=e.placeholderEl;if(\"inline\"===e.type&&n&&s)n.classList.remove(\"fancybox__content\"),\"none\"!==getComputedStyle(n).getPropertyValue(\"display\")&&(n.style.display=\"none\"),setTimeout((()=>{s&&(n&&s.parentNode&&s.parentNode.insertBefore(n,s),s.remove())}),0),e.contentEl=void 0,e.placeholderEl=void 0;else for(;e.el&&e.el.firstChild;)e.el.removeChild(e.el.firstChild)}onSelectSlide(t,e,i){i.state===lt.Ready&&this.playVideo()}onUnselectSlide(t,e,i){var n,s;if(i.type===Tt){try{null===(s=null===(n=i.el)||void 0===n?void 0:n.querySelector(\"video\"))||void 0===s||s.pause()}catch(t){}return}let o;i.type===Ct?o={method:\"pause\",value:\"true\"}:i.type===Pt&&(o={event:\"command\",func:\"pauseVideo\"}),o&&i.iframeEl&&i.iframeEl.contentWindow&&i.iframeEl.contentWindow.postMessage(JSON.stringify(o),\"*\"),i.poller&&clearTimeout(i.poller)}onDone(t,e){t.isCurrentSlide(e)&&!t.isClosing()&&this.playVideo()}onRefresh(t,e){e.slides.forEach((t=>{t.el&&(this.resizeIframe(t),this.setAspectRatio(t))}))}onMessage(t){try{let e=JSON.parse(t.data);if(\"https://player.vimeo.com\"===t.origin){if(\"ready\"===e.event)for(let e of Array.from(document.getElementsByClassName(\"fancybox__iframe\")))e instanceof HTMLIFrameElement&&e.contentWindow===t.source&&(e.dataset.ready=\"true\")}else if(t.origin.match(/^https:\\/\\/(www.)?youtube(-nocookie)?.com$/)&&\"onReady\"===e.event){const t=document.getElementById(e.id);t&&(t.dataset.ready=\"true\")}}catch(t){}}loadAjaxContent(t){const e=this.instance.optionFor(t,\"src\")||\"\";this.instance.showLoading(t);const i=this.instance,n=new XMLHttpRequest;i.showLoading(t),n.onreadystatechange=function(){n.readyState===XMLHttpRequest.DONE&&i.state===rt.Ready&&(i.hideLoading(t),200===n.status?i.setContent(t,n.responseText):i.setError(t,404===n.status?\"{{AJAX_NOT_FOUND}}\":\"{{AJAX_FORBIDDEN}}\"))};const s=t.ajax||null;n.open(s?\"POST\":\"GET\",e+\"\"),n.setRequestHeader(\"Content-Type\",\"application/x-www-form-urlencoded\"),n.setRequestHeader(\"X-Requested-With\",\"XMLHttpRequest\"),n.send(s),t.xhr=n}setInlineContent(t){let e=null;if(E(t.src))e=t.src;else if(\"string\"==typeof t.src){const i=t.src.split(\"#\",2).pop();e=i?document.getElementById(i):null}if(e){if(\"clone\"===t.type||e.closest(\".fancybox__slide\")){e=e.cloneNode(!0);const i=e.dataset.animationName;i&&(e.classList.remove(i),delete e.dataset.animationName);let n=e.getAttribute(\"id\");n=n?`${n}--clone`:`clone-${this.instance.id}-${t.index}`,e.setAttribute(\"id\",n)}else if(e.parentNode){const i=document.createElement(\"div\");i.classList.add(\"fancybox-placeholder\"),e.parentNode.insertBefore(i,e),t.placeholderEl=i}this.instance.setContent(t,e)}else this.instance.setError(t,\"{{ELEMENT_NOT_FOUND}}\")}setIframeContent(t){const{src:e,el:i}=t;if(!e||\"string\"!=typeof e||!i)return;i.classList.add(\"is-loading\");const n=this.instance,s=document.createElement(\"iframe\");s.className=\"fancybox__iframe\",s.setAttribute(\"id\",`fancybox__iframe_${n.id}_${t.index}`);for(const[e,i]of Object.entries(this.optionFor(t,\"iframeAttr\")||{}))s.setAttribute(e,i);s.onerror=()=>{n.setError(t,\"{{IFRAME_ERROR}}\")},t.iframeEl=s;const o=this.optionFor(t,\"preload\");if(\"iframe\"!==t.type||!1===o)return s.setAttribute(\"src\",t.src+\"\"),n.setContent(t,s,!1),this.resizeIframe(t),void n.revealContent(t);n.showLoading(t),s.onload=()=>{if(!s.src.length)return;const e=\"true\"!==s.dataset.ready;s.dataset.ready=\"true\",this.resizeIframe(t),e?n.revealContent(t):n.hideLoading(t)},s.setAttribute(\"src\",e),n.setContent(t,s,!1)}resizeIframe(t){const{type:e,iframeEl:i}=t;if(e===Pt||e===Ct)return;const n=null==i?void 0:i.parentElement;if(!i||!n)return;let s=t.autoSize;void 0===s&&(s=this.optionFor(t,\"autoSize\"));let o=t.width||0,a=t.height||0;o&&a&&(s=!1);const r=n&&n.style;if(!1!==t.preload&&!1!==s&&r)try{const t=window.getComputedStyle(n),e=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),s=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),l=i.contentWindow;if(l){const t=l.document,i=t.getElementsByTagName(xt)[0],n=t.body;r.width=\"\",n.style.overflow=\"hidden\",o=o||i.scrollWidth+e,r.width=`${o}px`,n.style.overflow=\"\",r.flex=\"0 0 auto\",r.height=`${n.scrollHeight}px`,a=i.scrollHeight+s}}catch(t){}if(o||a){const t={flex:\"0 1 auto\",width:\"\",height:\"\"};o&&\"auto\"!==o&&(t.width=`${o}px`),a&&\"auto\"!==a&&(t.height=`${a}px`),Object.assign(r,t)}}playVideo(){const t=this.instance.getSlide();if(!t)return;const{el:e}=t;if(!e||!e.offsetParent)return;if(!this.optionFor(t,\"videoAutoplay\"))return;if(t.type===Tt)try{const t=e.querySelector(\"video\");if(t){const e=t.play();void 0!==e&&e.then((()=>{})).catch((e=>{t.muted=!0,t.play()}))}}catch(t){}if(t.type!==Pt&&t.type!==Ct)return;const i=()=>{if(t.iframeEl&&t.iframeEl.contentWindow){let e;if(\"true\"===t.iframeEl.dataset.ready)return e=t.type===Pt?{event:\"command\",func:\"playVideo\"}:{method:\"play\",value:\"true\"},e&&t.iframeEl.contentWindow.postMessage(JSON.stringify(e),\"*\"),void(t.poller=void 0);t.type===Pt&&(e={event:\"listening\",id:t.iframeEl.getAttribute(\"id\")},t.iframeEl.contentWindow.postMessage(JSON.stringify(e),\"*\"))}t.poller=setTimeout(i,250)};i()}processType(t){if(t.html)return t.type=xt,t.src=t.html,void(t.html=\"\");const e=this.instance.optionFor(t,\"src\",\"\");if(!e||\"string\"!=typeof e)return;let i=t.type,n=null;if(n=e.match(/(youtube\\.com|youtu\\.be|youtube\\-nocookie\\.com)\\/(?:watch\\?(?:.*&)?v=|v\\/|u\\/|shorts\\/|embed\\/?)?(videoseries\\?list=(?:.*)|[\\w-]{11}|\\?listType=(?:.*)&list=(?:.*))(?:.*)/i)){const s=this.optionFor(t,Pt),{nocookie:o}=s,a=function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&\"function\"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(t);s0?\"svembed\":\"embed\"}`,i=St):(n=e.match(/(?:maps\\.)?google\\.([a-z]{2,3}(?:\\.[a-z]{2})?)\\/(?:maps\\/search\\/)(.*)/i))&&(t.src=`https://maps.google.${n[1]}/maps?q=${n[2].replace(\"query=\",\"q=\").replace(\"api=1\",\"\")}&output=embed`,i=St),i=i||this.instance.option(\"defaultType\"),t.type=i,i===Et&&(t.thumbSrc=t.thumbSrc||t.src)}setContent(t){const e=this.instance.optionFor(t,\"src\")||\"\";if(t&&t.type&&e){switch(t.type){case xt:this.instance.setContent(t,e);break;case Tt:const i=this.option(\"videoTpl\");i&&this.instance.setContent(t,i.replace(/\\{\\{src\\}\\}/gi,e+\"\").replace(/\\{\\{format\\}\\}/gi,this.optionFor(t,\"videoFormat\")||\"\").replace(/\\{\\{poster\\}\\}/gi,t.poster||t.thumbSrc||\"\"));break;case\"inline\":case\"clone\":this.setInlineContent(t);break;case\"ajax\":this.loadAjaxContent(t);break;case\"pdf\":case St:case Pt:case Ct:t.preload=!1;case\"iframe\":this.setIframeContent(t)}this.setAspectRatio(t)}}setAspectRatio(t){const e=t.contentEl;if(!(t.el&&e&&t.type&&[Pt,Ct,Tt].includes(t.type)))return;let i,n=t.width||\"auto\",s=t.height||\"auto\";if(\"auto\"===n||\"auto\"===s){i=this.optionFor(t,\"videoRatio\");const e=(i+\"\").match(/(\\d+)\\s*\\/\\s?(\\d+)/);i=e&&e.length>2?parseFloat(e[1])/parseFloat(e[2]):parseFloat(i+\"\")}else n&&s&&(i=n/s);if(!i)return;e.style.aspectRatio=\"\",e.style.width=\"\",e.style.height=\"\",e.offsetHeight;const o=e.getBoundingClientRect(),a=o.width||1,r=o.height||1;e.style.aspectRatio=i+\"\",i{t.timer=null,t.inHover||t.onTimerEnd()}),i),t.emit(\"set\")}clear(){const t=this;t.timer&&(clearTimeout(t.timer),t.timer=null),t.removeProgressBar()}start(){const t=this;if(t.set(),t.state!==kt){if(t.option(\"pauseOnHover\")){const e=t.instance.container;e.addEventListener(\"mouseenter\",t.onMouseEnter,!1),e.addEventListener(\"mouseleave\",t.onMouseLeave,!1)}document.addEventListener(\"visibilitychange\",t.onVisibilityChange,!1),t.emit(\"start\")}}stop(){const t=this,e=t.state,i=t.instance.container;t.clear(),t.state=kt,i.removeEventListener(\"mouseenter\",t.onMouseEnter,!1),i.removeEventListener(\"mouseleave\",t.onMouseLeave,!1),document.removeEventListener(\"visibilitychange\",t.onVisibilityChange,!1),S(i,\"has-autoplay\"),e!==kt&&t.emit(\"stop\")}pause(){const t=this;t.state===zt&&(t.state=Rt,t.clear(),t.emit(Rt))}resume(){const t=this,e=t.instance;if(e.isInfinite||e.page!==e.pages.length-1)if(t.state!==zt){if(t.state===Rt&&!t.inHover){const e=new Event(\"resume\",{bubbles:!0,cancelable:!0});t.emit(\"resume\",e),e.defaultPrevented||t.set()}}else t.set();else t.stop()}toggle(){this.state===zt||this.state===Rt?this.stop():this.start()}attach(){const t=this,e=t.instance;e.on(\"ready\",t.onReady),e.on(\"Panzoom.startAnimation\",t.onChange),e.on(\"Panzoom.endAnimation\",t.onSettle),e.on(\"Panzoom.touchMove\",t.onChange)}detach(){const t=this,e=t.instance;e.off(\"ready\",t.onReady),e.off(\"Panzoom.startAnimation\",t.onChange),e.off(\"Panzoom.endAnimation\",t.onSettle),e.off(\"Panzoom.touchMove\",t.onChange),t.stop()}}Object.defineProperty(It,\"defaults\",{enumerable:!0,configurable:!0,writable:!0,value:{autoStart:!0,pauseOnHover:!0,progressParentEl:null,showProgress:!0,timeout:3e3}});class Dt extends _{constructor(){super(...arguments),Object.defineProperty(this,\"ref\",{enumerable:!0,configurable:!0,writable:!0,value:null})}onPrepare(t){const e=t.carousel;if(!e)return;const i=t.container;i&&(e.options.Autoplay=u({autoStart:!1},this.option(\"Autoplay\")||{},{pauseOnHover:!1,timeout:this.option(\"timeout\"),progressParentEl:()=>this.option(\"progressParentEl\")||null,on:{start:()=>{t.emit(\"startSlideshow\")},set:e=>{var n;i.classList.add(\"has-slideshow\"),(null===(n=t.getSlide())||void 0===n?void 0:n.state)!==lt.Ready&&e.pause()},stop:()=>{i.classList.remove(\"has-slideshow\"),t.isCompact||t.endIdle(),t.emit(\"endSlideshow\")},resume:(e,i)=>{var n,s,o;!i||!i.cancelable||(null===(n=t.getSlide())||void 0===n?void 0:n.state)===lt.Ready&&(null===(o=null===(s=t.carousel)||void 0===s?void 0:s.panzoom)||void 0===o?void 0:o.isResting)||i.preventDefault()}}}),e.attachPlugins({Autoplay:It}),this.ref=e.plugins.Autoplay)}onReady(t){const e=t.carousel,i=this.ref;i&&e&&this.option(\"playOnStart\")&&(e.isInfinite||e.page{t.isCurrentSlide(e)&&i.stop()})),t.isCurrentSlide(e)&&i.resume()}onKeydown(t,e){var i;const n=this.ref;n&&e===this.option(\"key\")&&\"BUTTON\"!==(null===(i=document.activeElement)||void 0===i?void 0:i.nodeName)&&n.toggle()}attach(){const t=this,e=t.instance;e.on(\"Carousel.init\",t.onPrepare),e.on(\"Carousel.ready\",t.onReady),e.on(\"done\",t.onDone),e.on(\"keydown\",t.onKeydown)}detach(){const t=this,e=t.instance;e.off(\"Carousel.init\",t.onPrepare),e.off(\"Carousel.ready\",t.onReady),e.off(\"done\",t.onDone),e.off(\"keydown\",t.onKeydown)}}Object.defineProperty(Dt,\"defaults\",{enumerable:!0,configurable:!0,writable:!0,value:{key:\" \",playOnStart:!1,progressParentEl:t=>{var e;return(null===(e=t.instance.container)||void 0===e?void 0:e.querySelector(\".fancybox__toolbar [data-fancybox-toggle-slideshow]\"))||t.instance.container},timeout:3e3}});const Ft={classes:{container:\"f-thumbs f-carousel__thumbs\",viewport:\"f-thumbs__viewport\",track:\"f-thumbs__track\",slide:\"f-thumbs__slide\",isResting:\"is-resting\",isSelected:\"is-selected\",isLoading:\"is-loading\",hasThumbs:\"has-thumbs\"},minCount:2,parentEl:null,thumbTpl:'',type:\"modern\"};var jt;!function(t){t[t.Init=0]=\"Init\",t[t.Ready=1]=\"Ready\",t[t.Hidden=2]=\"Hidden\"}(jt||(jt={}));const Bt=\"isResting\",Ht=\"thumbWidth\",Nt=\"thumbHeight\",_t=\"thumbClipWidth\";let $t=class extends _{constructor(){super(...arguments),Object.defineProperty(this,\"type\",{enumerable:!0,configurable:!0,writable:!0,value:\"modern\"}),Object.defineProperty(this,\"container\",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,\"track\",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,\"carousel\",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,\"thumbWidth\",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,\"thumbClipWidth\",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,\"thumbHeight\",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,\"thumbGap\",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,\"thumbExtraGap\",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,\"state\",{enumerable:!0,configurable:!0,writable:!0,value:jt.Init})}get isModern(){return\"modern\"===this.type}onInitSlide(t,e){const i=e.el?e.el.dataset:void 0;i&&(e.thumbSrc=i.thumbSrc||e.thumbSrc||\"\",e[_t]=parseFloat(i[_t]||\"\")||e[_t]||0,e[Nt]=parseFloat(i.thumbHeight||\"\")||e[Nt]||0),this.addSlide(e)}onInitSlides(){this.build()}onChange(){var t;if(!this.isModern)return;const e=this.container,i=this.instance,n=i.panzoom,s=this.carousel,a=s?s.panzoom:null,r=i.page;if(n&&s&&a){if(n.isDragging){S(e,this.cn(Bt));let n=(null===(t=s.pages[r])||void 0===t?void 0:t.pos)||0;n+=i.getProgress(r)*(this[_t]+this.thumbGap);let o=a.getBounds();-1*n>o.x.min&&-1*nparseFloat(getComputedStyle(t).getPropertyValue(\"--f-thumb-\"+e))||0;this.thumbGap=e(\"gap\"),this.thumbExtraGap=e(\"extra-gap\"),this[Ht]=e(\"width\")||40,this[_t]=e(\"clip-width\")||40,this[Nt]=e(\"height\")||40}build(){const t=this;if(t.state!==jt.Init)return;if(t.isDisabled())return void t.emit(\"disabled\");const e=t.instance,i=e.container,n=t.getSlides(),s=t.option(\"type\");t.type=s;const o=t.option(\"parentEl\"),a=t.cn(\"container\"),r=t.cn(\"track\");let l=null==o?void 0:o.querySelector(\".\"+a);l||(l=document.createElement(\"div\"),P(l,a),o?o.appendChild(l):i.after(l)),P(l,`is-${s}`),P(i,t.cn(\"hasThumbs\")),t.container=l,t.updateProps();let c=l.querySelector(\".\"+r);c||(c=document.createElement(\"div\"),P(c,t.cn(\"track\")),l.appendChild(c)),t.track=c;const h=u({},{track:c,infinite:!1,center:!0,fill:\"classic\"===s,dragFree:!0,slidesPerPage:1,transition:!1,preload:.25,friction:.12,Panzoom:{maxVelocity:0},Dots:!1,Navigation:!1,classes:{container:\"f-thumbs\",viewport:\"f-thumbs__viewport\",track:\"f-thumbs__track\",slide:\"f-thumbs__slide\"}},t.option(\"Carousel\")||{},{Sync:{target:e},slides:n}),d=new e.constructor(l,h);d.on(\"createSlide\",((e,i)=>{t.setProps(i.index),t.emit(\"createSlide\",i,i.el)})),d.on(\"ready\",(()=>{t.shiftModern(),t.emit(\"ready\")})),d.on(\"refresh\",(()=>{t.shiftModern()})),d.on(\"Panzoom.click\",((e,i,n)=>{t.onClick(n)})),t.carousel=d,t.state=jt.Ready}onClick(t){t.preventDefault(),t.stopPropagation();const e=this.instance,{pages:i,page:n}=e,s=t=>{if(t){const e=t.closest(\"[data-carousel-index]\");if(e)return[parseInt(e.dataset.carouselIndex||\"\",10)||0,e]}return[-1,void 0]},o=(t,e)=>{const i=document.elementFromPoint(t,e);return i?s(i):[-1,void 0]};let[a,r]=s(t.target);if(a>-1)return;const l=this[_t],c=t.clientX,h=t.clientY;let[d,u]=o(c-l,h),[p,f]=o(c+l,h);u&&f?(a=Math.abs(c-u.getBoundingClientRect().right)-1&&i[a]&&e.slideTo(a)}getShift(t){var e;const i=this,{instance:n}=i,s=i.carousel;if(!n||!s)return 0;const o=i[Ht],a=i[_t],r=i.thumbGap,l=i.thumbExtraGap;if(!(null===(e=s.slides[t])||void 0===e?void 0:e.el))return 0;const c=.5*(o-a),h=n.pages.length-1;let d=n.getProgress(0),u=n.getProgress(h),p=n.getProgress(t,!1,!0),f=0,g=c+l+r;const m=d<0&&d>-1,v=u>0&&u<1;return 0===t?(f=g*Math.abs(d),v&&1===d&&(f-=g*Math.abs(u))):t===h?(f=g*Math.abs(u)*-1,m&&-1===u&&(f+=g*Math.abs(d))):m||v?(f=-1*g,f+=g*Math.abs(d),f+=g*(1-Math.abs(u))):f=g*p,f}setProps(e){var i;const n=this;if(!n.isModern)return;const{instance:s}=n,o=n.carousel;if(s&&o){const a=null===(i=o.slides[e])||void 0===i?void 0:i.el;if(a&&a.childNodes.length){let i=t(1-Math.abs(s.getProgress(e))),o=t(n.getShift(e));a.style.setProperty(\"--progress\",i?i+\"\":\"\"),a.style.setProperty(\"--shift\",o+\"\")}}}shiftModern(){const t=this;if(!t.isModern)return;const{instance:e,track:i}=t,n=e.panzoom,s=t.carousel;if(!(e&&i&&n&&s))return;if(n.state===m.Init||n.state===m.Destroy)return;for(const i of e.slides)t.setProps(i.index);let o=(t[_t]+t.thumbGap)*(s.slides.length||0);i.style.setProperty(\"--width\",o+\"\")}cleanup(){const t=this;t.carousel&&t.carousel.destroy(),t.carousel=null,t.container&&t.container.remove(),t.container=null,t.track&&t.track.remove(),t.track=null,t.state=jt.Init,S(t.instance.container,t.cn(\"hasThumbs\"))}attach(){const t=this,e=t.instance;e.on(\"initSlide\",t.onInitSlide),e.state===B.Init?e.on(\"initSlides\",t.onInitSlides):t.onInitSlides(),e.on([\"change\",\"Panzoom.afterTransform\"],t.onChange),e.on(\"Panzoom.refresh\",t.onRefresh)}detach(){const t=this,e=t.instance;e.off(\"initSlide\",t.onInitSlide),e.off(\"initSlides\",t.onInitSlides),e.off([\"change\",\"Panzoom.afterTransform\"],t.onChange),e.off(\"Panzoom.refresh\",t.onRefresh),t.cleanup()}};Object.defineProperty($t,\"defaults\",{enumerable:!0,configurable:!0,writable:!0,value:Ft});const Wt=Object.assign(Object.assign({},Ft),{key:\"t\",showOnStart:!0,parentEl:null}),Xt=\"is-masked\",qt=\"aria-hidden\";class Yt extends _{constructor(){super(...arguments),Object.defineProperty(this,\"ref\",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,\"hidden\",{enumerable:!0,configurable:!0,writable:!0,value:!1})}get isEnabled(){const t=this.ref;return t&&!t.isDisabled()}get isHidden(){return this.hidden}onClick(t,e){e.stopPropagation()}onCreateSlide(t,e){var i,n,s;const o=(null===(s=null===(n=null===(i=this.instance)||void 0===i?void 0:i.carousel)||void 0===n?void 0:n.slides[e.index])||void 0===s?void 0:s.type)||\"\",a=e.el;if(a&&o){let t=`for-${o}`;[\"video\",\"youtube\",\"vimeo\",\"html5video\"].includes(o)&&(t+=\" for-video\"),P(a,t)}}onInit(){var t;const e=this,i=e.instance,n=i.carousel;if(e.ref||!n)return;const s=e.option(\"parentEl\")||i.footer||i.container;if(!s)return;const o=u({},e.options,{parentEl:s,classes:{container:\"f-thumbs fancybox__thumbs\"},Carousel:{Sync:{friction:i.option(\"Carousel.friction\")||0}},on:{ready:t=>{const i=t.container;i&&this.hidden&&(e.refresh(),i.style.transition=\"none\",e.hide(),i.offsetHeight,queueMicrotask((()=>{i.style.transition=\"\",e.show()})))}}});o.Carousel=o.Carousel||{},o.Carousel.on=u((null===(t=e.options.Carousel)||void 0===t?void 0:t.on)||{},{click:this.onClick,createSlide:this.onCreateSlide}),n.options.Thumbs=o,n.attachPlugins({Thumbs:$t}),e.ref=n.plugins.Thumbs,e.option(\"showOnStart\")||(e.ref.state=jt.Hidden,e.hidden=!0)}onResize(){var t;const e=null===(t=this.ref)||void 0===t?void 0:t.container;e&&(e.style.maxHeight=\"\")}onKeydown(t,e){const i=this.option(\"key\");i&&i===e&&this.toggle()}toggle(){const t=this.ref;if(t&&!t.isDisabled())return t.state===jt.Hidden?(t.state=jt.Init,void t.build()):void(this.hidden?this.show():this.hide())}show(){const t=this.ref;if(!t||t.isDisabled())return;const e=t.container;e&&(this.refresh(),e.offsetHeight,e.removeAttribute(qt),e.classList.remove(Xt),this.hidden=!1)}hide(){const t=this.ref,e=t&&t.container;e&&(this.refresh(),e.offsetHeight,e.classList.add(Xt),e.setAttribute(qt,\"true\")),this.hidden=!0}refresh(){const t=this.ref;if(!t||!t.state)return;const e=t.container,i=(null==e?void 0:e.firstChild)||null;e&&i&&i.childNodes.length&&(e.style.maxHeight=`${i.getBoundingClientRect().height}px`)}attach(){const t=this,e=t.instance;e.state===rt.Init?e.on(\"Carousel.init\",t.onInit):t.onInit(),e.on(\"resize\",t.onResize),e.on(\"keydown\",t.onKeydown)}detach(){var t;const e=this,i=e.instance;i.off(\"Carousel.init\",e.onInit),i.off(\"resize\",e.onResize),i.off(\"keydown\",e.onKeydown),null===(t=i.carousel)||void 0===t||t.detachPlugins([\"Thumbs\"]),e.ref=null}}Object.defineProperty(Yt,\"defaults\",{enumerable:!0,configurable:!0,writable:!0,value:Wt});const Vt={panLeft:{icon:'',change:{panX:-100}},panRight:{icon:'',change:{panX:100}},panUp:{icon:'',change:{panY:-100}},panDown:{icon:'',change:{panY:100}},zoomIn:{icon:'',action:\"zoomIn\"},zoomOut:{icon:'',action:\"zoomOut\"},toggle1to1:{icon:'',action:\"toggleZoom\"},toggleZoom:{icon:'',action:\"toggleZoom\"},iterateZoom:{icon:'',action:\"iterateZoom\"},rotateCCW:{icon:'',action:\"rotateCCW\"},rotateCW:{icon:'',action:\"rotateCW\"},flipX:{icon:'',action:\"flipX\"},flipY:{icon:'',action:\"flipY\"},fitX:{icon:'',action:\"fitX\"},fitY:{icon:'',action:\"fitY\"},reset:{icon:'',action:\"reset\"},toggleFS:{icon:'',action:\"toggleFS\"}};var Zt;!function(t){t[t.Init=0]=\"Init\",t[t.Ready=1]=\"Ready\",t[t.Disabled=2]=\"Disabled\"}(Zt||(Zt={}));const Ut={absolute:\"auto\",display:{left:[\"infobar\"],middle:[],right:[\"iterateZoom\",\"slideshow\",\"fullscreen\",\"thumbs\",\"close\"]},enabled:\"auto\",items:{infobar:{tpl:'
/
'},download:{tpl:'
'},prev:{tpl:''},next:{tpl:''},slideshow:{tpl:''},fullscreen:{tpl:''},thumbs:{tpl:''},close:{tpl:''}},parentEl:null},Gt={tabindex:\"-1\",width:\"24\",height:\"24\",viewBox:\"0 0 24 24\",xmlns:\"http://www.w3.org/2000/svg\"},Kt=\"has-toolbar\",Jt=\"fancybox__toolbar\";class Qt extends _{constructor(){super(...arguments),Object.defineProperty(this,\"state\",{enumerable:!0,configurable:!0,writable:!0,value:Zt.Init}),Object.defineProperty(this,\"container\",{enumerable:!0,configurable:!0,writable:!0,value:null})}onReady(t){var e;if(!t.carousel)return;let i=this.option(\"display\"),n=this.option(\"absolute\"),s=this.option(\"enabled\");if(\"auto\"===s){const t=this.instance.carousel;let e=0;if(t)for(const i of t.slides)(i.panzoom||\"image\"===i.type)&&e++;e||(s=!1)}s||(i=void 0);let o=0;const a={left:[],middle:[],right:[]};if(i)for(const t of[\"left\",\"middle\",\"right\"])for(const n of i[t]){const i=this.createEl(n);i&&(null===(e=a[t])||void 0===e||e.push(i),o++)}let r=null;if(o&&(r=this.createContainer()),r){for(const[t,e]of Object.entries(a)){const i=document.createElement(\"div\");P(i,Jt+\"__column is-\"+t);for(const t of e)i.appendChild(t);\"auto\"!==n||\"middle\"!==t||e.length||(n=!0),r.appendChild(i)}!0===n&&P(r,\"is-absolute\"),this.state=Zt.Ready,this.onRefresh()}else this.state=Zt.Disabled}onClick(t){var e,i;const n=this.instance,s=n.getSlide(),o=null==s?void 0:s.panzoom,a=t.target,r=a&&E(a)?a.dataset:null;if(!r)return;if(void 0!==r.fancyboxToggleThumbs)return t.preventDefault(),t.stopPropagation(),void(null===(e=n.plugins.Thumbs)||void 0===e||e.toggle());if(void 0!==r.fancyboxToggleFullscreen)return t.preventDefault(),t.stopPropagation(),void this.instance.toggleFullscreen();if(void 0!==r.fancyboxToggleSlideshow){t.preventDefault(),t.stopPropagation();const e=null===(i=n.carousel)||void 0===i?void 0:i.plugins.Autoplay;let s=e.isActive;return o&&\"mousemove\"===o.panMode&&!s&&o.reset(),void(s?e.stop():e.start())}const l=r.panzoomAction,c=r.panzoomChange;if((c||l)&&(t.preventDefault(),t.stopPropagation()),c){let t={};try{t=JSON.parse(c)}catch(t){}o&&o.applyChange(t)}else l&&o&&o[l]&&o[l]()}onChange(){this.onRefresh()}onRefresh(){if(this.instance.isClosing())return;const t=this.container;if(!t)return;const e=this.instance.getSlide();if(!e||e.state!==lt.Ready)return;const i=e&&!e.error&&e.panzoom;for(const e of t.querySelectorAll(\"[data-panzoom-action]\"))i?(e.removeAttribute(\"disabled\"),e.removeAttribute(\"tabindex\")):(e.setAttribute(\"disabled\",\"\"),e.setAttribute(\"tabindex\",\"-1\"));let n=i&&i.canZoomIn(),s=i&&i.canZoomOut();for(const e of t.querySelectorAll('[data-panzoom-action=\"zoomIn\"]'))n?(e.removeAttribute(\"disabled\"),e.removeAttribute(\"tabindex\")):(e.setAttribute(\"disabled\",\"\"),e.setAttribute(\"tabindex\",\"-1\"));for(const e of t.querySelectorAll('[data-panzoom-action=\"zoomOut\"]'))s?(e.removeAttribute(\"disabled\"),e.removeAttribute(\"tabindex\")):(e.setAttribute(\"disabled\",\"\"),e.setAttribute(\"tabindex\",\"-1\"));for(const e of t.querySelectorAll('[data-panzoom-action=\"toggleZoom\"],[data-panzoom-action=\"iterateZoom\"]')){s||n?(e.removeAttribute(\"disabled\"),e.removeAttribute(\"tabindex\")):(e.setAttribute(\"disabled\",\"\"),e.setAttribute(\"tabindex\",\"-1\"));const t=e.querySelector(\"g\");t&&(t.style.display=n?\"\":\"none\")}}onDone(t,e){var i;null===(i=e.panzoom)||void 0===i||i.on(\"afterTransform\",(()=>{this.instance.isCurrentSlide(e)&&this.onRefresh()})),this.instance.isCurrentSlide(e)&&this.onRefresh()}createContainer(){const t=this.instance.container;if(!t)return null;const e=this.option(\"parentEl\")||t;let i=e.querySelector(\".\"+Jt);return i||(i=document.createElement(\"div\"),P(i,Jt),e.prepend(i)),i.addEventListener(\"click\",this.onClick,{passive:!1,capture:!0}),t&&P(t,Kt),this.container=i,i}createEl(t){const e=this.instance,i=e.carousel;if(!i)return null;if(\"toggleFS\"===t)return null;if(\"fullscreen\"===t&&!ot())return null;let s=null;const o=i.slides.length||0;let a=0,r=0;for(const t of i.slides)(t.panzoom||\"image\"===t.type)&&a++,(\"image\"===t.type||t.downloadSrc)&&r++;if(o<2&&[\"infobar\",\"prev\",\"next\"].includes(t))return s;if(void 0!==Vt[t]&&!a)return null;if(\"download\"===t&&!r)return null;if(\"thumbs\"===t){const t=e.plugins.Thumbs;if(!t||!t.isEnabled)return null}if(\"slideshow\"===t){if(!i.plugins.Autoplay||o<2)return null}if(void 0!==Vt[t]){const e=Vt[t];s=document.createElement(\"button\"),s.setAttribute(\"title\",this.instance.localize(`{{${t.toUpperCase()}}}`)),P(s,\"f-button\"),e.action&&(s.dataset.panzoomAction=e.action),e.change&&(s.dataset.panzoomChange=JSON.stringify(e.change)),s.appendChild(n(this.instance.localize(e.icon)))}else{const e=(this.option(\"items\")||[])[t];e&&(s=n(this.instance.localize(e.tpl)),\"function\"==typeof e.click&&s.addEventListener(\"click\",(t=>{t.preventDefault(),t.stopPropagation(),\"function\"==typeof e.click&&e.click.call(this,this,t)})))}const l=null==s?void 0:s.querySelector(\"svg\");if(l)for(const[t,e]of Object.entries(Gt))l.getAttribute(t)||l.setAttribute(t,String(e));return s}removeContainer(){const t=this.container;t&&t.remove(),this.container=null,this.state=Zt.Disabled;const e=this.instance.container;e&&S(e,Kt)}attach(){const t=this,e=t.instance;e.on(\"Carousel.initSlides\",t.onReady),e.on(\"done\",t.onDone),e.on([\"reveal\",\"Carousel.change\"],t.onChange),t.onReady(t.instance)}detach(){const t=this,e=t.instance;e.off(\"Carousel.initSlides\",t.onReady),e.off(\"done\",t.onDone),e.off([\"reveal\",\"Carousel.change\"],t.onChange),t.removeContainer()}}Object.defineProperty(Qt,\"defaults\",{enumerable:!0,configurable:!0,writable:!0,value:Ut});const te={Hash:class extends _{onReady(){ht=!1}onChange(t){ut&&clearTimeout(ut);const{hash:e}=pt(),{hash:i}=ft(),n=t.isOpeningSlide(t.getSlide());n&&(ct=i===e?\"\":i),e&&e!==i&&(ut=setTimeout((()=>{try{if(t.state===rt.Ready){let t=\"replaceState\";n&&!dt&&(t=\"pushState\",dt=!0),window.history[t]({},document.title,window.location.pathname+window.location.search+e)}}catch(t){}}),300))}onClose(t){if(ut&&clearTimeout(ut),!ht&&dt)return dt=!1,ht=!1,void window.history.back();if(!ht)try{window.history.replaceState({},document.title,window.location.pathname+window.location.search+(ct||\"\"))}catch(t){}}attach(){const t=this.instance;t.on(\"ready\",this.onReady),t.on([\"Carousel.ready\",\"Carousel.change\"],this.onChange),t.on(\"close\",this.onClose)}detach(){const t=this.instance;t.off(\"ready\",this.onReady),t.off([\"Carousel.ready\",\"Carousel.change\"],this.onChange),t.off(\"close\",this.onClose)}static parseURL(){return ft()}static startFromUrl(){gt()}static destroy(){window.removeEventListener(\"hashchange\",vt,!1)}},Html:Lt,Images:wt,Slideshow:Dt,Thumbs:Yt,Toolbar:Qt},ee=\"with-fancybox\",ie=\"hide-scrollbar\",ne=\"--fancybox-scrollbar-compensate\",se=\"--fancybox-body-margin\",oe=\"aria-hidden\",ae=\"is-using-tab\",re=\"is-animated\",le=\"is-compact\",ce=\"is-loading\",he=\"is-opening\",de=\"has-caption\",ue=\"disabled\",pe=\"tabindex\",fe=\"download\",ge=\"href\",me=\"src\",ve=t=>\"string\"==typeof t,be=function(){var t=window.getSelection();return!!t&&\"Range\"===t.type};let ye,we=null,xe=null,Ee=0,Se=0,Pe=0,Ce=0;const Te=new Map;let Me=0;class Oe extends g{get isIdle(){return this.idle}get isCompact(){return this.option(\"compact\")}constructor(t=[],e={},i={}){super(e),Object.defineProperty(this,\"userSlides\",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,\"userPlugins\",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,\"idle\",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,\"idleTimer\",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,\"clickTimer\",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,\"pwt\",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,\"ignoreFocusChange\",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,\"startedFs\",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,\"state\",{enumerable:!0,configurable:!0,writable:!0,value:rt.Init}),Object.defineProperty(this,\"id\",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,\"container\",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,\"caption\",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,\"footer\",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,\"carousel\",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,\"lastFocus\",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,\"prevMouseMoveEvent\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),ye||(ye=ot()),this.id=e.id||++Me,Te.set(this.id,this),this.userSlides=t,this.userPlugins=i,queueMicrotask((()=>{this.init()}))}init(){if(this.state===rt.Destroy)return;this.state=rt.Init,this.attachPlugins(Object.assign(Object.assign({},Oe.Plugins),this.userPlugins)),this.emit(\"init\"),this.emit(\"attachPlugins\"),!0===this.option(\"hideScrollbar\")&&(()=>{if(!et)return;const t=document,e=t.body,i=t.documentElement;if(e.classList.contains(ie))return;let n=window.innerWidth-i.getBoundingClientRect().width;const s=parseFloat(window.getComputedStyle(e).marginRight);n<0&&(n=0),i.style.setProperty(ne,`${n}px`),s&&e.style.setProperty(se,`${s}px`),e.classList.add(ie)})(),this.initLayout(),this.scale();const t=()=>{this.initCarousel(this.userSlides),this.state=rt.Ready,this.attachEvents(),this.emit(\"ready\"),setTimeout((()=>{this.container&&this.container.setAttribute(oe,\"false\")}),16)};this.option(\"Fullscreen.autoStart\")&&ye&&!ye.isFullscreen()?ye.request().then((()=>{this.startedFs=!0,t()})).catch((()=>t())):t()}initLayout(){var t,e;const i=this.option(\"parentEl\")||document.body,s=n(this.localize(this.option(\"tpl.main\")||\"\"));if(s){if(s.setAttribute(\"id\",`fancybox-${this.id}`),s.setAttribute(\"aria-label\",this.localize(\"{{MODAL}}\")),s.classList.toggle(le,this.isCompact),P(s,this.option(\"mainClass\")||\"\"),P(s,he),this.container=s,this.footer=s.querySelector(\".fancybox__footer\"),i.appendChild(s),P(document.documentElement,ee),we&&xe||(we=document.createElement(\"span\"),P(we,\"fancybox-focus-guard\"),we.setAttribute(pe,\"0\"),we.setAttribute(oe,\"true\"),we.setAttribute(\"aria-label\",\"Focus guard\"),xe=we.cloneNode(),null===(t=s.parentElement)||void 0===t||t.insertBefore(we,s),null===(e=s.parentElement)||void 0===e||e.append(xe)),s.addEventListener(\"mousedown\",(t=>{Ee=t.pageX,Se=t.pageY,S(s,ae)})),this.option(\"closeExisting\"))for(const t of Te.values())t.id!==this.id&&t.close();else this.option(\"animated\")&&(P(s,re),setTimeout((()=>{this.isClosing()||S(s,re)}),350));this.emit(\"initLayout\")}}initCarousel(t){const i=this.container;if(!i)return;const n=i.querySelector(\".fancybox__carousel\");if(!n)return;const s=this.carousel=new Q(n,u({},{slides:t,transition:\"fade\",Panzoom:{lockAxis:this.option(\"dragToClose\")?\"xy\":\"x\",infinite:!!this.option(\"dragToClose\")&&\"y\"},Dots:!1,Navigation:{classes:{container:\"fancybox__nav\",button:\"f-button\",isNext:\"is-next\",isPrev:\"is-prev\"}},initialPage:this.option(\"startIndex\"),l10n:this.option(\"l10n\")},this.option(\"Carousel\")||{}));s.on(\"*\",((t,e,...i)=>{this.emit(`Carousel.${e}`,t,...i)})),s.on([\"ready\",\"change\"],(()=>{this.manageCaption()})),this.on(\"Carousel.removeSlide\",((t,e,i)=>{this.clearContent(i),i.state=void 0})),s.on(\"Panzoom.touchStart\",(()=>{var t,e;this.isCompact||this.endIdle(),(null===(t=document.activeElement)||void 0===t?void 0:t.closest(\".f-thumbs\"))&&(null===(e=this.container)||void 0===e||e.focus())})),s.on(\"settle\",(()=>{this.idleTimer||this.isCompact||!this.option(\"idle\")||this.setIdle(),this.option(\"autoFocus\")&&!this.isClosing&&this.checkFocus()})),this.option(\"dragToClose\")&&(s.on(\"Panzoom.afterTransform\",((t,i)=>{const n=this.getSlide();if(n&&e(n.el))return;const s=this.container;if(s){const t=Math.abs(i.current.f),e=t<1?\"\":Math.max(.5,Math.min(1,1-t/i.contentRect.fitHeight*1.5));s.style.setProperty(\"--fancybox-ts\",e?\"0s\":\"\"),s.style.setProperty(\"--fancybox-opacity\",e+\"\")}})),s.on(\"Panzoom.touchEnd\",((t,i,n)=>{var s;const o=this.getSlide();if(o&&e(o.el))return;if(i.isMobile&&document.activeElement&&-1!==[\"TEXTAREA\",\"INPUT\"].indexOf(null===(s=document.activeElement)||void 0===s?void 0:s.nodeName))return;const a=Math.abs(i.dragOffset.y);\"y\"===i.lockedAxis&&(a>=200||a>=50&&i.dragOffset.time<300)&&(n&&n.cancelable&&n.preventDefault(),this.close(n,\"f-throwOut\"+(i.current.f<0?\"Up\":\"Down\")))}))),s.on(\"change\",(t=>{var e;let i=null===(e=this.getSlide())||void 0===e?void 0:e.triggerEl;if(i){const e=new CustomEvent(\"slideTo\",{bubbles:!0,cancelable:!0,detail:t.page});i.dispatchEvent(e)}})),s.on([\"refresh\",\"change\"],(t=>{const e=this.container;if(!e)return;for(const i of e.querySelectorAll(\"[data-fancybox-current-index]\"))i.innerHTML=t.page+1;for(const i of e.querySelectorAll(\"[data-fancybox-count]\"))i.innerHTML=t.pages.length;if(!t.isInfinite){for(const i of e.querySelectorAll(\"[data-fancybox-next]\"))t.page0?(i.removeAttribute(ue),i.removeAttribute(pe)):(i.setAttribute(ue,\"\"),i.setAttribute(pe,\"-1\"))}const i=this.getSlide();if(!i)return;let n=i.downloadSrc||\"\";n||\"image\"!==i.type||i.error||!ve(i[me])||(n=i[me]);for(const t of e.querySelectorAll(\"[data-fancybox-download]\")){const e=i.downloadFilename;n?(t.removeAttribute(ue),t.removeAttribute(pe),t.setAttribute(ge,n),t.setAttribute(fe,e||n),t.setAttribute(\"target\",\"_blank\")):(t.setAttribute(ue,\"\"),t.setAttribute(pe,\"-1\"),t.removeAttribute(ge),t.removeAttribute(fe))}})),this.emit(\"initCarousel\")}attachEvents(){const t=this,e=t.container;if(!e)return;e.addEventListener(\"click\",t.onClick,{passive:!1,capture:!1}),e.addEventListener(\"wheel\",t.onWheel,{passive:!1,capture:!1}),document.addEventListener(\"keydown\",t.onKeydown,{passive:!1,capture:!0}),document.addEventListener(\"visibilitychange\",t.onVisibilityChange,!1),document.addEventListener(\"mousemove\",t.onMousemove),t.option(\"trapFocus\")&&document.addEventListener(\"focus\",t.onFocus,!0),window.addEventListener(\"resize\",t.onResize);const i=window.visualViewport;i&&(i.addEventListener(\"scroll\",t.onResize),i.addEventListener(\"resize\",t.onResize))}detachEvents(){const t=this,e=t.container;if(!e)return;document.removeEventListener(\"keydown\",t.onKeydown,{passive:!1,capture:!0}),e.removeEventListener(\"wheel\",t.onWheel,{passive:!1,capture:!1}),e.removeEventListener(\"click\",t.onClick,{passive:!1,capture:!1}),document.removeEventListener(\"mousemove\",t.onMousemove),window.removeEventListener(\"resize\",t.onResize);const i=window.visualViewport;i&&(i.removeEventListener(\"resize\",t.onResize),i.removeEventListener(\"scroll\",t.onResize)),document.removeEventListener(\"visibilitychange\",t.onVisibilityChange,!1),document.removeEventListener(\"focus\",t.onFocus,!0)}scale(){const t=this.container;if(!t)return;const e=window.visualViewport,i=Math.max(1,(null==e?void 0:e.scale)||1);let n=\"\",s=\"\",o=\"\";if(e&&i>1){let t=`${e.offsetLeft}px`,a=`${e.offsetTop}px`;n=e.width*i+\"px\",s=e.height*i+\"px\",o=`translate3d(${t}, ${a}, 0) scale(${1/i})`}t.style.transform=o,t.style.width=n,t.style.height=s}onClick(t){var e;const{container:i,isCompact:n}=this;if(!i||this.isClosing())return;!n&&this.option(\"idle\")&&this.resetIdle();const s=t.composedPath()[0];if(s.closest(\".fancybox-spinner\")||s.closest(\"[data-fancybox-close]\"))return t.preventDefault(),void this.close(t);if(s.closest(\"[data-fancybox-prev]\"))return t.preventDefault(),void this.prev();if(s.closest(\"[data-fancybox-next]\"))return t.preventDefault(),void this.next();if(\"click\"===t.type&&0===t.detail)return;if(Math.abs(t.pageX-Ee)>30||Math.abs(t.pageY-Se)>30)return;const o=document.activeElement;if(be()&&o&&i.contains(o))return;if(n&&\"image\"===(null===(e=this.getSlide())||void 0===e?void 0:e.type))return void(this.clickTimer?(clearTimeout(this.clickTimer),this.clickTimer=null):this.clickTimer=setTimeout((()=>{this.toggleIdle(),this.clickTimer=null}),350));if(this.emit(\"click\",t),t.defaultPrevented)return;let a=!1;if(s.closest(\".fancybox__content\")){if(o){if(o.closest(\"[contenteditable]\"))return;s.matches(nt)||o.blur()}if(be())return;a=this.option(\"contentClick\")}else s.closest(\".fancybox__carousel\")&&!s.matches(nt)&&(a=this.option(\"backdropClick\"));\"close\"===a?(t.preventDefault(),this.close(t)):\"next\"===a?(t.preventDefault(),this.next()):\"prev\"===a&&(t.preventDefault(),this.prev())}onWheel(t){const e=t.target;let n=this.option(\"wheel\",t);e.closest(\".fancybox__thumbs\")&&(n=\"slide\");const s=\"slide\"===n,o=[-t.deltaX||0,-t.deltaY||0,-t.detail||0].reduce((function(t,e){return Math.abs(e)>Math.abs(t)?e:t})),a=Math.max(-1,Math.min(1,o)),r=Date.now();this.pwt&&r-this.pwt<300?s&&t.preventDefault():(this.pwt=r,this.emit(\"wheel\",t,a),t.defaultPrevented||(\"close\"===n?(t.preventDefault(),this.close(t)):\"slide\"===n&&(i(e)||(t.preventDefault(),this[a>0?\"prev\":\"next\"]()))))}onScroll(){window.scrollTo(Pe,Ce)}onKeydown(t){if(!this.isTopmost())return;this.isCompact||!this.option(\"idle\")||this.isClosing()||this.resetIdle();const e=t.key,i=this.option(\"keyboard\");if(!i)return;const n=t.composedPath()[0],s=document.activeElement&&document.activeElement.classList,o=s&&s.contains(\"f-button\")||n.dataset.carouselPage||n.dataset.carouselIndex;if(\"Escape\"!==e&&!o&&E(n)){if(n.isContentEditable||-1!==[\"TEXTAREA\",\"OPTION\",\"INPUT\",\"SELECT\",\"VIDEO\"].indexOf(n.nodeName))return}if(\"Tab\"===t.key?P(this.container,ae):S(this.container,ae),t.ctrlKey||t.altKey||t.shiftKey)return;this.emit(\"keydown\",e,t);const a=i[e];a&&\"function\"==typeof this[a]&&(t.preventDefault(),this[a]())}onResize(){const t=this.container;if(!t)return;const e=this.isCompact;t.classList.toggle(le,e),this.manageCaption(this.getSlide()),this.isCompact?this.clearIdle():this.endIdle(),this.scale(),this.emit(\"resize\")}onFocus(t){this.isTopmost()&&this.checkFocus(t)}onMousemove(t){this.prevMouseMoveEvent=t,!this.isCompact&&this.option(\"idle\")&&this.resetIdle()}onVisibilityChange(){\"visible\"===document.visibilityState?this.checkFocus():this.endIdle()}manageCloseBtn(t){const e=this.optionFor(t,\"closeButton\")||!1;if(\"auto\"===e){const t=this.plugins.Toolbar;if(t&&t.state===Zt.Ready)return}if(!e)return;if(!t.contentEl||t.closeBtnEl)return;const i=this.option(\"tpl.closeButton\");if(i){const e=n(this.localize(i));t.closeBtnEl=t.contentEl.appendChild(e),t.el&&P(t.el,\"has-close-btn\")}}manageCaption(t=void 0){var e,i;const n=\"fancybox__caption\",s=this.container;if(!s)return;S(s,de);const o=this.isCompact||this.option(\"commonCaption\"),a=!o;if(this.caption&&this.stop(this.caption),a&&this.caption&&(this.caption.remove(),this.caption=null),o&&!this.caption)for(const t of(null===(e=this.carousel)||void 0===e?void 0:e.slides)||[])t.captionEl&&(t.captionEl.remove(),t.captionEl=void 0,S(t.el,de),null===(i=t.el)||void 0===i||i.removeAttribute(\"aria-labelledby\"));if(t||(t=this.getSlide()),!t||o&&!this.isCurrentSlide(t))return;const r=t.el;let l=this.optionFor(t,\"caption\",\"\");if(!l)return void(o&&this.caption&&this.animate(this.caption,\"f-fadeOut\",(()=>{this.caption&&(this.caption.innerHTML=\"\")})));let c=null;if(a){if(c=t.captionEl||null,r&&!c){const e=n+`_${this.id}_${t.index}`;c=document.createElement(\"div\"),P(c,n),c.setAttribute(\"id\",e),t.captionEl=r.appendChild(c),P(r,de),r.setAttribute(\"aria-labelledby\",e)}}else{if(c=this.caption,c||(c=s.querySelector(\".\"+n)),!c){c=document.createElement(\"div\"),c.dataset.fancyboxCaption=\"\",P(c,n);(this.footer||s).prepend(c)}P(s,de),this.caption=c}c&&(c.innerHTML=\"\",ve(l)||\"number\"==typeof l?c.innerHTML=l+\"\":l instanceof HTMLElement&&c.appendChild(l))}checkFocus(t){this.focus(t)}focus(t){var e;if(this.ignoreFocusChange)return;const i=document.activeElement||null,n=(null==t?void 0:t.target)||null,s=this.container,o=null===(e=this.carousel)||void 0===e?void 0:e.viewport;if(!s||!o)return;if(!t&&i&&s.contains(i))return;const a=this.getSlide(),r=a&&a.state===lt.Ready?a.el:null;if(!r||r.contains(i)||s===i)return;t&&t.cancelable&&t.preventDefault(),this.ignoreFocusChange=!0;const l=Array.from(s.querySelectorAll(nt));let c=[],h=null;for(let t of l){const e=!t.offsetParent||!!t.closest('[aria-hidden=\"true\"]'),i=r&&r.contains(t),n=!o.contains(t);if(t===s||(i||n)&&!e){c.push(t);const e=t.dataset.origTabindex;void 0!==e&&e&&(t.tabIndex=parseFloat(e)),t.removeAttribute(\"data-orig-tabindex\"),!t.hasAttribute(\"autoFocus\")&&h||(h=t)}else{const e=void 0===t.dataset.origTabindex?t.getAttribute(\"tabindex\")||\"\":t.dataset.origTabindex;e&&(t.dataset.origTabindex=e),t.tabIndex=-1}}let d=null;t?(!n||c.indexOf(n)<0)&&(d=h||s,c.length&&(i===xe?d=c[0]:this.lastFocus!==s&&i!==we||(d=c[c.length-1]))):d=a&&\"image\"===a.type?s:h||s,d&&st(d),this.lastFocus=document.activeElement,this.ignoreFocusChange=!1}next(){const t=this.carousel;t&&t.pages.length>1&&t.slideNext()}prev(){const t=this.carousel;t&&t.pages.length>1&&t.slidePrev()}jumpTo(...t){this.carousel&&this.carousel.slideTo(...t)}isTopmost(){var t;return(null===(t=Oe.getInstance())||void 0===t?void 0:t.id)==this.id}animate(t=null,e=\"\",i){if(!t||!e)return void(i&&i());this.stop(t);const n=s=>{s.target===t&&t.dataset.animationName&&(t.removeEventListener(\"animationend\",n),delete t.dataset.animationName,i&&i(),S(t,e))};t.dataset.animationName=e,t.addEventListener(\"animationend\",n),P(t,e)}stop(t){t&&t.dispatchEvent(new CustomEvent(\"animationend\",{bubbles:!1,cancelable:!0,currentTarget:t}))}setContent(t,e=\"\",i=!0){if(this.isClosing())return;const s=t.el;if(!s)return;let o=null;if(E(e)?o=e:(o=n(e+\"\"),E(o)||(o=document.createElement(\"div\"),o.innerHTML=e+\"\")),[\"img\",\"picture\",\"iframe\",\"video\",\"audio\"].includes(o.nodeName.toLowerCase())){const t=document.createElement(\"div\");t.appendChild(o),o=t}E(o)&&t.filter&&!t.error&&(o=o.querySelector(t.filter)),o&&E(o)?(P(o,\"fancybox__content\"),t.id&&o.setAttribute(\"id\",t.id),s.classList.add(`has-${t.error?\"error\":t.type||\"unknown\"}`),s.prepend(o),\"none\"===o.style.display&&(o.style.display=\"\"),\"none\"===getComputedStyle(o).getPropertyValue(\"display\")&&(o.style.display=t.display||this.option(\"defaultDisplay\")||\"flex\"),t.contentEl=o,i&&this.revealContent(t),this.manageCloseBtn(t),this.manageCaption(t)):this.setError(t,\"{{ELEMENT_NOT_FOUND}}\")}revealContent(t,e){const i=t.el,n=t.contentEl;i&&n&&(this.emit(\"reveal\",t),this.hideLoading(t),t.state=lt.Opening,(e=this.isOpeningSlide(t)?void 0===e?this.optionFor(t,\"showClass\"):e:\"f-fadeIn\")?this.animate(n,e,(()=>{this.done(t)})):this.done(t))}done(t){this.isClosing()||(t.state=lt.Ready,this.emit(\"done\",t),P(t.el,\"is-done\"),this.isCurrentSlide(t)&&this.option(\"autoFocus\")&&queueMicrotask((()=>{var e;null===(e=t.panzoom)||void 0===e||e.updateControls(),this.option(\"autoFocus\")&&this.focus()})),this.isOpeningSlide(t)&&(S(this.container,he),!this.isCompact&&this.option(\"idle\")&&this.setIdle()))}isCurrentSlide(t){const e=this.getSlide();return!(!t||!e)&&e.index===t.index}isOpeningSlide(t){var e,i;return null===(null===(e=this.carousel)||void 0===e?void 0:e.prevPage)&&t&&t.index===(null===(i=this.getSlide())||void 0===i?void 0:i.index)}showLoading(t){t.state=lt.Loading;const e=t.el;if(!e)return;P(e,ce),this.emit(\"loading\",t),t.spinnerEl||setTimeout((()=>{if(!this.isClosing()&&!t.spinnerEl&&t.state===lt.Loading){let i=n(x);P(i,\"fancybox-spinner\"),t.spinnerEl=i,e.prepend(i),this.animate(i,\"f-fadeIn\")}}),250)}hideLoading(t){const e=t.el;if(!e)return;const i=t.spinnerEl;this.isClosing()?null==i||i.remove():(S(e,ce),i&&this.animate(i,\"f-fadeOut\",(()=>{i.remove()})),t.state===lt.Loading&&(this.emit(\"loaded\",t),t.state=lt.Ready))}setError(t,e){if(this.isClosing())return;const i=new Event(\"error\",{bubbles:!0,cancelable:!0});if(this.emit(\"error\",i,t),i.defaultPrevented)return;t.error=e,this.hideLoading(t),this.clearContent(t);const n=document.createElement(\"div\");n.classList.add(\"fancybox-error\"),n.innerHTML=this.localize(e||\"

{{ERROR}}

\"),this.setContent(t,n)}clearContent(t){if(void 0===t.state)return;this.emit(\"clearContent\",t),t.contentEl&&(t.contentEl.remove(),t.contentEl=void 0);const e=t.el;e&&(S(e,\"has-error\"),S(e,\"has-unknown\"),S(e,`has-${t.type||\"unknown\"}`)),t.closeBtnEl&&t.closeBtnEl.remove(),t.closeBtnEl=void 0,t.captionEl&&t.captionEl.remove(),t.captionEl=void 0,t.spinnerEl&&t.spinnerEl.remove(),t.spinnerEl=void 0}getSlide(){var t;const e=this.carousel;return(null===(t=null==e?void 0:e.pages[null==e?void 0:e.page])||void 0===t?void 0:t.slides[0])||void 0}close(t,e){if(this.isClosing())return;const i=new Event(\"shouldClose\",{bubbles:!0,cancelable:!0});if(this.emit(\"shouldClose\",i,t),i.defaultPrevented)return;t&&t.cancelable&&(t.preventDefault(),t.stopPropagation());const n=()=>{this.proceedClose(t,e)};this.startedFs&&ye&&ye.isFullscreen()?Promise.resolve(ye.exit()).then((()=>n())):n()}clearIdle(){this.idleTimer&&clearTimeout(this.idleTimer),this.idleTimer=null}setIdle(t=!1){const e=()=>{this.clearIdle(),this.idle=!0,P(this.container,\"is-idle\"),this.emit(\"setIdle\")};if(this.clearIdle(),!this.isClosing())if(t)e();else{const t=this.option(\"idle\");t&&(this.idleTimer=setTimeout(e,t))}}endIdle(){this.clearIdle(),this.idle&&!this.isClosing()&&(this.idle=!1,S(this.container,\"is-idle\"),this.emit(\"endIdle\"))}resetIdle(){this.endIdle(),this.setIdle()}toggleIdle(){this.idle?this.endIdle():this.setIdle(!0)}toggleFullscreen(){ye&&(ye.isFullscreen()?ye.exit():ye.request().then((()=>{this.startedFs=!0})))}isClosing(){return[rt.Closing,rt.CustomClosing,rt.Destroy].includes(this.state)}proceedClose(t,e){var i,n;this.state=rt.Closing,this.clearIdle(),this.detachEvents();const s=this.container,o=this.carousel,a=this.getSlide(),r=a&&this.option(\"placeFocusBack\")?a.triggerEl||this.option(\"triggerEl\"):null;if(r&&(tt(r)?st(r):r.focus()),s&&(S(s,he),P(s,\"is-closing\"),s.setAttribute(oe,\"true\"),this.option(\"animated\")&&P(s,re),s.style.pointerEvents=\"none\"),o){o.clearTransitions(),null===(i=o.panzoom)||void 0===i||i.destroy(),null===(n=o.plugins.Navigation)||void 0===n||n.detach();for(const t of o.slides){t.state=lt.Closing,this.hideLoading(t);const e=t.contentEl;e&&this.stop(e);const i=null==t?void 0:t.panzoom;i&&(i.stop(),i.detachEvents(),i.detachObserver()),this.isCurrentSlide(t)||o.emit(\"removeSlide\",t)}}Pe=window.scrollX,Ce=window.scrollY,window.addEventListener(\"scroll\",this.onScroll),this.emit(\"close\",t),this.state!==rt.CustomClosing?(void 0===e&&a&&(e=this.optionFor(a,\"hideClass\")),e&&a?(this.animate(a.contentEl,e,(()=>{o&&o.emit(\"removeSlide\",a)})),setTimeout((()=>{this.destroy()}),500)):this.destroy()):setTimeout((()=>{this.destroy()}),500)}destroy(){var t;if(this.state===rt.Destroy)return;window.removeEventListener(\"scroll\",this.onScroll),this.state=rt.Destroy,null===(t=this.carousel)||void 0===t||t.destroy();const e=this.container;e&&e.remove(),Te.delete(this.id);const i=Oe.getInstance();i?i.focus():(we&&(we.remove(),we=null),xe&&(xe.remove(),xe=null),S(document.documentElement,ee),(()=>{if(!et)return;const t=document,e=t.body;e.classList.remove(ie),e.style.setProperty(se,\"\"),t.documentElement.style.setProperty(ne,\"\")})(),this.emit(\"destroy\"))}static bind(t,e,i){if(!et)return;let n,s=\"\",o={};if(void 0===t?n=document.body:ve(t)?(n=document.body,s=t,\"object\"==typeof e&&(o=e||{})):(n=t,ve(e)&&(s=e),\"object\"==typeof i&&(o=i||{})),!n||!E(n))return;s=s||\"[data-fancybox]\";const a=Oe.openers.get(n)||new Map;a.set(s,o),Oe.openers.set(n,a),1===a.size&&n.addEventListener(\"click\",Oe.fromEvent)}static unbind(t,e){let i,n=\"\";if(ve(t)?(i=document.body,n=t):(i=t,ve(e)&&(n=e)),!i)return;const s=Oe.openers.get(i);s&&n&&s.delete(n),n&&s||(Oe.openers.delete(i),i.removeEventListener(\"click\",Oe.fromEvent))}static destroy(){let t;for(;t=Oe.getInstance();)t.destroy();for(const t of Oe.openers.keys())t.removeEventListener(\"click\",Oe.fromEvent);Oe.openers=new Map}static fromEvent(t){if(t.defaultPrevented)return;if(t.button&&0!==t.button)return;if(t.ctrlKey||t.metaKey||t.shiftKey)return;let e=t.composedPath()[0];const i=e.closest(\"[data-fancybox-trigger]\");if(i){const t=i.dataset.fancyboxTrigger||\"\",n=document.querySelectorAll(`[data-fancybox=\"${t}\"]`),s=parseInt(i.dataset.fancyboxIndex||\"\",10)||0;e=n[s]||e}if(!(e&&e instanceof Element))return;let n,s,o,a;if([...Oe.openers].reverse().find((([t,i])=>!(!t.contains(e)||![...i].reverse().find((([i,r])=>{let l=e.closest(i);return!!l&&(n=t,s=i,o=l,a=r,!0)}))))),!n||!s||!o)return;a=a||{},t.preventDefault(),e=o;let r=[],l=u({},at,a);l.event=t,l.triggerEl=e,l.delegate=i;const c=l.groupAll,h=l.groupAttr,d=h&&e?e.getAttribute(`${h}`):\"\";if((!e||d||c)&&(r=[].slice.call(n.querySelectorAll(s))),e&&!c&&(r=d?r.filter((t=>t.getAttribute(`${h}`)===d)):[e]),!r.length)return;const p=Oe.getInstance();return p&&p.options.triggerEl&&r.indexOf(p.options.triggerEl)>-1?void 0:(e&&(l.startIndex=r.indexOf(e)),Oe.fromNodes(r,l))}static fromSelector(t,e,i){let n=null,s=\"\",o={};if(ve(t)?(n=document.body,s=t,\"object\"==typeof e&&(o=e||{})):t instanceof HTMLElement&&ve(e)&&(n=t,s=e,\"object\"==typeof i&&(o=i||{})),!n||!s)return!1;const a=Oe.openers.get(n);return!!a&&(o=u({},a.get(s)||{},o),!!o&&Oe.fromNodes(Array.from(n.querySelectorAll(s)),o))}static fromNodes(t,e){e=u({},at,e||{});const i=[];for(const n of t){const t=n.dataset||{},s=t[me]||n.getAttribute(ge)||n.getAttribute(\"currentSrc\")||n.getAttribute(me)||void 0;let o;const a=e.delegate;let r;a&&i.length===e.startIndex&&(o=a instanceof HTMLImageElement?a:a.querySelector(\"img:not([aria-hidden])\")),o||(o=n instanceof HTMLImageElement?n:n.querySelector(\"img:not([aria-hidden])\")),o&&(r=o.currentSrc||o[me]||void 0,!r&&o.dataset&&(r=o.dataset.lazySrc||o.dataset[me]||void 0));const l={src:s,triggerEl:n,thumbEl:o,thumbElSrc:r,thumbSrc:r};for(const e in t){let i=t[e]+\"\";i=\"false\"!==i&&(\"true\"===i||i),l[e]=i}i.push(l)}return new Oe(i,e)}static getInstance(t){if(t)return Te.get(t);return Array.from(Te.values()).reverse().find((t=>!t.isClosing()&&t))||null}static getSlide(){var t;return(null===(t=Oe.getInstance())||void 0===t?void 0:t.getSlide())||null}static show(t=[],e={}){return new Oe(t,e)}static next(){const t=Oe.getInstance();t&&t.next()}static prev(){const t=Oe.getInstance();t&&t.prev()}static close(t=!0,...e){if(t)for(const t of Te.values())t.close(...e);else{const t=Oe.getInstance();t&&t.close(...e)}}}Object.defineProperty(Oe,\"version\",{enumerable:!0,configurable:!0,writable:!0,value:\"5.0.36\"}),Object.defineProperty(Oe,\"defaults\",{enumerable:!0,configurable:!0,writable:!0,value:at}),Object.defineProperty(Oe,\"Plugins\",{enumerable:!0,configurable:!0,writable:!0,value:te}),Object.defineProperty(Oe,\"openers\",{enumerable:!0,configurable:!0,writable:!0,value:new Map});export{Q as Carousel,Oe as Fancybox,I as Panzoom};\n","import app from 'flarum/forum/app';\r\nimport { extend } from 'flarum/common/extend';\r\nimport CommentPost from 'flarum/forum/components/CommentPost';\r\nimport { Fancybox } from '@fancyapps/ui';\r\n\r\napp.initializers.add('darkle/fancybox', () => {\r\n extend(CommentPost.prototype, 'oncreate', function () {\r\n // Handle individual images\r\n this.element\r\n .querySelectorAll('.Post-body img:not(.emoji):not(.Avatar):not(.PostMeta-ip img):not([data-reaction]):not([data-link-preview]):not(.flamoji img):not(.countryFlag):not(.no-fancybox)')\r\n .forEach((node) => {\r\n const src = node.getAttribute('data-src') || node.getAttribute('src');\r\n const fancyboxEl = document.createElement('a');\r\n fancyboxEl.setAttribute('data-fancybox', 'gallery');\r\n fancyboxEl.href = src;\r\n node.parentNode.insertBefore(fancyboxEl, node);\r\n fancyboxEl.appendChild(node);\r\n });\r\n\r\n // Initialize fancybox for individual images\r\n Fancybox.bind('[data-fancybox=\"gallery\"]', {\r\n Images: {\r\n zoom: false,\r\n },\r\n });\r\n\r\n // Handle galleries (carousels)\r\n this.element\r\n .querySelectorAll('.f-carousel[data-fancybox=\"gallery\"]')\r\n .forEach((carousel) => {\r\n Fancybox.bind(carousel, {\r\n Carousel: {\r\n infinite: false,\r\n },\r\n Slideshow: {\r\n playOnStart: true,\r\n timeout: 3000,\r\n },\r\n Toolbar: {\r\n display: {\r\n left: [],\r\n middle: [],\r\n right: [\"slideshow\", \"close\"],\r\n },\r\n },\r\n Images: {\r\n zoom: false,\r\n },\r\n });\r\n });\r\n });\r\n});\r\n"],"names":["__webpack_require__","module","getter","__esModule","d","a","exports","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","value","flarum","core","compat","_defineProperties","target","props","i","length","descriptor","configurable","writable","_createClass","Constructor","protoProps","staticProps","_assertThisInitialized","self","ReferenceError","_setPrototypeOf","p","setPrototypeOf","__proto__","_inheritsLoose","subClass","superClass","create","constructor","t","e","parseFloat","Math","round","Number","EPSILON","Element","offsetParent","scrollHeight","clientHeight","window","getComputedStyle","overflowY","n","indexOf","s","document","body","parentElement","DOMParser","parseFromString","childElementCount","createElement","firstChild","appendChild","split","filter","forEach","classList","toggle","this","nativePointer","pageX","pageY","clientX","clientY","id","Touch","identifier","time","Date","now","r","passive","l","start","move","end","element","startCallback","moveCallback","endCallback","bind","addEventListener","onPointerStart","onTouchStart","onMove","onTouchEnd","buttons","button","currentPointers","some","triggerPointerStart","onPointerEnd","onWindowBlur","Array","from","changedTouches","slice","map","findIndex","push","triggerPointerEnd","removeEventListener","startPointers","splice","clear","Event","bubbles","cancelable","stop","c","sqrt","pow","h","toString","u","entries","isArray","assign","reduce","f","Map","setOptions","getOwnPropertyNames","getPrototypeOf","startsWith","options","defaults","option","on","optionFor","isNaN","cn","classes","localize","String","replace","toLowerCase","substring","join","events","set","includes","off","emit","m","g","attachPlugins","plugins","detach","attach","detachPlugins","keys","Init","Error","Ready","Panning","Mousemove","Destroy","v","b","PANUP","PANDOWN","PANLEFT","PANRIGHT","ZOOMIN","ZOOMOUT","TOGGLEZOOM","TOGGLE1TO1","ITERATEZOOM","ROTATECCW","ROTATECW","FLIPX","FLIPY","FITX","FITY","RESET","TOGGLEFS","y","content","width","height","panMode","touch","dragMinThreshold","lockAxis","mouseMoveFactor","mouseMoveFriction","zoom","pinchToZoom","panOnlyZoomed","minScale","maxScale","friction","dragFriction","decelFriction","click","dblClick","wheel","wheelLimit","spinner","bounds","infinite","rubberband","bounce","maxVelocity","transformParent","isLoading","canZoomIn","canZoomOut","isDraggable","isDragging","inFullscreen","htmlHasFullscreen","l10n","w","x","E","S","remove","P","add","C","M","O","A","L","z","R","k","I","innerWidth","innerHeight","top","right","bottom","left","fullWidth","fullHeight","fitWidth","fitHeight","container","initContent","Plugins","onLoad","onError","isContentLoading","contains","HTMLPictureElement","insertBefore","queueMicrotask","enable","querySelector","firstElementChild","state","updateMetrics","detachEvents","getNextScale","fullScale","targetScale","coverScale","sort","attachObserver","containerRect","abs","getBoundingClientRect","resizeObserver","ResizeObserver","updateTimer","onResize","isMobile","setTimeout","clearTimeout","observe","detachObserver","disconnect","attachEvents","onClick","capture","onWheel","pointerTracker","onPointerDown","onPointerMove","onPointerUp","onMouseMove","onKeydown","clickTimer","animate","setTargetForce","velocity","isScaling","max","min","current","setTransform","setEdgeForce","isResting","rAF","requestAnimationFrame","isBouncingX","isBouncingY","checkBounds","getBounds","xDiff","yDiff","inBounds","clampTargetBounds","calculateContentDim","contentRect","angle","HTMLImageElement","maxWidth","maxHeight","getMatrix","DOMPoint","matrixTransform","contentWidth","contentHeight","ignoreBounds","scale","DOMMatrixReadOnly","transform","type","detail","dragOffset","trackingPoints","startDecelAnim","defaultPrevented","hasAttribute","preventDefault","stopPropagation","getSelection","closest","dataset","panzoomChange","panzoomAction","JSON","parse","console","warn","applyChange","dragStart","test","event","clicks","addTrackingPoint","pwt","composedPath","nodeName","removeAllRanges","lockedAxis","atan2","PI","isInfinite","originX","originY","panX","panY","cancelAnimationFrame","isTicking","visualViewport","deltaX","deltaY","zoomWithWheel","panWithMouse","toggleFS","requestTick","style","paddingTop","paddingBottom","paddingLeft","paddingRight","naturalWidth","SVGElement","baseVal","offsetWidth","scrollWidth","naturalHeight","offsetHeight","getAttribute","setProperty","T","cssText","zoomTo","updateControls","calculateBounds","querySelectorAll","display","removeAttribute","setAttribute","panTo","flipX","flipY","DOMMatrix","translate","multiply","rotate","pmme","cwd","zoomIn","zoomOut","zoomToFit","zoomToCover","zoomToFull","zoomToMax","toggleZoom","toggleMax","toggleCover","iterateZoom","rotateCCW","rotateCW","fitX","fitY","documentElement","reset","destroy","values","matchMedia","matches","navigator","userAgent","isTouchDevice","complete","B","D","F","childNodes","nodeType","Node","ELEMENT_NODE","H","HTMLElement","html","thumb","thumbSrc","thumbEl","thumbElSrc","src","el","isDom","class","customClass","index","dim","gap","pos","transition","N","slides","_","W","arguments","onRefresh","refresh","build","list","instance","pages","cleanup","isDynamic","children","append","createItem","page","previousElementSibling","nextElementSibling","hasDots","dot","isBeforePrev","isPrev","isCurrent","isNext","isAfterNext","dotTpl","dynamicFrom","maxCount","minCount","X","q","Y","V","prev","next","addBtn","toUpperCase","isRTL","innerHTML","match","charAt","nextTpl","prevTpl","Z","addAsTargetFor","nav","addAsNavFor","initialSlide","initialPage","onNavReady","onTargetReady","onNavCreateSlide","onNavClick","onNavTouch","onTargetChange","panzoom","parseInt","getPageForSlide","slideTo","Sync","markSelectedSlide","selectedIndex","prevPage","U","Navigation","Dots","G","K","J","Q","Set","slideNext","slidePrev","userOptions","userPlugins","processOptions","breakpoints","bp","init","initLayout","initSlides","setInitialPosition","initPanzoom","isLTR","isVertical","isHorizontal","viewport","slide","prepend","onScroll","track","setInitialPage","setViewportHeight","axis","viewportDim","onDecel","onBeforeTransform","onEndAnimation","onSlideTo","createPages","contentDim","processPages","getPageFromIndex","getSlideMetrics","parentNode","visibility","boxSizing","removeChild","repositionSlides","inTransition","has","createSlideEl","nextSibling","removeSlideEl","CustomEvent","dispatchEvent","transitionTo","clearTransitions","onAnimationEnd","onChange","manageSlideVisiblity","getVisibleSlides","lazyLoadSlide","markSelectedSlides","flipInfiniteTrack","lazyLoadImg","lazySrcset","lazySrc","backgroundImage","animationName","size","setPageFromPosition","getPageFromPosition","pageIndex","carouselPage","carouselNext","carouselPrev","scroll","lp","reInit","floor","slideToClosest","addSlide","prependSlide","appendSlide","removeSlide","getProgress","find","replaceWith","enabled","preload","slidesPerPage","Panzoom","center","fill","dragFree","adaptiveHeight","direction","isSelected","NEXT","PREV","GOTO","it","rt","lt","tt","scrollY","et","nt","st","focus","preventScroll","scrollTop","scrollX","scrollLeft","scrollTo","behavior","ot","fullscreenEnabled","webkitFullscreenEnabled","request","ALLOW_KEYBOARD_INPUT","exit","isFullscreen","at","animated","autoFocus","backdropClick","Carousel","closeButton","closeExisting","commonCaption","compact","contentClick","contentDblClick","defaultType","defaultDisplay","dragToClose","Fullscreen","autoStart","groupAll","groupAttr","hideClass","hideScrollbar","idle","keyboard","Escape","Delete","Backspace","PageUp","PageDown","ArrowUp","ArrowDown","ArrowRight","ArrowLeft","CLOSE","MODAL","ERROR","IMAGE_ERROR","ELEMENT_NOT_FOUND","AJAX_NOT_FOUND","AJAX_FORBIDDEN","IFRAME_ERROR","TOGGLE_ZOOM","TOGGLE_THUMBS","TOGGLE_SLIDESHOW","TOGGLE_FULLSCREEN","DOWNLOAD","parentEl","placeFocusBack","showClass","startIndex","tpl","main","trapFocus","Closing","CustomClosing","Loading","Opening","ct","ht","dt","ut","pt","Oe","getInstance","carousel","getSlide","slug","triggerEl","fancybox","hash","ft","URL","pop","gt","mt","Hash","jumpTo","close","vt","bt","readyState","yt","wt","onCreateSlide","setImage","onRemoveSlide","imageEl","onClose","contentEl","getZoomInfo","position","offsetTop","offsetLeft","overflow","opacity","process","then","isClosing","isOpeningSlide","Promise","Image","onload","onerror","hideLoading","done","revealContent","prevMouseMoveEvent","setError","clearContent","showLoading","caption","alt","draggable","srcset","fetchPriority","sizes","setContent","isCompact","ready","error","getPropertyValue","initialSize","protected","zoomOpacity","SuppressedError","xt","Et","St","Pt","Ct","Tt","Mt","URLSearchParams","search","At","Lt","onBeforeInitSlide","processType","onClearContent","xhr","abort","iframeEl","placeholderEl","onSelectSlide","playVideo","onUnselectSlide","method","func","contentWindow","postMessage","stringify","poller","pause","onDone","isCurrentSlide","resizeIframe","setAspectRatio","onMessage","data","origin","getElementsByClassName","HTMLIFrameElement","source","getElementById","loadAjaxContent","XMLHttpRequest","onreadystatechange","DONE","status","responseText","ajax","open","setRequestHeader","send","setInlineContent","cloneNode","setIframeContent","className","autoSize","getElementsByTagName","flex","play","muted","nocookie","getOwnPropertySymbols","propertyIsEnumerable","encodeURIComponent","videoId","videoFormat","poster","aspectRatio","iframeAttr","allow","scrolling","videoAutoplay","videoRatio","videoTpl","vimeo","byline","color","controls","dnt","youtube","enablejsapi","rel","fs","zt","Rt","kt","It","onReady","removeProgressBar","onSettle","resume","onVisibilityChange","visibilityState","onMouseEnter","inHover","onMouseLeave","onTimerEnd","progressBar","createProgressBar","timer","transitionDuration","pauseOnHover","progressParentEl","showProgress","timeout","Dt","onPrepare","Autoplay","endIdle","ref","activeElement","playOnStart","jt","Ft","hasThumbs","thumbTpl","Hidden","Bt","Ht","Nt","_t","$t","onInitSlide","thumbHeight","onInitSlides","isModern","thumbGap","shiftModern","updateProps","resizeModernSlide","isDisabled","getThumb","getSlides","thumbExtraGap","after","setProps","carouselIndex","elementFromPoint","getShift","Wt","showOnStart","Xt","qt","Yt","onInit","footer","hidden","hide","show","createSlide","Thumbs","Zt","Vt","panLeft","icon","change","panRight","panUp","panDown","action","toggle1to1","Disabled","Gt","tabindex","viewBox","xmlns","Kt","Jt","Qt","middle","createEl","createContainer","fancyboxToggleThumbs","fancyboxToggleFullscreen","toggleFullscreen","fancyboxToggleSlideshow","isActive","downloadSrc","isEnabled","removeContainer","absolute","items","infobar","download","slideshow","fullscreen","thumbs","ye","te","history","title","location","pathname","back","replaceState","parseURL","startFromUrl","Html","Images","Slideshow","Toolbar","ee","ie","ne","se","oe","ae","re","le","ce","he","de","ue","pe","fe","ge","ve","be","we","xe","Ee","Se","Pe","Ce","Te","Me","userSlides","marginRight","initCarousel","startedFs","manageCaption","idleTimer","setIdle","checkFocus","downloadFilename","onMousemove","onFocus","resetIdle","toggleIdle","blur","isTopmost","isContentEditable","ctrlKey","altKey","shiftKey","clearIdle","manageCloseBtn","closeBtnEl","captionEl","fancyboxCaption","ignoreFocusChange","origTabindex","tabIndex","lastFocus","currentTarget","spinnerEl","proceedClose","resolve","pointerEvents","openers","fromEvent","unbind","metaKey","fancyboxTrigger","fancyboxIndex","reverse","delegate","fromNodes","fromSelector","currentSrc","app","extend","CommentPost","node","fancyboxEl","href","Fancybox"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"forum.js","mappings":"MACA,IAAIA,EAAsB,CCA1BA,EAAyBC,IACxB,IAAIC,EAASD,GAAUA,EAAOE,WAC7B,IAAOF,EAAiB,QACxB,IAAM,EAEP,OADAD,EAAoBI,EAAEF,EAAQ,CAAEG,EAAGH,IAC5BA,GCLRF,EAAwB,CAACM,EAASC,KACjC,IAAI,IAAIC,KAAOD,EACXP,EAAoBS,EAAEF,EAA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AAWC,K,uBAArptB,WAAa,OAAO8B,KAAKilB,O,qBAAK,WAAgB,OAAOjlB,KAAKqE,OAAO,e,EAA9EojB,CAAWliB,GAA4ptB7J,OAAOC,eAAe8rB,GAAG,UAAU,CAAC7rB,YAAW,EAAGmB,cAAa,EAAGC,UAAS,EAAGX,MAAM,WAAWX,OAAOC,eAAe8rB,GAAG,WAAW,CAAC7rB,YAAW,EAAGmB,cAAa,EAAGC,UAAS,EAAGX,MAAMwnB,KAAKnoB,OAAOC,eAAe8rB,GAAG,UAAU,CAAC7rB,YAAW,EAAGmB,cAAa,EAAGC,UAAS,EAAGX,MAAM66B,KAAKx7B,OAAOC,eAAe8rB,GAAG,UAAU,CAAC7rB,YAAW,EAAGmB,cAAa,EAAGC,UAAS,EAAGX,MAAM,IAAIyH,MCKxu1Is4B,IAAAA,aAAAA,IAAqB,mBAAmB,YACtCC,EAAAA,EAAAA,QAAOC,IAAAA,UAAuB,YAAY,WAExCt8B,KAAKkB,QACFqT,iBAAiB,qKACjB1U,SAAQ,SAAC08B,GACR,IAAM7kB,EAAM6kB,EAAKvoB,aAAa,aAAeuoB,EAAKvoB,aAAa,OACzDwoB,EAAat9B,SAASM,cAAc,KAC1Cg9B,EAAW9nB,aAAa,gBAAiB,WACzC8nB,EAAWC,KAAO/kB,EAClB6kB,EAAK1d,WAAW/S,aAAa0wB,EAAYD,GACzCC,EAAW98B,YAAY68B,MAG3BG,GAAAA,KAAc,4BAA6B,CACzC9E,OAAQ,CACN3vB,MAAM,KAKVjI,KAAKkB,QACFqT,iBAAiB,wCACjB1U,SAAQ,SAAC8nB,GACR,IAAI1D,GAAS0D,EAAU,CACrB5e,UAAU,c","sources":["webpack://@darkle/fancybox/webpack/bootstrap","webpack://@darkle/fancybox/webpack/runtime/compat get default export","webpack://@darkle/fancybox/webpack/runtime/define property getters","webpack://@darkle/fancybox/webpack/runtime/hasOwnProperty shorthand","webpack://@darkle/fancybox/webpack/runtime/make namespace object","webpack://@darkle/fancybox/external root \"flarum.core.compat['forum/app']\"","webpack://@darkle/fancybox/external root \"flarum.core.compat['common/extend']\"","webpack://@darkle/fancybox/external root \"flarum.core.compat['forum/components/CommentPost']\"","webpack://@darkle/fancybox/./node_modules/@babel/runtime/helpers/esm/createClass.js","webpack://@darkle/fancybox/./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js","webpack://@darkle/fancybox/./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","webpack://@darkle/fancybox/./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","webpack://@darkle/fancybox/./node_modules/@fancyapps/ui/dist/index.esm.js","webpack://@darkle/fancybox/./src/forum/index.js"],"sourcesContent":["// The require scope\nvar __webpack_require__ = {};\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/app'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['common/extend'];","const __WEBPACK_NAMESPACE_OBJECT__ = flarum.core.compat['forum/components/CommentPost'];","function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nexport default function _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}","export default function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}","export default function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}","import setPrototypeOf from \"./setPrototypeOf.js\";\nexport default function _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n setPrototypeOf(subClass, superClass);\n}","const t=(t,e=1e4)=>(t=parseFloat(t+\"\")||0,Math.round((t+Number.EPSILON)*e)/e),e=function(t){if(!(t&&t instanceof Element&&t.offsetParent))return!1;const e=t.scrollHeight>t.clientHeight,i=window.getComputedStyle(t).overflowY,n=-1!==i.indexOf(\"hidden\"),s=-1!==i.indexOf(\"visible\");return e&&!n&&!s},i=function(t,n=void 0){return!(!t||t===document.body||n&&t===n)&&(e(t)?t:i(t.parentElement,n))},n=function(t){var e=(new DOMParser).parseFromString(t,\"text/html\").body;if(e.childElementCount>1){for(var i=document.createElement(\"div\");e.firstChild;)i.appendChild(e.firstChild);return i}return e.firstChild},s=t=>`${t||\"\"}`.split(\" \").filter((t=>!!t)),o=(t,e,i)=>{t&&s(e).forEach((e=>{t.classList.toggle(e,i||!1)}))};class a{constructor(t){Object.defineProperty(this,\"pageX\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"pageY\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"clientX\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"clientY\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"id\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"time\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"nativePointer\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.nativePointer=t,this.pageX=t.pageX,this.pageY=t.pageY,this.clientX=t.clientX,this.clientY=t.clientY,this.id=self.Touch&&t instanceof Touch?t.identifier:-1,this.time=Date.now()}}const r={passive:!1};class l{constructor(t,{start:e=(()=>!0),move:i=(()=>{}),end:n=(()=>{})}){Object.defineProperty(this,\"element\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"startCallback\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"moveCallback\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"endCallback\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"currentPointers\",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,\"startPointers\",{enumerable:!0,configurable:!0,writable:!0,value:[]}),this.element=t,this.startCallback=e,this.moveCallback=i,this.endCallback=n;for(const t of[\"onPointerStart\",\"onTouchStart\",\"onMove\",\"onTouchEnd\",\"onPointerEnd\",\"onWindowBlur\"])this[t]=this[t].bind(this);this.element.addEventListener(\"mousedown\",this.onPointerStart,r),this.element.addEventListener(\"touchstart\",this.onTouchStart,r),this.element.addEventListener(\"touchmove\",this.onMove,r),this.element.addEventListener(\"touchend\",this.onTouchEnd),this.element.addEventListener(\"touchcancel\",this.onTouchEnd)}onPointerStart(t){if(!t.buttons||0!==t.button)return;const e=new a(t);this.currentPointers.some((t=>t.id===e.id))||this.triggerPointerStart(e,t)&&(window.addEventListener(\"mousemove\",this.onMove),window.addEventListener(\"mouseup\",this.onPointerEnd),window.addEventListener(\"blur\",this.onWindowBlur))}onTouchStart(t){for(const e of Array.from(t.changedTouches||[]))this.triggerPointerStart(new a(e),t);window.addEventListener(\"blur\",this.onWindowBlur)}onMove(t){const e=this.currentPointers.slice(),i=\"changedTouches\"in t?Array.from(t.changedTouches||[]).map((t=>new a(t))):[new a(t)],n=[];for(const t of i){const e=this.currentPointers.findIndex((e=>e.id===t.id));e<0||(n.push(t),this.currentPointers[e]=t)}n.length&&this.moveCallback(t,this.currentPointers.slice(),e)}onPointerEnd(t){t.buttons>0&&0!==t.button||(this.triggerPointerEnd(t,new a(t)),window.removeEventListener(\"mousemove\",this.onMove),window.removeEventListener(\"mouseup\",this.onPointerEnd),window.removeEventListener(\"blur\",this.onWindowBlur))}onTouchEnd(t){for(const e of Array.from(t.changedTouches||[]))this.triggerPointerEnd(t,new a(e))}triggerPointerStart(t,e){return!!this.startCallback(e,t,this.currentPointers.slice())&&(this.currentPointers.push(t),this.startPointers.push(t),!0)}triggerPointerEnd(t,e){const i=this.currentPointers.findIndex((t=>t.id===e.id));i<0||(this.currentPointers.splice(i,1),this.startPointers.splice(i,1),this.endCallback(t,e,this.currentPointers.slice()))}onWindowBlur(){this.clear()}clear(){for(;this.currentPointers.length;){const t=this.currentPointers[this.currentPointers.length-1];this.currentPointers.splice(this.currentPointers.length-1,1),this.startPointers.splice(this.currentPointers.length-1,1),this.endCallback(new Event(\"touchend\",{bubbles:!0,cancelable:!0,clientX:t.clientX,clientY:t.clientY}),t,this.currentPointers.slice())}}stop(){this.element.removeEventListener(\"mousedown\",this.onPointerStart,r),this.element.removeEventListener(\"touchstart\",this.onTouchStart,r),this.element.removeEventListener(\"touchmove\",this.onMove,r),this.element.removeEventListener(\"touchend\",this.onTouchEnd),this.element.removeEventListener(\"touchcancel\",this.onTouchEnd),window.removeEventListener(\"mousemove\",this.onMove),window.removeEventListener(\"mouseup\",this.onPointerEnd),window.removeEventListener(\"blur\",this.onWindowBlur)}}function c(t,e){return e?Math.sqrt(Math.pow(e.clientX-t.clientX,2)+Math.pow(e.clientY-t.clientY,2)):0}function h(t,e){return e?{clientX:(t.clientX+e.clientX)/2,clientY:(t.clientY+e.clientY)/2}:t}const d=t=>\"object\"==typeof t&&null!==t&&t.constructor===Object&&\"[object Object]\"===Object.prototype.toString.call(t),u=(t,...e)=>{const i=e.length;for(let n=0;n{const n=Array.isArray(i)?[]:{};t[e]||Object.assign(t,{[e]:n}),d(i)?Object.assign(t[e],u(n,i)):Array.isArray(i)?Object.assign(t,{[e]:[...i]}):Object.assign(t,{[e]:i})}))}return t},p=function(t,e){return t.split(\".\").reduce(((t,e)=>\"object\"==typeof t?t[e]:void 0),e)};class f{constructor(t={}){Object.defineProperty(this,\"options\",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,\"events\",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),this.setOptions(t);for(const t of Object.getOwnPropertyNames(Object.getPrototypeOf(this)))t.startsWith(\"on\")&&\"function\"==typeof this[t]&&(this[t]=this[t].bind(this))}setOptions(t){this.options=t?u({},this.constructor.defaults,t):{};for(const[t,e]of Object.entries(this.option(\"on\")||{}))this.on(t,e)}option(t,...e){let i=p(t,this.options);return i&&\"function\"==typeof i&&(i=i.call(this,this,...e)),i}optionFor(t,e,i,...n){let s=p(e,t);var o;\"string\"!=typeof(o=s)||isNaN(o)||isNaN(parseFloat(o))||(s=parseFloat(s)),\"true\"===s&&(s=!0),\"false\"===s&&(s=!1),s&&\"function\"==typeof s&&(s=s.call(this,this,t,...n));let a=p(e,this.options);return a&&\"function\"==typeof a?s=a.call(this,this,t,...n,s):void 0===s&&(s=a),void 0===s?i:s}cn(t){const e=this.options.classes;return e&&e[t]||\"\"}localize(t,e=[]){t=String(t).replace(/\\{\\{(\\w+).?(\\w+)?\\}\\}/g,((t,e,i)=>{let n=\"\";return i?n=this.option(`${e[0]+e.toLowerCase().substring(1)}.l10n.${i}`):e&&(n=this.option(`l10n.${e}`)),n||(n=t),n}));for(let i=0;ie))}on(t,e){let i=[];\"string\"==typeof t?i=t.split(\" \"):Array.isArray(t)&&(i=t),this.events||(this.events=new Map),i.forEach((t=>{let i=this.events.get(t);i||(this.events.set(t,[]),i=[]),i.includes(e)||i.push(e),this.events.set(t,i)}))}off(t,e){let i=[];\"string\"==typeof t?i=t.split(\" \"):Array.isArray(t)&&(i=t),i.forEach((t=>{const i=this.events.get(t);if(Array.isArray(i)){const t=i.indexOf(e);t>-1&&i.splice(t,1)}}))}emit(t,...e){[...this.events.get(t)||[]].forEach((t=>t(this,...e))),\"*\"!==t&&this.emit(\"*\",t,...e)}}Object.defineProperty(f,\"version\",{enumerable:!0,configurable:!0,writable:!0,value:\"5.0.36\"}),Object.defineProperty(f,\"defaults\",{enumerable:!0,configurable:!0,writable:!0,value:{}});class g extends f{constructor(t={}){super(t),Object.defineProperty(this,\"plugins\",{enumerable:!0,configurable:!0,writable:!0,value:{}})}attachPlugins(t={}){const e=new Map;for(const[i,n]of Object.entries(t)){const t=this.option(i),s=this.plugins[i];s||!1===t?s&&!1===t&&(s.detach(),delete this.plugins[i]):e.set(i,new n(this,t||{}))}for(const[t,i]of e)this.plugins[t]=i,i.attach()}detachPlugins(t){t=t||Object.keys(this.plugins);for(const e of t){const t=this.plugins[e];t&&t.detach(),delete this.plugins[e]}return this.emit(\"detachPlugins\"),this}}var m;!function(t){t[t.Init=0]=\"Init\",t[t.Error=1]=\"Error\",t[t.Ready=2]=\"Ready\",t[t.Panning=3]=\"Panning\",t[t.Mousemove=4]=\"Mousemove\",t[t.Destroy=5]=\"Destroy\"}(m||(m={}));const v=[\"a\",\"b\",\"c\",\"d\",\"e\",\"f\"],b={PANUP:\"Move up\",PANDOWN:\"Move down\",PANLEFT:\"Move left\",PANRIGHT:\"Move right\",ZOOMIN:\"Zoom in\",ZOOMOUT:\"Zoom out\",TOGGLEZOOM:\"Toggle zoom level\",TOGGLE1TO1:\"Toggle zoom level\",ITERATEZOOM:\"Toggle zoom level\",ROTATECCW:\"Rotate counterclockwise\",ROTATECW:\"Rotate clockwise\",FLIPX:\"Flip horizontally\",FLIPY:\"Flip vertically\",FITX:\"Fit horizontally\",FITY:\"Fit vertically\",RESET:\"Reset\",TOGGLEFS:\"Toggle fullscreen\"},y={content:null,width:\"auto\",height:\"auto\",panMode:\"drag\",touch:!0,dragMinThreshold:3,lockAxis:!1,mouseMoveFactor:1,mouseMoveFriction:.12,zoom:!0,pinchToZoom:!0,panOnlyZoomed:\"auto\",minScale:1,maxScale:2,friction:.25,dragFriction:.35,decelFriction:.05,click:\"toggleZoom\",dblClick:!1,wheel:\"zoom\",wheelLimit:7,spinner:!0,bounds:\"auto\",infinite:!1,rubberband:!0,bounce:!0,maxVelocity:75,transformParent:!1,classes:{content:\"f-panzoom__content\",isLoading:\"is-loading\",canZoomIn:\"can-zoom_in\",canZoomOut:\"can-zoom_out\",isDraggable:\"is-draggable\",isDragging:\"is-dragging\",inFullscreen:\"in-fullscreen\",htmlHasFullscreen:\"with-panzoom-in-fullscreen\"},l10n:b},w='',x='
'+w+w+\"
\",E=t=>t&&null!==t&&t instanceof Element&&\"nodeType\"in t,S=(t,e)=>{t&&s(e).forEach((e=>{t.classList.remove(e)}))},P=(t,e)=>{t&&s(e).forEach((e=>{t.classList.add(e)}))},C={a:1,b:0,c:0,d:1,e:0,f:0},T=1e5,M=1e4,O=\"mousemove\",A=\"drag\",L=\"content\",z=\"auto\";let R=null,k=null;class I extends g{get fits(){return this.contentRect.width-this.contentRect.fitWidth<1&&this.contentRect.height-this.contentRect.fitHeight<1}get isTouchDevice(){return null===k&&(k=window.matchMedia(\"(hover: none)\").matches),k}get isMobile(){return null===R&&(R=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)),R}get panMode(){return this.options.panMode!==O||this.isTouchDevice?A:O}get panOnlyZoomed(){const t=this.options.panOnlyZoomed;return t===z?this.isTouchDevice:t}get isInfinite(){return this.option(\"infinite\")}get angle(){return 180*Math.atan2(this.current.b,this.current.a)/Math.PI||0}get targetAngle(){return 180*Math.atan2(this.target.b,this.target.a)/Math.PI||0}get scale(){const{a:t,b:e}=this.current;return Math.sqrt(t*t+e*e)||1}get targetScale(){const{a:t,b:e}=this.target;return Math.sqrt(t*t+e*e)||1}get minScale(){return this.option(\"minScale\")||1}get fullScale(){const{contentRect:t}=this;return t.fullWidth/t.fitWidth||1}get maxScale(){return this.fullScale*(this.option(\"maxScale\")||1)||1}get coverScale(){const{containerRect:t,contentRect:e}=this,i=Math.max(t.height/e.fitHeight,t.width/e.fitWidth)||1;return Math.min(this.fullScale,i)}get isScaling(){return Math.abs(this.targetScale-this.scale)>1e-5&&!this.isResting}get isContentLoading(){const t=this.content;return!!(t&&t instanceof HTMLImageElement)&&!t.complete}get isResting(){if(this.isBouncingX||this.isBouncingY)return!1;for(const t of v){const e=\"e\"==t||\"f\"===t?1e-4:1e-5;if(Math.abs(this.target[t]-this.current[t])>e)return!1}return!(!this.ignoreBounds&&!this.checkBounds().inBounds)}constructor(t,e={},i={}){var s;if(super(e),Object.defineProperty(this,\"pointerTracker\",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,\"resizeObserver\",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,\"updateTimer\",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,\"clickTimer\",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,\"rAF\",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,\"isTicking\",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,\"ignoreBounds\",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,\"isBouncingX\",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,\"isBouncingY\",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,\"clicks\",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,\"trackingPoints\",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,\"pwt\",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,\"cwd\",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,\"pmme\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"friction\",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,\"state\",{enumerable:!0,configurable:!0,writable:!0,value:m.Init}),Object.defineProperty(this,\"isDragging\",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,\"container\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"content\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"spinner\",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,\"containerRect\",{enumerable:!0,configurable:!0,writable:!0,value:{width:0,height:0,innerWidth:0,innerHeight:0}}),Object.defineProperty(this,\"contentRect\",{enumerable:!0,configurable:!0,writable:!0,value:{top:0,right:0,bottom:0,left:0,fullWidth:0,fullHeight:0,fitWidth:0,fitHeight:0,width:0,height:0}}),Object.defineProperty(this,\"dragStart\",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0,top:0,left:0,time:0}}),Object.defineProperty(this,\"dragOffset\",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0,time:0}}),Object.defineProperty(this,\"current\",{enumerable:!0,configurable:!0,writable:!0,value:Object.assign({},C)}),Object.defineProperty(this,\"target\",{enumerable:!0,configurable:!0,writable:!0,value:Object.assign({},C)}),Object.defineProperty(this,\"velocity\",{enumerable:!0,configurable:!0,writable:!0,value:{a:0,b:0,c:0,d:0,e:0,f:0}}),Object.defineProperty(this,\"lockedAxis\",{enumerable:!0,configurable:!0,writable:!0,value:!1}),!t)throw new Error(\"Container Element Not Found\");this.container=t,this.initContent(),this.attachPlugins(Object.assign(Object.assign({},I.Plugins),i)),this.emit(\"attachPlugins\"),this.emit(\"init\");const o=this.content;if(o.addEventListener(\"load\",this.onLoad),o.addEventListener(\"error\",this.onError),this.isContentLoading){if(this.option(\"spinner\")){t.classList.add(this.cn(\"isLoading\"));const e=n(x);!t.contains(o)||o.parentElement instanceof HTMLPictureElement?this.spinner=t.appendChild(e):this.spinner=(null===(s=o.parentElement)||void 0===s?void 0:s.insertBefore(e,o))||null}this.emit(\"beforeLoad\")}else queueMicrotask((()=>{this.enable()}))}initContent(){const{container:t}=this,e=this.cn(L);let i=this.option(L)||t.querySelector(`.${e}`);if(i||(i=t.querySelector(\"img,picture\")||t.firstElementChild,i&&P(i,e)),i instanceof HTMLPictureElement&&(i=i.querySelector(\"img\")),!i)throw new Error(\"No content found\");this.content=i}onLoad(){const{spinner:t,container:e,state:i}=this;t&&(t.remove(),this.spinner=null),this.option(\"spinner\")&&e.classList.remove(this.cn(\"isLoading\")),this.emit(\"afterLoad\"),i===m.Init?this.enable():this.updateMetrics()}onError(){this.state!==m.Destroy&&(this.spinner&&(this.spinner.remove(),this.spinner=null),this.stop(),this.detachEvents(),this.state=m.Error,this.emit(\"error\"))}getNextScale(t){const{fullScale:e,targetScale:i,coverScale:n,maxScale:s,minScale:o}=this;let a=o;switch(t){case\"toggleMax\":a=i-o<.5*(s-o)?s:o;break;case\"toggleCover\":a=i-o<.5*(n-o)?n:o;break;case\"toggleZoom\":a=i-o<.5*(e-o)?e:o;break;case\"iterateZoom\":let t=[1,e,s].sort(((t,e)=>t-e)),r=t.findIndex((t=>t>i+1e-5));a=t[r]||1}return a}attachObserver(){var t;const e=()=>{const{container:t,containerRect:e}=this;return Math.abs(e.width-t.getBoundingClientRect().width)>.1||Math.abs(e.height-t.getBoundingClientRect().height)>.1};this.resizeObserver||void 0===window.ResizeObserver||(this.resizeObserver=new ResizeObserver((()=>{this.updateTimer||(e()?(this.onResize(),this.isMobile&&(this.updateTimer=setTimeout((()=>{e()&&this.onResize(),this.updateTimer=null}),500))):this.updateTimer&&(clearTimeout(this.updateTimer),this.updateTimer=null))}))),null===(t=this.resizeObserver)||void 0===t||t.observe(this.container)}detachObserver(){var t;null===(t=this.resizeObserver)||void 0===t||t.disconnect()}attachEvents(){const{container:t}=this;t.addEventListener(\"click\",this.onClick,{passive:!1,capture:!1}),t.addEventListener(\"wheel\",this.onWheel,{passive:!1}),this.pointerTracker=new l(t,{start:this.onPointerDown,move:this.onPointerMove,end:this.onPointerUp}),document.addEventListener(O,this.onMouseMove)}detachEvents(){var t;const{container:e}=this;e.removeEventListener(\"click\",this.onClick,{passive:!1,capture:!1}),e.removeEventListener(\"wheel\",this.onWheel,{passive:!1}),null===(t=this.pointerTracker)||void 0===t||t.stop(),this.pointerTracker=null,document.removeEventListener(O,this.onMouseMove),document.removeEventListener(\"keydown\",this.onKeydown,!0),this.clickTimer&&(clearTimeout(this.clickTimer),this.clickTimer=null),this.updateTimer&&(clearTimeout(this.updateTimer),this.updateTimer=null)}animate(){this.setTargetForce();const t=this.friction,e=this.option(\"maxVelocity\");for(const i of v)t?(this.velocity[i]*=1-t,e&&!this.isScaling&&(this.velocity[i]=Math.max(Math.min(this.velocity[i],e),-1*e)),this.current[i]+=this.velocity[i]):this.current[i]=this.target[i];this.setTransform(),this.setEdgeForce(),!this.isResting||this.isDragging?this.rAF=requestAnimationFrame((()=>this.animate())):this.stop(\"current\")}setTargetForce(){for(const t of v)\"e\"===t&&this.isBouncingX||\"f\"===t&&this.isBouncingY||(this.velocity[t]=(1/(1-this.friction)-1)*(this.target[t]-this.current[t]))}checkBounds(t=0,e=0){const{current:i}=this,n=i.e+t,s=i.f+e,o=this.getBounds(),{x:a,y:r}=o,l=a.min,c=a.max,h=r.min,d=r.max;let u=0,p=0;return l!==1/0&&nc&&(u=c-n),h!==1/0&&sd&&(p=d-s),Math.abs(u)<1e-4&&(u=0),Math.abs(p)<1e-4&&(p=0),Object.assign(Object.assign({},o),{xDiff:u,yDiff:p,inBounds:!u&&!p})}clampTargetBounds(){const{target:t}=this,{x:e,y:i}=this.getBounds();e.min!==1/0&&(t.e=Math.max(t.e,e.min)),e.max!==1/0&&(t.e=Math.min(t.e,e.max)),i.min!==1/0&&(t.f=Math.max(t.f,i.min)),i.max!==1/0&&(t.f=Math.min(t.f,i.max))}calculateContentDim(t=this.current){const{content:e,contentRect:i}=this,{fitWidth:n,fitHeight:s,fullWidth:o,fullHeight:a}=i;let r=o,l=a;if(this.option(\"zoom\")||0!==this.angle){const i=!(e instanceof HTMLImageElement)&&(\"none\"===window.getComputedStyle(e).maxWidth||\"none\"===window.getComputedStyle(e).maxHeight),c=i?o:n,h=i?a:s,d=this.getMatrix(t),u=new DOMPoint(0,0).matrixTransform(d),p=new DOMPoint(0+c,0).matrixTransform(d),f=new DOMPoint(0+c,0+h).matrixTransform(d),g=new DOMPoint(0,0+h).matrixTransform(d),m=Math.abs(f.x-u.x),v=Math.abs(f.y-u.y),b=Math.abs(g.x-p.x),y=Math.abs(g.y-p.y);r=Math.max(m,b),l=Math.max(v,y)}return{contentWidth:r,contentHeight:l}}setEdgeForce(){if(this.ignoreBounds||this.isDragging||this.panMode===O||this.targetScale{const t=window.getSelection();return t&&\"Range\"===t.type})()&&!i.closest(\"button\"))return;const n=i.closest(\"[data-panzoom-action]\"),s=i.closest(\"[data-panzoom-change]\"),o=n||s,a=o&&E(o)?o.dataset:null;if(a){const e=a.panzoomChange,i=a.panzoomAction;if((e||i)&&t.preventDefault(),e){let t={};try{t=JSON.parse(e)}catch(t){console&&console.warn(\"The given data was not valid JSON\")}return void this.applyChange(t)}if(i)return void(this[i]&&this[i]())}if(Math.abs(this.dragOffset.x)>3||Math.abs(this.dragOffset.y)>3)return t.preventDefault(),void t.stopPropagation();if(i.closest(\"[data-fancybox]\"))return;const r=this.content.getBoundingClientRect(),l=this.dragStart;if(l.time&&!this.canZoomOut()&&(Math.abs(r.x-l.x)>2||Math.abs(r.y-l.y)>2))return;this.dragStart.time=0;const c=e=>{this.option(\"zoom\",t)&&e&&\"string\"==typeof e&&/(iterateZoom)|(toggle(Zoom|Full|Cover|Max)|(zoomTo(Fit|Cover|Max)))/.test(e)&&\"function\"==typeof this[e]&&(t.preventDefault(),this[e]({event:t}))},h=this.option(\"click\",t),d=this.option(\"dblClick\",t);d?(this.clicks++,1==this.clicks&&(this.clickTimer=setTimeout((()=>{1===this.clicks?(this.emit(\"click\",t),!t.defaultPrevented&&h&&c(h)):(this.emit(\"dblClick\",t),t.defaultPrevented||c(d)),this.clicks=0,this.clickTimer=null}),350))):(this.emit(\"click\",t),!t.defaultPrevented&&h&&c(h))}addTrackingPoint(t){const e=this.trackingPoints.filter((t=>t.time>Date.now()-100));e.push(t),this.trackingPoints=e}onPointerDown(t,e,i){var n;if(!1===this.option(\"touch\",t))return!1;this.pwt=0,this.dragOffset={x:0,y:0,time:0},this.trackingPoints=[];const s=this.content.getBoundingClientRect();if(this.dragStart={x:s.x,y:s.y,top:s.top,left:s.left,time:Date.now()},this.clickTimer)return!1;if(this.panMode===O&&this.targetScale>1)return t.preventDefault(),t.stopPropagation(),!1;const o=t.composedPath()[0];if(!i.length){if([\"TEXTAREA\",\"OPTION\",\"INPUT\",\"SELECT\",\"VIDEO\",\"IFRAME\"].includes(o.nodeName)||o.closest(\"[contenteditable],[data-selectable],[data-draggable],[data-clickable],[data-panzoom-change],[data-panzoom-action]\"))return!1;null===(n=window.getSelection())||void 0===n||n.removeAllRanges()}if(\"mousedown\"===t.type)[\"A\",\"BUTTON\"].includes(o.nodeName)||t.preventDefault();else if(Math.abs(this.velocity.a)>.3)return!1;return this.target.e=this.current.e,this.target.f=this.current.f,this.stop(),this.isDragging||(this.isDragging=!0,this.addTrackingPoint(e),this.emit(\"touchStart\",t)),!0}onPointerMove(e,n,s){if(!1===this.option(\"touch\",e))return;if(!this.isDragging)return;if(n.length<2&&this.panOnlyZoomed&&t(this.targetScale)<=t(this.minScale))return;if(this.emit(\"touchMove\",e),e.defaultPrevented)return;this.addTrackingPoint(n[0]);const{content:o}=this,a=h(s[0],s[1]),r=h(n[0],n[1]);let l=0,d=0;if(n.length>1){const t=o.getBoundingClientRect();l=a.clientX-t.left-.5*t.width,d=a.clientY-t.top-.5*t.height}const u=c(s[0],s[1]),p=c(n[0],n[1]);let f=u?p/u:1,g=r.clientX-a.clientX,m=r.clientY-a.clientY;this.dragOffset.x+=g,this.dragOffset.y+=m,this.dragOffset.time=Date.now()-this.dragStart.time;let v=t(this.targetScale)===t(this.minScale)&&this.option(\"lockAxis\");if(v&&!this.lockedAxis)if(\"xy\"===v||\"y\"===v||\"touchmove\"===e.type){if(Math.abs(this.dragOffset.x)<6&&Math.abs(this.dragOffset.y)<6)return void e.preventDefault();const t=Math.abs(180*Math.atan2(this.dragOffset.y,this.dragOffset.x)/Math.PI);this.lockedAxis=t>45&&t<135?\"y\":\"x\",this.dragOffset.x=0,this.dragOffset.y=0,g=0,m=0}else this.lockedAxis=v;if(i(e.target,this.content)&&(v=\"x\",this.dragOffset.y=0),v&&\"xy\"!==v&&this.lockedAxis!==v&&t(this.targetScale)===t(this.minScale))return;e.cancelable&&e.preventDefault(),this.container.classList.add(this.cn(\"isDragging\"));const b=this.checkBounds(g,m);this.option(\"rubberband\")?(\"x\"!==this.isInfinite&&(b.xDiff>0&&g<0||b.xDiff<0&&g>0)&&(g*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitWidth*b.xDiff))),\"y\"!==this.isInfinite&&(b.yDiff>0&&m<0||b.yDiff<0&&m>0)&&(m*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitHeight*b.yDiff)))):(b.xDiff&&(g=0),b.yDiff&&(m=0));const y=this.targetScale,w=this.minScale,x=this.maxScale;y<.5*w&&(f=Math.max(f,w)),y>1.5*x&&(f=Math.min(f,x)),\"y\"===this.lockedAxis&&t(y)===t(w)&&(g=0),\"x\"===this.lockedAxis&&t(y)===t(w)&&(m=0),this.applyChange({originX:l,originY:d,panX:g,panY:m,scale:f,friction:this.option(\"dragFriction\"),ignoreBounds:!0})}onPointerUp(t,e,n){if(n.length)return this.dragOffset.x=0,this.dragOffset.y=0,void(this.trackingPoints=[]);this.container.classList.remove(this.cn(\"isDragging\")),this.isDragging&&(this.addTrackingPoint(e),this.panOnlyZoomed&&this.contentRect.width-this.contentRect.fitWidth<1&&this.contentRect.height-this.contentRect.fitHeight<1&&(this.trackingPoints=[]),i(t.target,this.content)&&\"y\"===this.lockedAxis&&(this.trackingPoints=[]),this.emit(\"touchEnd\",t),this.isDragging=!1,this.lockedAxis=!1,this.state!==m.Destroy&&(t.defaultPrevented||this.startDecelAnim()))}startDecelAnim(){var e;const i=this.isScaling;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.isBouncingX=!1,this.isBouncingY=!1;for(const t of v)this.velocity[t]=0;this.target.e=this.current.e,this.target.f=this.current.f,S(this.container,\"is-scaling\"),S(this.container,\"is-animating\"),this.isTicking=!1;const{trackingPoints:n}=this,s=n[0],o=n[n.length-1];let a=0,r=0,l=0;o&&s&&(a=o.clientX-s.clientX,r=o.clientY-s.clientY,l=o.time-s.time);const c=(null===(e=window.visualViewport)||void 0===e?void 0:e.scale)||1;1!==c&&(a*=c,r*=c);let h=0,d=0,u=0,p=0,f=this.option(\"decelFriction\");const g=this.targetScale;if(l>0){u=Math.abs(a)>3?a/(l/30):0,p=Math.abs(r)>3?r/(l/30):0;const t=this.option(\"maxVelocity\");t&&(u=Math.max(Math.min(u,t),-1*t),p=Math.max(Math.min(p,t),-1*t))}u&&(h=u/(1/(1-f)-1)),p&&(d=p/(1/(1-f)-1)),(\"y\"===this.option(\"lockAxis\")||\"xy\"===this.option(\"lockAxis\")&&\"y\"===this.lockedAxis&&t(g)===this.minScale)&&(h=u=0),(\"x\"===this.option(\"lockAxis\")||\"xy\"===this.option(\"lockAxis\")&&\"x\"===this.lockedAxis&&t(g)===this.minScale)&&(d=p=0);const m=this.dragOffset.x,b=this.dragOffset.y,y=this.option(\"dragMinThreshold\")||0;Math.abs(m)this.maxScale+1e-5)||i&&!h&&!d)&&(f=.35),this.applyChange({panX:h,panY:d,friction:f}),this.emit(\"decel\",u,p,m,b)}onWheel(t){var e=[-t.deltaX||0,-t.deltaY||0,-t.detail||0].reduce((function(t,e){return Math.abs(e)>Math.abs(t)?e:t}));const i=Math.max(-1,Math.min(1,e));if(this.emit(\"wheel\",t,i),this.panMode===O)return;if(t.defaultPrevented)return;const n=this.option(\"wheel\");\"pan\"===n?(t.preventDefault(),this.panOnlyZoomed&&!this.canZoomOut()||this.applyChange({panX:2*-t.deltaX,panY:2*-t.deltaY,bounce:!1})):\"zoom\"===n&&!1!==this.option(\"zoom\")&&this.zoomWithWheel(t)}onMouseMove(t){this.panWithMouse(t)}onKeydown(t){\"Escape\"===t.key&&this.toggleFS()}onResize(){this.updateMetrics(),this.checkBounds().inBounds||this.requestTick()}setTransform(){this.emit(\"beforeTransform\");const{current:e,target:i,content:n,contentRect:s}=this,o=Object.assign({},C);for(const n of v){const s=\"e\"==n||\"f\"===n?M:T;o[n]=t(e[n],s),Math.abs(i[n]-e[n])<(\"e\"==n||\"f\"===n?.51:.001)&&(e[n]=i[n])}let{a:a,b:r,c:l,d:c,e:h,f:d}=o,u=`matrix(${a}, ${r}, ${l}, ${c}, ${h}, ${d})`,p=n.parentElement instanceof HTMLPictureElement?n.parentElement:n;if(this.option(\"transformParent\")&&(p=p.parentElement||p),p.style.transform===u)return;p.style.transform=u;const{contentWidth:f,contentHeight:g}=this.calculateContentDim();s.width=f,s.height=g,this.emit(\"afterTransform\")}updateMetrics(e=!1){var i;if(!this||this.state===m.Destroy)return;if(this.isContentLoading)return;const n=Math.max(1,(null===(i=window.visualViewport)||void 0===i?void 0:i.scale)||1),{container:s,content:o}=this,a=o instanceof HTMLImageElement,r=s.getBoundingClientRect(),l=getComputedStyle(this.container);let c=r.width*n,h=r.height*n;const d=parseFloat(l.paddingTop)+parseFloat(l.paddingBottom),u=c-(parseFloat(l.paddingLeft)+parseFloat(l.paddingRight)),p=h-d;this.containerRect={width:c,height:h,innerWidth:u,innerHeight:p};const f=parseFloat(o.dataset.width||\"\")||(t=>{let e=0;return e=t instanceof HTMLImageElement?t.naturalWidth:t instanceof SVGElement?t.width.baseVal.value:Math.max(t.offsetWidth,t.scrollWidth),e||0})(o),g=parseFloat(o.dataset.height||\"\")||(t=>{let e=0;return e=t instanceof HTMLImageElement?t.naturalHeight:t instanceof SVGElement?t.height.baseVal.value:Math.max(t.offsetHeight,t.scrollHeight),e||0})(o);let v=this.option(\"width\",f)||z,b=this.option(\"height\",g)||z;const y=v===z,w=b===z;\"number\"!=typeof v&&(v=f),\"number\"!=typeof b&&(b=g),y&&(v=f*(b/g)),w&&(b=g/(f/v));let x=o.parentElement instanceof HTMLPictureElement?o.parentElement:o;this.option(\"transformParent\")&&(x=x.parentElement||x);const E=x.getAttribute(\"style\")||\"\";x.style.setProperty(\"transform\",\"none\",\"important\"),a&&(x.style.width=\"\",x.style.height=\"\"),x.offsetHeight;const S=o.getBoundingClientRect();let P=S.width*n,C=S.height*n,T=P,M=C;P=Math.min(P,v),C=Math.min(C,b),a?({width:P,height:C}=((t,e,i,n)=>{const s=i/t,o=n/e,a=Math.min(s,o);return{width:t*=a,height:e*=a}})(v,b,P,C)):(P=Math.min(P,v),C=Math.min(C,b));let O=.5*(M-C),A=.5*(T-P);this.contentRect=Object.assign(Object.assign({},this.contentRect),{top:S.top-r.top+O,bottom:r.bottom-S.bottom+O,left:S.left-r.left+A,right:r.right-S.right+A,fitWidth:P,fitHeight:C,width:P,height:C,fullWidth:v,fullHeight:b}),x.style.cssText=E,a&&(x.style.width=`${P}px`,x.style.height=`${C}px`),this.setTransform(),!0!==e&&this.emit(\"refresh\"),this.ignoreBounds||(t(this.targetScale)this.maxScale?this.zoomTo(this.maxScale,{friction:0}):this.state===m.Init||this.checkBounds().inBounds||this.requestTick()),this.updateControls()}calculateBounds(){const{contentWidth:e,contentHeight:i}=this.calculateContentDim(this.target),{targetScale:n,lockedAxis:s}=this,{fitWidth:o,fitHeight:a}=this.contentRect;let r=0,l=0,c=0,h=0;const d=this.option(\"infinite\");if(!0===d||s&&d===s)r=-1/0,c=1/0,l=-1/0,h=1/0;else{let{containerRect:s,contentRect:d}=this,u=t(o*n,M),p=t(a*n,M),{innerWidth:f,innerHeight:g}=s;if(s.width===u&&(f=s.width),s.width===p&&(g=s.height),e>f){c=.5*(e-f),r=-1*c;let t=.5*(d.right-d.left);r+=t,c+=t}if(o>f&&eg){h=.5*(i-g),l=-1*h;let t=.5*(d.bottom-d.top);l+=t,h+=t}a>g&&it(s.fitWidth,1)||t(s.height,1)>t(s.fitHeight,1))&&(p=!0)),t(s.width*a,1)t(a),g=!f&&!p&&d&&t(l)i&&(n=i/t)}y=y.scale(n)}y=y.translate(-o,-a).translate(-f,-g).multiply(b),s&&(y=y.rotate(s)),l&&(y=y.scale(-1,1)),c&&(y=y.scale(1,-1));for(const e of v)\"e\"!==e&&\"f\"!==e&&(y[e]>this.minScale+1e-5||y[e].1||this.panMode===O||!1===d)&&!h&&this.clampTargetBounds(),u===m.Init?this.animate():this.isResting||(this.state=m.Panning,this.requestTick())}stop(t=!1){if(this.state===m.Init||this.state===m.Destroy)return;const e=this.isTicking;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.isBouncingX=!1,this.isBouncingY=!1;for(const e of v)this.velocity[e]=0,\"current\"===t?this.current[e]=this.target[e]:\"target\"===t&&(this.target[e]=this.current[e]);this.setTransform(),S(this.container,\"is-scaling\"),S(this.container,\"is-animating\"),this.isTicking=!1,this.state=m.Ready,e&&(this.emit(\"endAnimation\"),this.updateControls())}requestTick(){this.isTicking||(this.emit(\"startAnimation\"),this.updateControls(),P(this.container,\"is-animating\"),this.isScaling&&P(this.container,\"is-scaling\")),this.isTicking=!0,this.rAF||(this.rAF=requestAnimationFrame((()=>this.animate())))}panWithMouse(e,i=this.option(\"mouseMoveFriction\")){if(this.pmme=e,this.panMode!==O||!e)return;if(t(this.targetScale)<=t(this.minScale))return;this.emit(\"mouseMove\",e);const{container:n,containerRect:s,contentRect:o}=this,a=s.width,r=s.height,l=n.getBoundingClientRect(),c=(e.clientX||0)-l.left,h=(e.clientY||0)-l.top;let{contentWidth:d,contentHeight:u}=this.calculateContentDim(this.target);const p=this.option(\"mouseMoveFactor\");p>1&&(d!==a&&(d*=p),u!==r&&(u*=p));let f=.5*(d-a)-c/a*100/100*(d-a);f+=.5*(o.right-o.left);let g=.5*(u-r)-h/r*100/100*(u-r);g+=.5*(o.bottom-o.top),this.applyChange({panX:f-this.target.e,panY:g-this.target.f,friction:i})}zoomWithWheel(e){if(this.state===m.Destroy||this.state===m.Init)return;const i=Date.now();if(i-this.pwt<45)return void e.preventDefault();this.pwt=i;var n=[-e.deltaX||0,-e.deltaY||0,-e.detail||0].reduce((function(t,e){return Math.abs(e)>Math.abs(t)?e:t}));const s=Math.max(-1,Math.min(1,n)),{targetScale:o,maxScale:a,minScale:r}=this;let l=o*(100+45*s)/100;t(l)t(a)&&t(o)>=t(a)?(this.cwd+=Math.abs(s),l=a):(this.cwd=0,l=Math.max(Math.min(l,a),r)),this.cwd>this.option(\"wheelLimit\")||(e.preventDefault(),t(l)!==t(o)&&this.zoomTo(l,{event:e}))}canZoomIn(){return this.option(\"zoom\")&&(t(this.contentRect.width,1)t(this.minScale)}zoomIn(t=1.25,e){this.zoomTo(this.targetScale*t,e)}zoomOut(t=.8,e){this.zoomTo(this.targetScale*t,e)}zoomToFit(t){this.zoomTo(\"fit\",t)}zoomToCover(t){this.zoomTo(\"cover\",t)}zoomToFull(t){this.zoomTo(\"full\",t)}zoomToMax(t){this.zoomTo(\"max\",t)}toggleZoom(t){this.zoomTo(this.getNextScale(\"toggleZoom\"),t)}toggleMax(t){this.zoomTo(this.getNextScale(\"toggleMax\"),t)}toggleCover(t){this.zoomTo(this.getNextScale(\"toggleCover\"),t)}iterateZoom(t){this.zoomTo(\"next\",t)}zoomTo(t=1,{friction:e=z,originX:i=z,originY:n=z,event:s}={}){if(this.isContentLoading||this.state===m.Destroy)return;const{targetScale:o,fullScale:a,maxScale:r,coverScale:l}=this;if(this.stop(),this.panMode===O&&(s=this.pmme||s),s||i===z||n===z){const t=this.content.getBoundingClientRect(),e=this.container.getBoundingClientRect(),o=s?s.clientX:e.left+.5*e.width,a=s?s.clientY:e.top+.5*e.height;i=o-t.left-.5*t.width,n=a-t.top-.5*t.height}let c=1;\"number\"==typeof t?c=t:\"full\"===t?c=a:\"cover\"===t?c=l:\"max\"===t?c=r:\"fit\"===t?c=1:\"next\"===t&&(c=this.getNextScale(\"iterateZoom\")),c=c/o||1,e=e===z?c>1?.15:.25:e,this.applyChange({scale:c,originX:i,originY:n,friction:e}),s&&this.panMode===O&&this.panWithMouse(s,e)}rotateCCW(){this.applyChange({angle:-90})}rotateCW(){this.applyChange({angle:90})}flipX(){this.applyChange({flipX:!0})}flipY(){this.applyChange({flipY:!0})}fitX(){this.stop(\"target\");const{containerRect:t,contentRect:e,target:i}=this;this.applyChange({panX:.5*t.width-(e.left+.5*e.fitWidth)-i.e,panY:.5*t.height-(e.top+.5*e.fitHeight)-i.f,scale:t.width/e.fitWidth/this.targetScale,originX:0,originY:0,ignoreBounds:!0})}fitY(){this.stop(\"target\");const{containerRect:t,contentRect:e,target:i}=this;this.applyChange({panX:.5*t.width-(e.left+.5*e.fitWidth)-i.e,panY:.5*t.innerHeight-(e.top+.5*e.fitHeight)-i.f,scale:t.height/e.fitHeight/this.targetScale,originX:0,originY:0,ignoreBounds:!0})}toggleFS(){const{container:t}=this,e=this.cn(\"inFullscreen\"),i=this.cn(\"htmlHasFullscreen\");t.classList.toggle(e);const n=t.classList.contains(e);n?(document.documentElement.classList.add(i),document.addEventListener(\"keydown\",this.onKeydown,!0)):(document.documentElement.classList.remove(i),document.removeEventListener(\"keydown\",this.onKeydown,!0)),this.updateMetrics(),this.emit(n?\"enterFS\":\"exitFS\")}getMatrix(t=this.current){const{a:e,b:i,c:n,d:s,e:o,f:a}=t;return new DOMMatrix([e,i,n,s,o,a])}reset(t){if(this.state!==m.Init&&this.state!==m.Destroy){this.stop(\"current\");for(const t of v)this.target[t]=C[t];this.target.a=this.minScale,this.target.d=this.minScale,this.clampTargetBounds(),this.isResting||(this.friction=void 0===t?this.option(\"friction\"):t,this.state=m.Panning,this.requestTick())}}destroy(){this.stop(),this.state=m.Destroy,this.detachEvents(),this.detachObserver();const{container:t,content:e}=this,i=this.option(\"classes\")||{};for(const e of Object.values(i))t.classList.remove(e+\"\");e&&(e.removeEventListener(\"load\",this.onLoad),e.removeEventListener(\"error\",this.onError)),this.detachPlugins()}}Object.defineProperty(I,\"defaults\",{enumerable:!0,configurable:!0,writable:!0,value:y}),Object.defineProperty(I,\"Plugins\",{enumerable:!0,configurable:!0,writable:!0,value:{}});const D=function(t,e){let i=!0;return(...n)=>{i&&(i=!1,t(...n),setTimeout((()=>{i=!0}),e))}},F=(t,e)=>{let i=[];return t.childNodes.forEach((t=>{t.nodeType!==Node.ELEMENT_NODE||e&&!t.matches(e)||i.push(t)})),i},j={viewport:null,track:null,enabled:!0,slides:[],axis:\"x\",transition:\"fade\",preload:1,slidesPerPage:\"auto\",initialPage:0,friction:.12,Panzoom:{decelFriction:.12},center:!0,infinite:!0,fill:!0,dragFree:!1,adaptiveHeight:!1,direction:\"ltr\",classes:{container:\"f-carousel\",viewport:\"f-carousel__viewport\",track:\"f-carousel__track\",slide:\"f-carousel__slide\",isLTR:\"is-ltr\",isRTL:\"is-rtl\",isHorizontal:\"is-horizontal\",isVertical:\"is-vertical\",inTransition:\"in-transition\",isSelected:\"is-selected\"},l10n:{NEXT:\"Next slide\",PREV:\"Previous slide\",GOTO:\"Go to slide #%d\"}};var B;!function(t){t[t.Init=0]=\"Init\",t[t.Ready=1]=\"Ready\",t[t.Destroy=2]=\"Destroy\"}(B||(B={}));const H=t=>{if(\"string\"==typeof t||t instanceof HTMLElement)t={html:t};else{const e=t.thumb;void 0!==e&&(\"string\"==typeof e&&(t.thumbSrc=e),e instanceof HTMLImageElement&&(t.thumbEl=e,t.thumbElSrc=e.src,t.thumbSrc=e.src),delete t.thumb)}return Object.assign({html:\"\",el:null,isDom:!1,class:\"\",customClass:\"\",index:-1,dim:0,gap:0,pos:0,transition:!1},t)},N=(t={})=>Object.assign({index:-1,slides:[],dim:0,pos:-1},t);class _ extends f{constructor(t,e){super(e),Object.defineProperty(this,\"instance\",{enumerable:!0,configurable:!0,writable:!0,value:t})}attach(){}detach(){}}const $={classes:{list:\"f-carousel__dots\",isDynamic:\"is-dynamic\",hasDots:\"has-dots\",dot:\"f-carousel__dot\",isBeforePrev:\"is-before-prev\",isPrev:\"is-prev\",isCurrent:\"is-current\",isNext:\"is-next\",isAfterNext:\"is-after-next\"},dotTpl:'',dynamicFrom:11,maxCount:1/0,minCount:2};class W extends _{constructor(){super(...arguments),Object.defineProperty(this,\"isDynamic\",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,\"list\",{enumerable:!0,configurable:!0,writable:!0,value:null})}onRefresh(){this.refresh()}build(){let t=this.list;if(!t){t=document.createElement(\"ul\"),P(t,this.cn(\"list\")),t.setAttribute(\"role\",\"tablist\");const e=this.instance.container;e.appendChild(t),P(e,this.cn(\"hasDots\")),this.list=t}return t}refresh(){var t;const e=this.instance.pages.length,i=Math.min(2,this.option(\"minCount\")),n=Math.max(2e3,this.option(\"maxCount\")),s=this.option(\"dynamicFrom\");if(en)return void this.cleanup();const a=\"number\"==typeof s&&e>5&&e>=s,r=!this.list||this.isDynamic!==a||this.list.children.length!==e;r&&this.cleanup();const l=this.build();if(o(l,this.cn(\"isDynamic\"),!!a),r)for(let t=0;t=e-1&&s.setAttribute(X,\"\")))}addBtn(t){var e;const i=this.instance,n=document.createElement(\"button\");n.setAttribute(\"tabindex\",\"0\"),n.setAttribute(\"title\",i.localize(`{{${t.toUpperCase()}}}`)),P(n,this.cn(\"button\")+\" \"+this.cn(t===q?\"isNext\":\"isPrev\"));const s=i.isRTL?t===q?Y:q:t;var o;return n.innerHTML=i.localize(this.option(`${s}Tpl`)),n.dataset[`carousel${o=t,o?o.match(\"^[a-z]\")?o.charAt(0).toUpperCase()+o.substring(1):o:\"\"}`]=\"true\",null===(e=this.container)||void 0===e||e.appendChild(n),n}build(){const t=this.instance.container,e=this.cn(\"container\");let{container:i,prev:n,next:s}=this;i||(i=t.querySelector(\".\"+e),this.isDom=!!i),i||(i=document.createElement(\"div\"),P(i,e),t.appendChild(i)),this.container=i,s||(s=i.querySelector(\"[data-carousel-next]\")),s||(s=this.addBtn(q)),this.next=s,n||(n=i.querySelector(\"[data-carousel-prev]\")),n||(n=this.addBtn(Y)),this.prev=n}cleanup(){this.isDom||(this.prev&&this.prev.remove(),this.next&&this.next.remove(),this.container&&this.container.remove()),this.prev=null,this.next=null,this.container=null,this.isDom=!1}attach(){this.instance.on([\"refresh\",\"change\"],this.onRefresh)}detach(){this.instance.off([\"refresh\",\"change\"],this.onRefresh),this.cleanup()}}Object.defineProperty(V,\"defaults\",{enumerable:!0,configurable:!0,writable:!0,value:{classes:{container:\"f-carousel__nav\",button:\"f-button\",isNext:\"is-next\",isPrev:\"is-prev\"},nextTpl:'',prevTpl:''}});class Z extends _{constructor(){super(...arguments),Object.defineProperty(this,\"selectedIndex\",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,\"target\",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,\"nav\",{enumerable:!0,configurable:!0,writable:!0,value:null})}addAsTargetFor(t){this.target=this.instance,this.nav=t,this.attachEvents()}addAsNavFor(t){this.nav=this.instance,this.target=t,this.attachEvents()}attachEvents(){const{nav:t,target:e}=this;t&&e&&(t.options.initialSlide=e.options.initialPage,t.state===B.Ready?this.onNavReady(t):t.on(\"ready\",this.onNavReady),e.state===B.Ready?this.onTargetReady(e):e.on(\"ready\",this.onTargetReady))}onNavReady(t){t.on(\"createSlide\",this.onNavCreateSlide),t.on(\"Panzoom.click\",this.onNavClick),t.on(\"Panzoom.touchEnd\",this.onNavTouch),this.onTargetChange()}onTargetReady(t){t.on(\"change\",this.onTargetChange),t.on(\"Panzoom.refresh\",this.onTargetChange),this.onTargetChange()}onNavClick(t,e,i){this.onNavTouch(t,t.panzoom,i)}onNavTouch(t,e,i){var n,s;if(Math.abs(e.dragOffset.x)>3||Math.abs(e.dragOffset.y)>3)return;const o=i.target,{nav:a,target:r}=this;if(!a||!r||!o)return;const l=o.closest(\"[data-index]\");if(i.stopPropagation(),i.preventDefault(),!l)return;const c=parseInt(l.dataset.index||\"\",10)||0,h=r.getPageForSlide(c),d=a.getPageForSlide(c);a.slideTo(d),r.slideTo(h,{friction:(null===(s=null===(n=this.nav)||void 0===n?void 0:n.plugins)||void 0===s?void 0:s.Sync.option(\"friction\"))||0}),this.markSelectedSlide(c)}onNavCreateSlide(t,e){e.index===this.selectedIndex&&this.markSelectedSlide(e.index)}onTargetChange(){var t,e;const{target:i,nav:n}=this;if(!i||!n)return;if(n.state!==B.Ready||i.state!==B.Ready)return;const s=null===(e=null===(t=i.pages[i.page])||void 0===t?void 0:t.slides[0])||void 0===e?void 0:e.index,o=n.getPageForSlide(s);this.markSelectedSlide(s),n.slideTo(o,null===n.prevPage&&null===i.prevPage?{friction:0}:void 0)}markSelectedSlide(t){const e=this.nav;e&&e.state===B.Ready&&(this.selectedIndex=t,[...e.slides].map((e=>{e.el&&e.el.classList[e.index===t?\"add\":\"remove\"](\"is-nav-selected\")})))}attach(){const t=this;let e=t.options.target,i=t.options.nav;e?t.addAsNavFor(e):i&&t.addAsTargetFor(i)}detach(){const t=this,e=t.nav,i=t.target;e&&(e.off(\"ready\",t.onNavReady),e.off(\"createSlide\",t.onNavCreateSlide),e.off(\"Panzoom.click\",t.onNavClick),e.off(\"Panzoom.touchEnd\",t.onNavTouch)),t.nav=null,i&&(i.off(\"ready\",t.onTargetReady),i.off(\"refresh\",t.onTargetChange),i.off(\"change\",t.onTargetChange)),t.target=null}}Object.defineProperty(Z,\"defaults\",{enumerable:!0,configurable:!0,writable:!0,value:{friction:.35}});const U={Navigation:V,Dots:W,Sync:Z},G=\"animationend\",K=\"isSelected\",J=\"slide\";class Q extends g{get axis(){return this.isHorizontal?\"e\":\"f\"}get isEnabled(){return this.state===B.Ready}get isInfinite(){let t=!1;const{contentDim:e,viewportDim:i,pages:n,slides:s}=this,o=s[0];return n.length>=2&&o&&e+o.dim>=i&&(t=this.option(\"infinite\")),t}get isRTL(){return\"rtl\"===this.option(\"direction\")}get isHorizontal(){return\"x\"===this.option(\"axis\")}constructor(t,e={},i={}){if(super(),Object.defineProperty(this,\"bp\",{enumerable:!0,configurable:!0,writable:!0,value:\"\"}),Object.defineProperty(this,\"lp\",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,\"userOptions\",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,\"userPlugins\",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,\"state\",{enumerable:!0,configurable:!0,writable:!0,value:B.Init}),Object.defineProperty(this,\"page\",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,\"prevPage\",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,\"container\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"viewport\",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,\"track\",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,\"slides\",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,\"pages\",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,\"panzoom\",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,\"inTransition\",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),Object.defineProperty(this,\"contentDim\",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,\"viewportDim\",{enumerable:!0,configurable:!0,writable:!0,value:0}),\"string\"==typeof t&&(t=document.querySelector(t)),!t||!E(t))throw new Error(\"No Element found\");this.container=t,this.slideNext=D(this.slideNext.bind(this),150),this.slidePrev=D(this.slidePrev.bind(this),150),this.userOptions=e,this.userPlugins=i,queueMicrotask((()=>{this.processOptions()}))}processOptions(){var t,e;const i=u({},Q.defaults,this.userOptions);let n=\"\";const s=i.breakpoints;if(s&&d(s))for(const[t,e]of Object.entries(s))window.matchMedia(t).matches&&d(e)&&(n+=t,u(i,e));n===this.bp&&this.state!==B.Init||(this.bp=n,this.state===B.Ready&&(i.initialSlide=(null===(e=null===(t=this.pages[this.page])||void 0===t?void 0:t.slides[0])||void 0===e?void 0:e.index)||0),this.state!==B.Init&&this.destroy(),super.setOptions(i),!1===this.option(\"enabled\")?this.attachEvents():setTimeout((()=>{this.init()}),0))}init(){this.state=B.Init,this.emit(\"init\"),this.attachPlugins(Object.assign(Object.assign({},Q.Plugins),this.userPlugins)),this.emit(\"attachPlugins\"),this.initLayout(),this.initSlides(),this.updateMetrics(),this.setInitialPosition(),this.initPanzoom(),this.attachEvents(),this.state=B.Ready,this.emit(\"ready\")}initLayout(){const{container:t}=this,e=this.option(\"classes\");P(t,this.cn(\"container\")),o(t,e.isLTR,!this.isRTL),o(t,e.isRTL,this.isRTL),o(t,e.isVertical,!this.isHorizontal),o(t,e.isHorizontal,this.isHorizontal);let i=this.option(\"viewport\")||t.querySelector(`.${e.viewport}`);i||(i=document.createElement(\"div\"),P(i,e.viewport),i.append(...F(t,`.${e.slide}`)),t.prepend(i)),i.addEventListener(\"scroll\",this.onScroll);let n=this.option(\"track\")||t.querySelector(`.${e.track}`);n||(n=document.createElement(\"div\"),P(n,e.track),n.append(...Array.from(i.childNodes))),n.setAttribute(\"aria-live\",\"polite\"),i.contains(n)||i.prepend(n),this.viewport=i,this.track=n,this.emit(\"initLayout\")}initSlides(){const{track:t}=this;if(!t)return;const e=[...this.slides],i=[];[...F(t,`.${this.cn(J)}`)].forEach((t=>{if(E(t)){const e=H({el:t,isDom:!0,index:this.slides.length});i.push(e)}}));for(let t of[...this.option(\"slides\",[])||[],...e])i.push(H(t));this.slides=i;for(let t=0;t!(this.pages.length<2&&!t.options.infinite),bounds:()=>this.getBounds(),maxVelocity:t=>Math.abs(t.target[this.axis]-t.current[this.axis])<2*this.viewportDim?100:0},t)),this.panzoom.on(\"*\",((t,e,...i)=>{this.emit(`Panzoom.${e}`,t,...i)})),this.panzoom.on(\"decel\",this.onDecel),this.panzoom.on(\"refresh\",this.onRefresh),this.panzoom.on(\"beforeTransform\",this.onBeforeTransform),this.panzoom.on(\"endAnimation\",this.onEndAnimation)}attachEvents(){const t=this.container;t&&(t.addEventListener(\"click\",this.onClick,{passive:!1,capture:!1}),t.addEventListener(\"slideTo\",this.onSlideTo)),window.addEventListener(\"resize\",this.onResize)}createPages(){let t=[];const{contentDim:e,viewportDim:i}=this;let n=this.option(\"slidesPerPage\");n=(\"auto\"===n||e<=i)&&!1!==this.option(\"fill\")?1/0:parseFloat(n+\"\");let s=0,o=0,a=0;for(const e of this.slides)(!t.length||o+e.dim-i>.05||a>=n)&&(t.push(N()),s=t.length-1,o=0,a=0),t[s].slides.push(e),o+=e.dim+e.gap,a++;return t}processPages(){const e=this.pages,{contentDim:i,viewportDim:n,isInfinite:s}=this,o=this.option(\"center\"),a=this.option(\"fill\"),r=a&&o&&i>n&&!s;if(e.forEach(((t,e)=>{var s;t.index=e,t.pos=(null===(s=t.slides[0])||void 0===s?void 0:s.pos)||0,t.dim=0;for(const[e,i]of t.slides.entries())t.dim+=i.dim,e=i-.5*n?t.pos=i-n:o&&(t.pos+=-.5*(n-t.dim))})),e.forEach((e=>{a&&!s&&i>n&&(e.pos=Math.max(e.pos,0),e.pos=Math.min(e.pos,i-n)),e.pos=t(e.pos,1e3),e.dim=t(e.dim,1e3),Math.abs(e.pos)<=.1&&(e.pos=0)})),s)return e;const l=[];let c;return e.forEach((t=>{const e=Object.assign({},t);c&&e.pos===c.pos?(c.dim+=e.dim,c.slides=[...c.slides,...e.slides]):(e.index=l.length,c=e,l.push(e))})),l}getPageFromIndex(t=0){const e=this.pages.length;let i;return t=parseInt((t||0).toString())||0,i=this.isInfinite?(t%e+e)%e:Math.max(Math.min(t,e-1),0),i}getSlideMetrics(e){var i,n;const s=this.isHorizontal?\"width\":\"height\";let o=0,a=0,r=e.el;const l=!(!r||r.parentNode);if(r?o=parseFloat(r.dataset[s]||\"\")||0:(r=document.createElement(\"div\"),r.style.visibility=\"hidden\",(this.track||document.body).prepend(r)),P(r,this.cn(J)+\" \"+e.class+\" \"+e.customClass),o)r.style[s]=`${o}px`,r.style[\"width\"===s?\"height\":\"width\"]=\"\";else{l&&(this.track||document.body).prepend(r),o=r.getBoundingClientRect()[s]*Math.max(1,(null===(i=window.visualViewport)||void 0===i?void 0:i.scale)||1);let t=r[this.isHorizontal?\"offsetWidth\":\"offsetHeight\"];t-1>o&&(o=t)}const c=getComputedStyle(r);return\"content-box\"===c.boxSizing&&(this.isHorizontal?(o+=parseFloat(c.paddingLeft)||0,o+=parseFloat(c.paddingRight)||0):(o+=parseFloat(c.paddingTop)||0,o+=parseFloat(c.paddingBottom)||0)),a=parseFloat(c[this.isHorizontal?\"marginRight\":\"marginBottom\"])||0,l?null===(n=r.parentElement)||void 0===n||n.removeChild(r):e.el||r.remove(),{dim:t(o,1e3),gap:t(a,1e3)}}getBounds(){const{isInfinite:t,isRTL:e,isHorizontal:i,pages:n}=this;let s={min:0,max:0};if(t)s={min:-1/0,max:1/0};else if(n.length){const t=n[0].pos,o=n[n.length-1].pos;s=e&&i?{min:t,max:o}:{min:-1*o,max:-1*t}}return{x:i?s:{min:0,max:0},y:i?{min:0,max:0}:s}}repositionSlides(){let e,{isHorizontal:i,isRTL:n,isInfinite:s,viewport:o,viewportDim:a,contentDim:r,page:l,pages:c,slides:h,panzoom:d}=this,u=0,p=0,f=0,g=0;d?g=-1*d.current[this.axis]:c[l]&&(g=c[l].pos||0),e=i?n?\"right\":\"left\":\"top\",n&&i&&(g*=-1);for(const i of h){const n=i.el;n?(\"top\"===e?(n.style.right=\"\",n.style.left=\"\"):n.style.top=\"\",i.index!==u?n.style[e]=0===p?\"\":`${t(p,1e3)}px`:n.style[e]=\"\",f+=i.dim+i.gap,u++):p+=i.dim+i.gap}if(s&&f&&o){let n=getComputedStyle(o),s=\"padding\",l=i?\"Right\":\"Bottom\",c=parseFloat(n[s+(i?\"Left\":\"Top\")]);g-=c,a+=c,a+=parseFloat(n[s+l]);for(const i of h)i.el&&(t(i.pos)t(r-a)&&(i.el.style[e]=`${t(p+f,1e3)}px`),t(i.pos+i.gap)>=t(r-a)&&t(i.pos)>t(g+a)&&t(g)1&&(m=c[b[0]],v=c[b[1]]),m&&v){let i=0;for(const n of h)n.el?this.inTransition.has(n.index)&&m.slides.indexOf(n)<0&&(n.el.style[e]=`${t(i+(m.pos-v.pos),1e3)}px`):i+=n.dim+n.gap}}createSlideEl(t){const{track:e,slides:i}=this;if(!e||!t)return;if(t.el&&t.el.parentNode)return;const n=t.el||document.createElement(\"div\");P(n,this.cn(J)),P(n,t.class),P(n,t.customClass);const s=t.html;s&&(s instanceof HTMLElement?n.appendChild(s):n.innerHTML=t.html+\"\");const o=[];i.forEach(((t,e)=>{t.el&&o.push(e)}));const a=t.index;let r=null;if(o.length){r=i[o.reduce(((t,e)=>Math.abs(e-a)1)return!1;let h=t>a?1:-1;this.isInfinite&&(0===a&&t===r.length-1&&(h=-1),a===r.length-1&&0===t&&(h=1));const d=r[c].pos*(this.isRTL?1:-1);if(a===c&&Math.abs(d-l.target[this.axis])<1)return!1;this.clearTransitions();const u=l.isResting;P(this.container,this.cn(\"inTransition\"));const p=(null===(s=r[a])||void 0===s?void 0:s.slides[0])||null,f=(null===(o=r[c])||void 0===o?void 0:o.slides[0])||null;this.inTransition.add(f.index),this.createSlideEl(f);let g=p.el,m=f.el;u||e===J||(e=\"fadeFast\",g=null);const v=this.isRTL?\"next\":\"prev\",b=this.isRTL?\"prev\":\"next\";return g&&(this.inTransition.add(p.index),p.transition=e,g.addEventListener(G,this.onAnimationEnd),g.classList.add(`f-${e}Out`,`to-${h>0?b:v}`)),m&&(f.transition=e,m.addEventListener(G,this.onAnimationEnd),m.classList.add(`f-${e}In`,`from-${h>0?v:b}`)),l.current[this.axis]=d,l.target[this.axis]=d,l.requestTick(),this.onChange(c),!0}manageSlideVisiblity(){const t=new Set,e=new Set,i=this.getVisibleSlides(parseFloat(this.option(\"preload\",0)+\"\")||0);for(const n of this.slides)i.has(n)?t.add(n):e.add(n);for(const e of this.inTransition)t.add(this.slides[e]);for(const e of t)this.createSlideEl(e),this.lazyLoadSlide(e);for(const i of e)t.has(i)||this.removeSlideEl(i);this.markSelectedSlides(),this.repositionSlides()}markSelectedSlides(){if(!this.pages[this.page]||!this.pages[this.page].slides)return;const t=\"aria-hidden\";let e=this.cn(K);if(e)for(const i of this.slides){const n=i.el;n&&(n.dataset.index=`${i.index}`,n.classList.contains(\"f-thumbs__slide\")?this.getVisibleSlides(0).has(i)?n.removeAttribute(t):n.setAttribute(t,\"true\"):this.pages[this.page].slides.includes(i)?(n.classList.contains(e)||(P(n,e),this.emit(\"selectSlide\",i)),n.removeAttribute(t)):(n.classList.contains(e)&&(S(n,e),this.emit(\"unselectSlide\",i)),n.setAttribute(t,\"true\")))}}flipInfiniteTrack(){const{axis:t,isHorizontal:e,isInfinite:i,isRTL:n,viewportDim:s,contentDim:o}=this,a=this.panzoom;if(!a||!i)return;let r=a.current[t],l=a.target[t]-r,c=0,h=.5*s;n&&e?(r<-h&&(c=-1,r+=o),r>o-h&&(c=1,r-=o)):(r>h&&(c=1,r-=o),r<-o+h&&(c=-1,r+=o)),c&&(a.current[t]=r,a.target[t]=r+l)}lazyLoadImg(t,e){const i=this,s=\"f-fadeIn\",o=\"is-preloading\";let a=!1,r=null;const l=()=>{a||(a=!0,r&&(r.remove(),r=null),S(e,o),e.complete&&(P(e,s),setTimeout((()=>{S(e,s)}),350)),this.option(\"adaptiveHeight\")&&t.el&&this.pages[this.page].slides.indexOf(t)>-1&&(i.updateMetrics(),i.setViewportHeight()),this.emit(\"load\",t))};P(e,o),e.src=e.dataset.lazySrcset||e.dataset.lazySrc||\"\",delete e.dataset.lazySrc,delete e.dataset.lazySrcset,e.addEventListener(\"error\",(()=>{l()})),e.addEventListener(\"load\",(()=>{l()})),setTimeout((()=>{const i=e.parentNode;i&&t.el&&(e.complete?l():a||(r=n(x),i.insertBefore(r,e)))}),300)}lazyLoadSlide(t){const e=t&&t.el;if(!e)return;const i=new Set;let n=Array.from(e.querySelectorAll(\"[data-lazy-src],[data-lazy-srcset]\"));e.dataset.lazySrc&&n.push(e),n.map((t=>{t instanceof HTMLImageElement?i.add(t):t instanceof HTMLElement&&t.dataset.lazySrc&&(t.style.backgroundImage=`url('${t.dataset.lazySrc}')`,delete t.dataset.lazySrc)}));for(const e of i)this.lazyLoadImg(t,e)}onAnimationEnd(t){var e;const i=t.target,n=i?parseInt(i.dataset.index||\"\",10)||0:-1,s=this.slides[n],o=t.animationName;if(!i||!s||!o)return;const a=!!this.inTransition.has(n)&&s.transition;a&&o.substring(0,a.length+2)===`f-${a}`&&this.inTransition.delete(n),this.inTransition.size||this.clearTransitions(),n===this.page&&(null===(e=this.panzoom)||void 0===e?void 0:e.isResting)&&this.emit(\"settle\")}onDecel(t,e=0,i=0,n=0,s=0){if(this.option(\"dragFree\"))return void this.setPageFromPosition();const{isRTL:o,isHorizontal:a,axis:r,pages:l}=this,c=l.length,h=Math.abs(Math.atan2(i,e)/(Math.PI/180));let d=0;if(d=h>45&&h<135?a?0:i:a?e:0,!c)return;let u=this.page,p=o&&a?1:-1;const f=t.current[r]*p;let{pageIndex:g}=this.getPageFromPosition(f);Math.abs(d)>5?(l[u].dim=t&&(this.page+=d.length),this.updateMetrics(),a){const e=(null===(s=this.pages[this.page])||void 0===s?void 0:s.pos)||0,i=(null===(o=this.pages[this.page])||void 0===o?void 0:o.dim)||0,n=this.pages.length||1,h=this.isRTL?l-i:i-l,d=this.isRTL?r-e:e-r;c&&1===n?(t<=this.page&&(a.current[this.axis]-=h,a.target[this.axis]-=h),a.panTo({[this.isHorizontal?\"x\":\"y\"]:-1*e})):d&&t<=this.page&&(a.target[this.axis]-=d,a.current[this.axis]-=d,a.requestTick())}for(const t of d)this.emit(\"initSlide\",t,t.index)}prependSlide(t){this.addSlide(0,t)}appendSlide(t){this.addSlide(this.slides.length,t)}removeSlide(t){const e=this.slides.length;t=(t%e+e)%e;const i=this.slides[t];if(i){this.removeSlideEl(i,!0),this.slides.splice(t,1);for(let t=0;tthis.page?-1:1;let l=-1*o.current.e,c=t((l-r.pos)/(1*r.dim),1e3),h=c,d=c;this.isInfinite&&!0!==n&&(h=t((l-r.pos+a)/(1*r.dim),1e3),d=t((l-r.pos-a)/(1*r.dim),1e3));let u=[c,h,d].reduce((function(t,e){return Math.abs(e)1?1:u<-1?-1:u}setViewportHeight(){const{page:t,pages:e,viewport:i,isHorizontal:n}=this;if(!i||!e[t])return;let s=0;n&&this.track&&(this.track.style.height=\"auto\",e[t].slides.forEach((t=>{t.el&&(s=Math.max(s,t.el.offsetHeight))}))),i.style.height=s?`${s}px`:\"\"}getPageForSlide(t){for(const e of this.pages)for(const i of e.slides)if(i.index===t)return e.index;return-1}getVisibleSlides(t=0){var e;const i=new Set;let{panzoom:n,contentDim:s,viewportDim:o,pages:a,page:r}=this;if(o){s=s+(null===(e=this.slides[this.slides.length-1])||void 0===e?void 0:e.gap)||0;let l=0;l=n&&n.state!==m.Init&&n.state!==m.Destroy?-1*n.current[this.axis]:a[r]&&a[r].pos||0,this.isInfinite&&(l-=Math.floor(l/s)*s),this.isRTL&&this.isHorizontal&&(l*=-1);const c=l-o*t,h=l+o*(t+1),d=this.isInfinite?[-1,0,1]:[0];for(const t of this.slides)for(const e of d){const n=t.pos+e*s,o=n+t.dim+t.gap;nc&&i.add(t)}}return i}getPageFromPosition(t){const{viewportDim:e,contentDim:i,slides:n,pages:s,panzoom:o}=this,a=s.length,r=n.length,l=n[0],c=n[r-1],h=this.option(\"center\");let d=0,u=0,p=0,f=void 0===t?-1*((null==o?void 0:o.target[this.axis])||0):t;h&&(f+=.5*e),this.isInfinite?(fc.pos+c.dim+.5*c.gap&&(f-=i,p=1)):f=Math.max(l.pos||0,Math.min(f,c.pos));let g=c,m=n.find((t=>{const e=t.pos-.5*g.gap,i=t.pos+t.dim+.5*t.gap;return g=t,f>=e&&f{this.removeSlideEl(t)})),this.detachPlugins(),e&&(e.removeEventListener(\"scroll\",this.onScroll),e.offsetParent&&i&&i.offsetParent&&e.replaceWith(...i.childNodes));for(const[e,i]of Object.entries(o))\"container\"!==e&&i&&t.classList.remove(i);this.track=null,this.viewport=null,this.page=0,this.slides=[];const a=this.events.get(\"ready\");this.events=new Map,a&&this.events.set(\"ready\",a)}}Object.defineProperty(Q,\"Panzoom\",{enumerable:!0,configurable:!0,writable:!0,value:I}),Object.defineProperty(Q,\"defaults\",{enumerable:!0,configurable:!0,writable:!0,value:j}),Object.defineProperty(Q,\"Plugins\",{enumerable:!0,configurable:!0,writable:!0,value:U});const tt=function(t){if(!E(t))return 0;const e=window.scrollY,i=window.innerHeight,n=e+i,s=t.getBoundingClientRect(),o=s.y+e,a=s.height,r=o+a;if(e>r||nr)return 100;if(on)return 100;let l=a;on&&(l-=r-n);const c=l/i*100;return Math.round(c)},et=!(\"undefined\"==typeof window||!window.document||!window.document.createElement);let it;const nt=[\"a[href]\",\"area[href]\",'input:not([disabled]):not([type=\"hidden\"]):not([aria-hidden])',\"select:not([disabled]):not([aria-hidden])\",\"textarea:not([disabled]):not([aria-hidden])\",\"button:not([disabled]):not([aria-hidden]):not(.fancybox-focus-guard)\",\"iframe\",\"object\",\"embed\",\"video\",\"audio\",\"[contenteditable]\",'[tabindex]:not([tabindex^=\"-\"]):not([disabled]):not([aria-hidden])'].join(\",\"),st=t=>{if(t&&et){void 0===it&&document.createElement(\"div\").focus({get preventScroll(){return it=!0,!1}});try{if(it)t.focus({preventScroll:!0});else{const e=window.scrollY||document.body.scrollTop,i=window.scrollX||document.body.scrollLeft;t.focus(),document.body.scrollTo({top:e,left:i,behavior:\"auto\"})}}catch(t){}}},ot=()=>{const t=document;let e,i=\"\",n=\"\",s=\"\";return t.fullscreenEnabled?(i=\"requestFullscreen\",n=\"exitFullscreen\",s=\"fullscreenElement\"):t.webkitFullscreenEnabled&&(i=\"webkitRequestFullscreen\",n=\"webkitExitFullscreen\",s=\"webkitFullscreenElement\"),i&&(e={request:function(e=t.documentElement){return\"webkitRequestFullscreen\"===i?e[i](Element.ALLOW_KEYBOARD_INPUT):e[i]()},exit:function(){return t[s]&&t[n]()},isFullscreen:function(){return t[s]}}),e},at={animated:!0,autoFocus:!0,backdropClick:\"close\",Carousel:{classes:{container:\"fancybox__carousel\",viewport:\"fancybox__viewport\",track:\"fancybox__track\",slide:\"fancybox__slide\"}},closeButton:\"auto\",closeExisting:!1,commonCaption:!1,compact:()=>window.matchMedia(\"(max-width: 578px), (max-height: 578px)\").matches,contentClick:\"toggleZoom\",contentDblClick:!1,defaultType:\"image\",defaultDisplay:\"flex\",dragToClose:!0,Fullscreen:{autoStart:!1},groupAll:!1,groupAttr:\"data-fancybox\",hideClass:\"f-fadeOut\",hideScrollbar:!0,idle:3500,keyboard:{Escape:\"close\",Delete:\"close\",Backspace:\"close\",PageUp:\"next\",PageDown:\"prev\",ArrowUp:\"prev\",ArrowDown:\"next\",ArrowRight:\"next\",ArrowLeft:\"prev\"},l10n:Object.assign(Object.assign({},b),{CLOSE:\"Close\",NEXT:\"Next\",PREV:\"Previous\",MODAL:\"You can close this modal content with the ESC key\",ERROR:\"Something Went Wrong, Please Try Again Later\",IMAGE_ERROR:\"Image Not Found\",ELEMENT_NOT_FOUND:\"HTML Element Not Found\",AJAX_NOT_FOUND:\"Error Loading AJAX : Not Found\",AJAX_FORBIDDEN:\"Error Loading AJAX : Forbidden\",IFRAME_ERROR:\"Error Loading Page\",TOGGLE_ZOOM:\"Toggle zoom level\",TOGGLE_THUMBS:\"Toggle thumbnails\",TOGGLE_SLIDESHOW:\"Toggle slideshow\",TOGGLE_FULLSCREEN:\"Toggle full-screen mode\",DOWNLOAD:\"Download\"}),parentEl:null,placeFocusBack:!0,showClass:\"f-zoomInUp\",startIndex:0,tpl:{closeButton:'',main:'
\\n
\\n
\\n
\\n
'},trapFocus:!0,wheel:\"zoom\"};var rt,lt;!function(t){t[t.Init=0]=\"Init\",t[t.Ready=1]=\"Ready\",t[t.Closing=2]=\"Closing\",t[t.CustomClosing=3]=\"CustomClosing\",t[t.Destroy=4]=\"Destroy\"}(rt||(rt={})),function(t){t[t.Loading=0]=\"Loading\",t[t.Opening=1]=\"Opening\",t[t.Ready=2]=\"Ready\",t[t.Closing=3]=\"Closing\"}(lt||(lt={}));let ct=\"\",ht=!1,dt=!1,ut=null;const pt=()=>{let t=\"\",e=\"\";const i=Oe.getInstance();if(i){const n=i.carousel,s=i.getSlide();if(n&&s){let o=s.slug||void 0,a=s.triggerEl||void 0;e=o||(i.option(\"slug\")||\"\"),!e&&a&&a.dataset&&(e=a.dataset.fancybox||\"\"),e&&\"true\"!==e&&(t=\"#\"+e+(!o&&n.slides.length>1?\"-\"+(s.index+1):\"\"))}}return{hash:t,slug:e,index:1}},ft=()=>{const t=new URL(document.URL).hash,e=t.slice(1).split(\"-\"),i=e[e.length-1],n=i&&/^\\+?\\d+$/.test(i)&&parseInt(e.pop()||\"1\",10)||1;return{hash:t,slug:e.join(\"-\"),index:n}},gt=()=>{const{slug:t,index:e}=ft();if(!t)return;let i=document.querySelector(`[data-slug=\"${t}\"]`);if(i&&i.dispatchEvent(new CustomEvent(\"click\",{bubbles:!0,cancelable:!0})),Oe.getInstance())return;const n=document.querySelectorAll(`[data-fancybox=\"${t}\"]`);n.length&&(i=n[e-1],i&&i.dispatchEvent(new CustomEvent(\"click\",{bubbles:!0,cancelable:!0})))},mt=()=>{if(!1===Oe.defaults.Hash)return;const t=Oe.getInstance();if(!1===(null==t?void 0:t.options.Hash))return;const{slug:e,index:i}=ft(),{slug:n}=pt();t&&(e===n?t.jumpTo(i-1):(ht=!0,t.close())),gt()},vt=()=>{ut&&clearTimeout(ut),queueMicrotask((()=>{mt()}))},bt=()=>{window.addEventListener(\"hashchange\",vt,!1),setTimeout((()=>{mt()}),500)};et&&(/complete|interactive|loaded/.test(document.readyState)?bt():document.addEventListener(\"DOMContentLoaded\",bt));const yt=\"is-zooming-in\";class wt extends _{onCreateSlide(t,e,i){const n=this.instance.optionFor(i,\"src\")||\"\";i.el&&\"image\"===i.type&&\"string\"==typeof n&&this.setImage(i,n)}onRemoveSlide(t,e,i){i.panzoom&&i.panzoom.destroy(),i.panzoom=void 0,i.imageEl=void 0}onChange(t,e,i,n){S(this.instance.container,yt);for(const t of e.slides){const e=t.panzoom;e&&t.index!==i&&e.reset(.35)}}onClose(){var t;const e=this.instance,i=e.container,n=e.getSlide();if(!i||!i.parentElement||!n)return;const{el:s,contentEl:o,panzoom:a,thumbElSrc:r}=n;if(!s||!r||!o||!a||a.isContentLoading||a.state===m.Init||a.state===m.Destroy)return;a.updateMetrics();let l=this.getZoomInfo(n);if(!l)return;this.instance.state=rt.CustomClosing,i.classList.remove(yt),i.classList.add(\"is-zooming-out\"),o.style.backgroundImage=`url('${r}')`;const c=i.getBoundingClientRect();1===((null===(t=window.visualViewport)||void 0===t?void 0:t.scale)||1)&&Object.assign(i.style,{position:\"absolute\",top:`${i.offsetTop+window.scrollY}px`,left:`${i.offsetLeft+window.scrollX}px`,bottom:\"auto\",right:\"auto\",width:`${c.width}px`,height:`${c.height}px`,overflow:\"hidden\"});const{x:h,y:d,scale:u,opacity:p}=l;if(p){const t=((t,e,i,n)=>{const s=e-t,o=n-i;return e=>i+((e-t)/s*o||0)})(a.scale,u,1,0);a.on(\"afterTransform\",(()=>{o.style.opacity=t(a.scale)+\"\"}))}a.on(\"endAnimation\",(()=>{e.destroy()})),a.target.a=u,a.target.b=0,a.target.c=0,a.target.d=u,a.panTo({x:h,y:d,scale:u,friction:p?.2:.33,ignoreBounds:!0}),a.isResting&&e.destroy()}setImage(t,e){const i=this.instance;t.src=e,this.process(t,e).then((e=>{const{contentEl:n,imageEl:s,thumbElSrc:o,el:a}=t;if(i.isClosing()||!n||!s)return;n.offsetHeight;const r=!!i.isOpeningSlide(t)&&this.getZoomInfo(t);if(this.option(\"protected\")&&a){a.addEventListener(\"contextmenu\",(t=>{t.preventDefault()}));const t=document.createElement(\"div\");P(t,\"fancybox-protected\"),n.appendChild(t)}if(o&&r){const s=e.contentRect,a=Math.max(s.fullWidth,s.fullHeight);let c=null;!r.opacity&&a>1200&&(c=document.createElement(\"img\"),P(c,\"fancybox-ghost\"),c.src=o,n.appendChild(c));const h=()=>{c&&(P(c,\"f-fadeFastOut\"),setTimeout((()=>{c&&(c.remove(),c=null)}),200))};(l=o,new Promise(((t,e)=>{const i=new Image;i.onload=t,i.onerror=e,i.src=l}))).then((()=>{i.hideLoading(t),t.state=lt.Opening,this.instance.emit(\"reveal\",t),this.zoomIn(t).then((()=>{h(),this.instance.done(t)}),(()=>{})),c&&setTimeout((()=>{h()}),a>2500?800:200)}),(()=>{i.hideLoading(t),i.revealContent(t)}))}else{const n=this.optionFor(t,\"initialSize\"),s=this.optionFor(t,\"zoom\"),o={event:i.prevMouseMoveEvent||i.options.event,friction:s?.12:0};let a=i.optionFor(t,\"showClass\")||void 0,r=!0;i.isOpeningSlide(t)&&(\"full\"===n?e.zoomToFull(o):\"cover\"===n?e.zoomToCover(o):\"max\"===n?e.zoomToMax(o):r=!1,e.stop(\"current\")),r&&a&&(a=e.isDragging?\"f-fadeIn\":\"\"),i.hideLoading(t),i.revealContent(t,a)}var l}),(()=>{i.setError(t,\"{{IMAGE_ERROR}}\")}))}process(t,e){return new Promise(((i,s)=>{var o;const a=this.instance,r=t.el;a.clearContent(t),a.showLoading(t);let l=this.optionFor(t,\"content\");if(\"string\"==typeof l&&(l=n(l)),!l||!E(l)){if(l=document.createElement(\"img\"),l instanceof HTMLImageElement){let i=\"\",n=t.caption;i=\"string\"==typeof n&&n?n.replace(/<[^>]+>/gi,\"\").substring(0,1e3):`Image ${t.index+1} of ${(null===(o=a.carousel)||void 0===o?void 0:o.pages.length)||1}`,l.src=e||\"\",l.alt=i,l.draggable=!1,t.srcset&&l.setAttribute(\"srcset\",t.srcset),this.instance.isOpeningSlide(t)&&(l.fetchPriority=\"high\")}t.sizes&&l.setAttribute(\"sizes\",t.sizes)}P(l,\"fancybox-image\"),t.imageEl=l,a.setContent(t,l,!1);t.panzoom=new I(r,u({transformParent:!0},this.option(\"Panzoom\")||{},{content:l,width:(e,i)=>a.optionFor(t,\"width\",\"auto\",i)||\"auto\",height:(e,i)=>a.optionFor(t,\"height\",\"auto\",i)||\"auto\",wheel:()=>{const t=a.option(\"wheel\");return(\"zoom\"===t||\"pan\"==t)&&t},click:(e,i)=>{var n,s;if(a.isCompact||a.isClosing())return!1;if(t.index!==(null===(n=a.getSlide())||void 0===n?void 0:n.index))return!1;if(i){const t=i.composedPath()[0];if([\"A\",\"BUTTON\",\"TEXTAREA\",\"OPTION\",\"INPUT\",\"SELECT\",\"VIDEO\"].includes(t.nodeName))return!1}let o=!i||i.target&&(null===(s=t.contentEl)||void 0===s?void 0:s.contains(i.target));return a.option(o?\"contentClick\":\"backdropClick\")||!1},dblClick:()=>a.isCompact?\"toggleZoom\":a.option(\"contentDblClick\")||!1,spinner:!1,panOnlyZoomed:!0,wheelLimit:1/0,on:{ready:t=>{i(t)},error:()=>{s()},destroy:()=>{s()}}}))}))}zoomIn(t){return new Promise(((e,i)=>{const n=this.instance,s=n.container,{panzoom:o,contentEl:a,el:r}=t;o&&o.updateMetrics();const l=this.getZoomInfo(t);if(!(l&&r&&a&&o&&s))return void i();const{x:c,y:h,scale:d,opacity:u}=l,p=()=>{t.state!==lt.Closing&&(u&&(a.style.opacity=Math.max(Math.min(1,1-(1-o.scale)/(1-d)),0)+\"\"),o.scale>=1&&o.scale>o.targetScale-.1&&e(o))},f=t=>{(t.scale<.99||t.scale>1.01)&&!t.isDragging||(S(s,yt),a.style.opacity=\"\",t.off(\"endAnimation\",f),t.off(\"touchStart\",f),t.off(\"afterTransform\",p),e(t))};o.on(\"endAnimation\",f),o.on(\"touchStart\",f),o.on(\"afterTransform\",p),o.on([\"error\",\"destroy\"],(()=>{i()})),o.panTo({x:c,y:h,scale:d,friction:0,ignoreBounds:!0}),o.stop(\"current\");const g={event:\"mousemove\"===o.panMode?n.prevMouseMoveEvent||n.options.event:void 0},m=this.optionFor(t,\"initialSize\");P(s,yt),n.hideLoading(t),\"full\"===m?o.zoomToFull(g):\"cover\"===m?o.zoomToCover(g):\"max\"===m?o.zoomToMax(g):o.reset(.172)}))}getZoomInfo(t){const{el:e,imageEl:i,thumbEl:n,panzoom:s}=t,o=this.instance,a=o.container;if(!e||!i||!n||!s||tt(n)<3||!this.optionFor(t,\"zoom\")||!a||o.state===rt.Destroy)return!1;if(\"0\"===getComputedStyle(a).getPropertyValue(\"--f-images-zoom\"))return!1;const r=window.visualViewport||null;if(1!==(r?r.scale:1))return!1;let{top:l,left:c,width:h,height:d}=n.getBoundingClientRect(),{top:u,left:p,fitWidth:f,fitHeight:g}=s.contentRect;if(!(h&&d&&f&&g))return!1;const m=s.container.getBoundingClientRect();p+=m.left,u+=m.top;const v=-1*(p+.5*f-(c+.5*h)),b=-1*(u+.5*g-(l+.5*d)),y=h/f;let w=this.option(\"zoomOpacity\")||!1;return\"auto\"===w&&(w=Math.abs(h/d-f/g)>.1),{x:v,y:b,scale:y,opacity:w}}attach(){const t=this,e=t.instance;e.on(\"Carousel.change\",t.onChange),e.on(\"Carousel.createSlide\",t.onCreateSlide),e.on(\"Carousel.removeSlide\",t.onRemoveSlide),e.on(\"close\",t.onClose)}detach(){const t=this,e=t.instance;e.off(\"Carousel.change\",t.onChange),e.off(\"Carousel.createSlide\",t.onCreateSlide),e.off(\"Carousel.removeSlide\",t.onRemoveSlide),e.off(\"close\",t.onClose)}}Object.defineProperty(wt,\"defaults\",{enumerable:!0,configurable:!0,writable:!0,value:{initialSize:\"fit\",Panzoom:{maxScale:1},protected:!1,zoom:!0,zoomOpacity:\"auto\"}}),\"function\"==typeof SuppressedError&&SuppressedError;const xt=\"html\",Et=\"image\",St=\"map\",Pt=\"youtube\",Ct=\"vimeo\",Tt=\"html5video\",Mt=(t,e={})=>{const i=new URL(t),n=new URLSearchParams(i.search),s=new URLSearchParams;for(const[t,i]of[...n,...Object.entries(e)]){let e=i+\"\";if(\"t\"===t){let t=e.match(/((\\d*)m)?(\\d*)s?/);t&&s.set(\"start\",60*parseInt(t[2]||\"0\")+parseInt(t[3]||\"0\")+\"\")}else s.set(t,e)}let o=s+\"\",a=t.match(/#t=((.*)?\\d+s)/);return a&&(o+=`#t=${a[1]}`),o},Ot={ajax:null,autoSize:!0,iframeAttr:{allow:\"autoplay; fullscreen\",scrolling:\"auto\"},preload:!0,videoAutoplay:!0,videoRatio:16/9,videoTpl:'',videoFormat:\"\",vimeo:{byline:1,color:\"00adef\",controls:1,dnt:1,muted:0},youtube:{controls:1,enablejsapi:1,nocookie:1,rel:0,fs:1}},At=[\"image\",\"html\",\"ajax\",\"inline\",\"clone\",\"iframe\",\"map\",\"pdf\",\"html5video\",\"youtube\",\"vimeo\"];class Lt extends _{onBeforeInitSlide(t,e,i){this.processType(i)}onCreateSlide(t,e,i){this.setContent(i)}onClearContent(t,e){e.xhr&&(e.xhr.abort(),e.xhr=null);const i=e.iframeEl;i&&(i.onload=i.onerror=null,i.src=\"//about:blank\",e.iframeEl=null);const n=e.contentEl,s=e.placeholderEl;if(\"inline\"===e.type&&n&&s)n.classList.remove(\"fancybox__content\"),\"none\"!==getComputedStyle(n).getPropertyValue(\"display\")&&(n.style.display=\"none\"),setTimeout((()=>{s&&(n&&s.parentNode&&s.parentNode.insertBefore(n,s),s.remove())}),0),e.contentEl=void 0,e.placeholderEl=void 0;else for(;e.el&&e.el.firstChild;)e.el.removeChild(e.el.firstChild)}onSelectSlide(t,e,i){i.state===lt.Ready&&this.playVideo()}onUnselectSlide(t,e,i){var n,s;if(i.type===Tt){try{null===(s=null===(n=i.el)||void 0===n?void 0:n.querySelector(\"video\"))||void 0===s||s.pause()}catch(t){}return}let o;i.type===Ct?o={method:\"pause\",value:\"true\"}:i.type===Pt&&(o={event:\"command\",func:\"pauseVideo\"}),o&&i.iframeEl&&i.iframeEl.contentWindow&&i.iframeEl.contentWindow.postMessage(JSON.stringify(o),\"*\"),i.poller&&clearTimeout(i.poller)}onDone(t,e){t.isCurrentSlide(e)&&!t.isClosing()&&this.playVideo()}onRefresh(t,e){e.slides.forEach((t=>{t.el&&(this.resizeIframe(t),this.setAspectRatio(t))}))}onMessage(t){try{let e=JSON.parse(t.data);if(\"https://player.vimeo.com\"===t.origin){if(\"ready\"===e.event)for(let e of Array.from(document.getElementsByClassName(\"fancybox__iframe\")))e instanceof HTMLIFrameElement&&e.contentWindow===t.source&&(e.dataset.ready=\"true\")}else if(t.origin.match(/^https:\\/\\/(www.)?youtube(-nocookie)?.com$/)&&\"onReady\"===e.event){const t=document.getElementById(e.id);t&&(t.dataset.ready=\"true\")}}catch(t){}}loadAjaxContent(t){const e=this.instance.optionFor(t,\"src\")||\"\";this.instance.showLoading(t);const i=this.instance,n=new XMLHttpRequest;i.showLoading(t),n.onreadystatechange=function(){n.readyState===XMLHttpRequest.DONE&&i.state===rt.Ready&&(i.hideLoading(t),200===n.status?i.setContent(t,n.responseText):i.setError(t,404===n.status?\"{{AJAX_NOT_FOUND}}\":\"{{AJAX_FORBIDDEN}}\"))};const s=t.ajax||null;n.open(s?\"POST\":\"GET\",e+\"\"),n.setRequestHeader(\"Content-Type\",\"application/x-www-form-urlencoded\"),n.setRequestHeader(\"X-Requested-With\",\"XMLHttpRequest\"),n.send(s),t.xhr=n}setInlineContent(t){let e=null;if(E(t.src))e=t.src;else if(\"string\"==typeof t.src){const i=t.src.split(\"#\",2).pop();e=i?document.getElementById(i):null}if(e){if(\"clone\"===t.type||e.closest(\".fancybox__slide\")){e=e.cloneNode(!0);const i=e.dataset.animationName;i&&(e.classList.remove(i),delete e.dataset.animationName);let n=e.getAttribute(\"id\");n=n?`${n}--clone`:`clone-${this.instance.id}-${t.index}`,e.setAttribute(\"id\",n)}else if(e.parentNode){const i=document.createElement(\"div\");i.classList.add(\"fancybox-placeholder\"),e.parentNode.insertBefore(i,e),t.placeholderEl=i}this.instance.setContent(t,e)}else this.instance.setError(t,\"{{ELEMENT_NOT_FOUND}}\")}setIframeContent(t){const{src:e,el:i}=t;if(!e||\"string\"!=typeof e||!i)return;i.classList.add(\"is-loading\");const n=this.instance,s=document.createElement(\"iframe\");s.className=\"fancybox__iframe\",s.setAttribute(\"id\",`fancybox__iframe_${n.id}_${t.index}`);for(const[e,i]of Object.entries(this.optionFor(t,\"iframeAttr\")||{}))s.setAttribute(e,i);s.onerror=()=>{n.setError(t,\"{{IFRAME_ERROR}}\")},t.iframeEl=s;const o=this.optionFor(t,\"preload\");if(\"iframe\"!==t.type||!1===o)return s.setAttribute(\"src\",t.src+\"\"),n.setContent(t,s,!1),this.resizeIframe(t),void n.revealContent(t);n.showLoading(t),s.onload=()=>{if(!s.src.length)return;const e=\"true\"!==s.dataset.ready;s.dataset.ready=\"true\",this.resizeIframe(t),e?n.revealContent(t):n.hideLoading(t)},s.setAttribute(\"src\",e),n.setContent(t,s,!1)}resizeIframe(t){const{type:e,iframeEl:i}=t;if(e===Pt||e===Ct)return;const n=null==i?void 0:i.parentElement;if(!i||!n)return;let s=t.autoSize;void 0===s&&(s=this.optionFor(t,\"autoSize\"));let o=t.width||0,a=t.height||0;o&&a&&(s=!1);const r=n&&n.style;if(!1!==t.preload&&!1!==s&&r)try{const t=window.getComputedStyle(n),e=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),s=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),l=i.contentWindow;if(l){const t=l.document,i=t.getElementsByTagName(xt)[0],n=t.body;r.width=\"\",n.style.overflow=\"hidden\",o=o||i.scrollWidth+e,r.width=`${o}px`,n.style.overflow=\"\",r.flex=\"0 0 auto\",r.height=`${n.scrollHeight}px`,a=i.scrollHeight+s}}catch(t){}if(o||a){const t={flex:\"0 1 auto\",width:\"\",height:\"\"};o&&\"auto\"!==o&&(t.width=`${o}px`),a&&\"auto\"!==a&&(t.height=`${a}px`),Object.assign(r,t)}}playVideo(){const t=this.instance.getSlide();if(!t)return;const{el:e}=t;if(!e||!e.offsetParent)return;if(!this.optionFor(t,\"videoAutoplay\"))return;if(t.type===Tt)try{const t=e.querySelector(\"video\");if(t){const e=t.play();void 0!==e&&e.then((()=>{})).catch((e=>{t.muted=!0,t.play()}))}}catch(t){}if(t.type!==Pt&&t.type!==Ct)return;const i=()=>{if(t.iframeEl&&t.iframeEl.contentWindow){let e;if(\"true\"===t.iframeEl.dataset.ready)return e=t.type===Pt?{event:\"command\",func:\"playVideo\"}:{method:\"play\",value:\"true\"},e&&t.iframeEl.contentWindow.postMessage(JSON.stringify(e),\"*\"),void(t.poller=void 0);t.type===Pt&&(e={event:\"listening\",id:t.iframeEl.getAttribute(\"id\")},t.iframeEl.contentWindow.postMessage(JSON.stringify(e),\"*\"))}t.poller=setTimeout(i,250)};i()}processType(t){if(t.html)return t.type=xt,t.src=t.html,void(t.html=\"\");const e=this.instance.optionFor(t,\"src\",\"\");if(!e||\"string\"!=typeof e)return;let i=t.type,n=null;if(n=e.match(/(youtube\\.com|youtu\\.be|youtube\\-nocookie\\.com)\\/(?:watch\\?(?:.*&)?v=|v\\/|u\\/|shorts\\/|embed\\/?)?(videoseries\\?list=(?:.*)|[\\w-]{11}|\\?listType=(?:.*)&list=(?:.*))(?:.*)/i)){const s=this.optionFor(t,Pt),{nocookie:o}=s,a=function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&\"function\"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(t);s0?\"svembed\":\"embed\"}`,i=St):(n=e.match(/(?:maps\\.)?google\\.([a-z]{2,3}(?:\\.[a-z]{2})?)\\/(?:maps\\/search\\/)(.*)/i))&&(t.src=`https://maps.google.${n[1]}/maps?q=${n[2].replace(\"query=\",\"q=\").replace(\"api=1\",\"\")}&output=embed`,i=St),i=i||this.instance.option(\"defaultType\"),t.type=i,i===Et&&(t.thumbSrc=t.thumbSrc||t.src)}setContent(t){const e=this.instance.optionFor(t,\"src\")||\"\";if(t&&t.type&&e){switch(t.type){case xt:this.instance.setContent(t,e);break;case Tt:const i=this.option(\"videoTpl\");i&&this.instance.setContent(t,i.replace(/\\{\\{src\\}\\}/gi,e+\"\").replace(/\\{\\{format\\}\\}/gi,this.optionFor(t,\"videoFormat\")||\"\").replace(/\\{\\{poster\\}\\}/gi,t.poster||t.thumbSrc||\"\"));break;case\"inline\":case\"clone\":this.setInlineContent(t);break;case\"ajax\":this.loadAjaxContent(t);break;case\"pdf\":case St:case Pt:case Ct:t.preload=!1;case\"iframe\":this.setIframeContent(t)}this.setAspectRatio(t)}}setAspectRatio(t){const e=t.contentEl;if(!(t.el&&e&&t.type&&[Pt,Ct,Tt].includes(t.type)))return;let i,n=t.width||\"auto\",s=t.height||\"auto\";if(\"auto\"===n||\"auto\"===s){i=this.optionFor(t,\"videoRatio\");const e=(i+\"\").match(/(\\d+)\\s*\\/\\s?(\\d+)/);i=e&&e.length>2?parseFloat(e[1])/parseFloat(e[2]):parseFloat(i+\"\")}else n&&s&&(i=n/s);if(!i)return;e.style.aspectRatio=\"\",e.style.width=\"\",e.style.height=\"\",e.offsetHeight;const o=e.getBoundingClientRect(),a=o.width||1,r=o.height||1;e.style.aspectRatio=i+\"\",i{t.timer=null,t.inHover||t.onTimerEnd()}),i),t.emit(\"set\")}clear(){const t=this;t.timer&&(clearTimeout(t.timer),t.timer=null),t.removeProgressBar()}start(){const t=this;if(t.set(),t.state!==kt){if(t.option(\"pauseOnHover\")){const e=t.instance.container;e.addEventListener(\"mouseenter\",t.onMouseEnter,!1),e.addEventListener(\"mouseleave\",t.onMouseLeave,!1)}document.addEventListener(\"visibilitychange\",t.onVisibilityChange,!1),t.emit(\"start\")}}stop(){const t=this,e=t.state,i=t.instance.container;t.clear(),t.state=kt,i.removeEventListener(\"mouseenter\",t.onMouseEnter,!1),i.removeEventListener(\"mouseleave\",t.onMouseLeave,!1),document.removeEventListener(\"visibilitychange\",t.onVisibilityChange,!1),S(i,\"has-autoplay\"),e!==kt&&t.emit(\"stop\")}pause(){const t=this;t.state===zt&&(t.state=Rt,t.clear(),t.emit(Rt))}resume(){const t=this,e=t.instance;if(e.isInfinite||e.page!==e.pages.length-1)if(t.state!==zt){if(t.state===Rt&&!t.inHover){const e=new Event(\"resume\",{bubbles:!0,cancelable:!0});t.emit(\"resume\",e),e.defaultPrevented||t.set()}}else t.set();else t.stop()}toggle(){this.state===zt||this.state===Rt?this.stop():this.start()}attach(){const t=this,e=t.instance;e.on(\"ready\",t.onReady),e.on(\"Panzoom.startAnimation\",t.onChange),e.on(\"Panzoom.endAnimation\",t.onSettle),e.on(\"Panzoom.touchMove\",t.onChange)}detach(){const t=this,e=t.instance;e.off(\"ready\",t.onReady),e.off(\"Panzoom.startAnimation\",t.onChange),e.off(\"Panzoom.endAnimation\",t.onSettle),e.off(\"Panzoom.touchMove\",t.onChange),t.stop()}}Object.defineProperty(It,\"defaults\",{enumerable:!0,configurable:!0,writable:!0,value:{autoStart:!0,pauseOnHover:!0,progressParentEl:null,showProgress:!0,timeout:3e3}});class Dt extends _{constructor(){super(...arguments),Object.defineProperty(this,\"ref\",{enumerable:!0,configurable:!0,writable:!0,value:null})}onPrepare(t){const e=t.carousel;if(!e)return;const i=t.container;i&&(e.options.Autoplay=u({autoStart:!1},this.option(\"Autoplay\")||{},{pauseOnHover:!1,timeout:this.option(\"timeout\"),progressParentEl:()=>this.option(\"progressParentEl\")||null,on:{start:()=>{t.emit(\"startSlideshow\")},set:e=>{var n;i.classList.add(\"has-slideshow\"),(null===(n=t.getSlide())||void 0===n?void 0:n.state)!==lt.Ready&&e.pause()},stop:()=>{i.classList.remove(\"has-slideshow\"),t.isCompact||t.endIdle(),t.emit(\"endSlideshow\")},resume:(e,i)=>{var n,s,o;!i||!i.cancelable||(null===(n=t.getSlide())||void 0===n?void 0:n.state)===lt.Ready&&(null===(o=null===(s=t.carousel)||void 0===s?void 0:s.panzoom)||void 0===o?void 0:o.isResting)||i.preventDefault()}}}),e.attachPlugins({Autoplay:It}),this.ref=e.plugins.Autoplay)}onReady(t){const e=t.carousel,i=this.ref;i&&e&&this.option(\"playOnStart\")&&(e.isInfinite||e.page{t.isCurrentSlide(e)&&i.stop()})),t.isCurrentSlide(e)&&i.resume()}onKeydown(t,e){var i;const n=this.ref;n&&e===this.option(\"key\")&&\"BUTTON\"!==(null===(i=document.activeElement)||void 0===i?void 0:i.nodeName)&&n.toggle()}attach(){const t=this,e=t.instance;e.on(\"Carousel.init\",t.onPrepare),e.on(\"Carousel.ready\",t.onReady),e.on(\"done\",t.onDone),e.on(\"keydown\",t.onKeydown)}detach(){const t=this,e=t.instance;e.off(\"Carousel.init\",t.onPrepare),e.off(\"Carousel.ready\",t.onReady),e.off(\"done\",t.onDone),e.off(\"keydown\",t.onKeydown)}}Object.defineProperty(Dt,\"defaults\",{enumerable:!0,configurable:!0,writable:!0,value:{key:\" \",playOnStart:!1,progressParentEl:t=>{var e;return(null===(e=t.instance.container)||void 0===e?void 0:e.querySelector(\".fancybox__toolbar [data-fancybox-toggle-slideshow]\"))||t.instance.container},timeout:3e3}});const Ft={classes:{container:\"f-thumbs f-carousel__thumbs\",viewport:\"f-thumbs__viewport\",track:\"f-thumbs__track\",slide:\"f-thumbs__slide\",isResting:\"is-resting\",isSelected:\"is-selected\",isLoading:\"is-loading\",hasThumbs:\"has-thumbs\"},minCount:2,parentEl:null,thumbTpl:'',type:\"modern\"};var jt;!function(t){t[t.Init=0]=\"Init\",t[t.Ready=1]=\"Ready\",t[t.Hidden=2]=\"Hidden\"}(jt||(jt={}));const Bt=\"isResting\",Ht=\"thumbWidth\",Nt=\"thumbHeight\",_t=\"thumbClipWidth\";let $t=class extends _{constructor(){super(...arguments),Object.defineProperty(this,\"type\",{enumerable:!0,configurable:!0,writable:!0,value:\"modern\"}),Object.defineProperty(this,\"container\",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,\"track\",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,\"carousel\",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,\"thumbWidth\",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,\"thumbClipWidth\",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,\"thumbHeight\",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,\"thumbGap\",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,\"thumbExtraGap\",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,\"state\",{enumerable:!0,configurable:!0,writable:!0,value:jt.Init})}get isModern(){return\"modern\"===this.type}onInitSlide(t,e){const i=e.el?e.el.dataset:void 0;i&&(e.thumbSrc=i.thumbSrc||e.thumbSrc||\"\",e[_t]=parseFloat(i[_t]||\"\")||e[_t]||0,e[Nt]=parseFloat(i.thumbHeight||\"\")||e[Nt]||0),this.addSlide(e)}onInitSlides(){this.build()}onChange(){var t;if(!this.isModern)return;const e=this.container,i=this.instance,n=i.panzoom,s=this.carousel,a=s?s.panzoom:null,r=i.page;if(n&&s&&a){if(n.isDragging){S(e,this.cn(Bt));let n=(null===(t=s.pages[r])||void 0===t?void 0:t.pos)||0;n+=i.getProgress(r)*(this[_t]+this.thumbGap);let o=a.getBounds();-1*n>o.x.min&&-1*nparseFloat(getComputedStyle(t).getPropertyValue(\"--f-thumb-\"+e))||0;this.thumbGap=e(\"gap\"),this.thumbExtraGap=e(\"extra-gap\"),this[Ht]=e(\"width\")||40,this[_t]=e(\"clip-width\")||40,this[Nt]=e(\"height\")||40}build(){const t=this;if(t.state!==jt.Init)return;if(t.isDisabled())return void t.emit(\"disabled\");const e=t.instance,i=e.container,n=t.getSlides(),s=t.option(\"type\");t.type=s;const o=t.option(\"parentEl\"),a=t.cn(\"container\"),r=t.cn(\"track\");let l=null==o?void 0:o.querySelector(\".\"+a);l||(l=document.createElement(\"div\"),P(l,a),o?o.appendChild(l):i.after(l)),P(l,`is-${s}`),P(i,t.cn(\"hasThumbs\")),t.container=l,t.updateProps();let c=l.querySelector(\".\"+r);c||(c=document.createElement(\"div\"),P(c,t.cn(\"track\")),l.appendChild(c)),t.track=c;const h=u({},{track:c,infinite:!1,center:!0,fill:\"classic\"===s,dragFree:!0,slidesPerPage:1,transition:!1,preload:.25,friction:.12,Panzoom:{maxVelocity:0},Dots:!1,Navigation:!1,classes:{container:\"f-thumbs\",viewport:\"f-thumbs__viewport\",track:\"f-thumbs__track\",slide:\"f-thumbs__slide\"}},t.option(\"Carousel\")||{},{Sync:{target:e},slides:n}),d=new e.constructor(l,h);d.on(\"createSlide\",((e,i)=>{t.setProps(i.index),t.emit(\"createSlide\",i,i.el)})),d.on(\"ready\",(()=>{t.shiftModern(),t.emit(\"ready\")})),d.on(\"refresh\",(()=>{t.shiftModern()})),d.on(\"Panzoom.click\",((e,i,n)=>{t.onClick(n)})),t.carousel=d,t.state=jt.Ready}onClick(t){t.preventDefault(),t.stopPropagation();const e=this.instance,{pages:i,page:n}=e,s=t=>{if(t){const e=t.closest(\"[data-carousel-index]\");if(e)return[parseInt(e.dataset.carouselIndex||\"\",10)||0,e]}return[-1,void 0]},o=(t,e)=>{const i=document.elementFromPoint(t,e);return i?s(i):[-1,void 0]};let[a,r]=s(t.target);if(a>-1)return;const l=this[_t],c=t.clientX,h=t.clientY;let[d,u]=o(c-l,h),[p,f]=o(c+l,h);u&&f?(a=Math.abs(c-u.getBoundingClientRect().right)-1&&i[a]&&e.slideTo(a)}getShift(t){var e;const i=this,{instance:n}=i,s=i.carousel;if(!n||!s)return 0;const o=i[Ht],a=i[_t],r=i.thumbGap,l=i.thumbExtraGap;if(!(null===(e=s.slides[t])||void 0===e?void 0:e.el))return 0;const c=.5*(o-a),h=n.pages.length-1;let d=n.getProgress(0),u=n.getProgress(h),p=n.getProgress(t,!1,!0),f=0,g=c+l+r;const m=d<0&&d>-1,v=u>0&&u<1;return 0===t?(f=g*Math.abs(d),v&&1===d&&(f-=g*Math.abs(u))):t===h?(f=g*Math.abs(u)*-1,m&&-1===u&&(f+=g*Math.abs(d))):m||v?(f=-1*g,f+=g*Math.abs(d),f+=g*(1-Math.abs(u))):f=g*p,f}setProps(e){var i;const n=this;if(!n.isModern)return;const{instance:s}=n,o=n.carousel;if(s&&o){const a=null===(i=o.slides[e])||void 0===i?void 0:i.el;if(a&&a.childNodes.length){let i=t(1-Math.abs(s.getProgress(e))),o=t(n.getShift(e));a.style.setProperty(\"--progress\",i?i+\"\":\"\"),a.style.setProperty(\"--shift\",o+\"\")}}}shiftModern(){const t=this;if(!t.isModern)return;const{instance:e,track:i}=t,n=e.panzoom,s=t.carousel;if(!(e&&i&&n&&s))return;if(n.state===m.Init||n.state===m.Destroy)return;for(const i of e.slides)t.setProps(i.index);let o=(t[_t]+t.thumbGap)*(s.slides.length||0);i.style.setProperty(\"--width\",o+\"\")}cleanup(){const t=this;t.carousel&&t.carousel.destroy(),t.carousel=null,t.container&&t.container.remove(),t.container=null,t.track&&t.track.remove(),t.track=null,t.state=jt.Init,S(t.instance.container,t.cn(\"hasThumbs\"))}attach(){const t=this,e=t.instance;e.on(\"initSlide\",t.onInitSlide),e.state===B.Init?e.on(\"initSlides\",t.onInitSlides):t.onInitSlides(),e.on([\"change\",\"Panzoom.afterTransform\"],t.onChange),e.on(\"Panzoom.refresh\",t.onRefresh)}detach(){const t=this,e=t.instance;e.off(\"initSlide\",t.onInitSlide),e.off(\"initSlides\",t.onInitSlides),e.off([\"change\",\"Panzoom.afterTransform\"],t.onChange),e.off(\"Panzoom.refresh\",t.onRefresh),t.cleanup()}};Object.defineProperty($t,\"defaults\",{enumerable:!0,configurable:!0,writable:!0,value:Ft});const Wt=Object.assign(Object.assign({},Ft),{key:\"t\",showOnStart:!0,parentEl:null}),Xt=\"is-masked\",qt=\"aria-hidden\";class Yt extends _{constructor(){super(...arguments),Object.defineProperty(this,\"ref\",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,\"hidden\",{enumerable:!0,configurable:!0,writable:!0,value:!1})}get isEnabled(){const t=this.ref;return t&&!t.isDisabled()}get isHidden(){return this.hidden}onClick(t,e){e.stopPropagation()}onCreateSlide(t,e){var i,n,s;const o=(null===(s=null===(n=null===(i=this.instance)||void 0===i?void 0:i.carousel)||void 0===n?void 0:n.slides[e.index])||void 0===s?void 0:s.type)||\"\",a=e.el;if(a&&o){let t=`for-${o}`;[\"video\",\"youtube\",\"vimeo\",\"html5video\"].includes(o)&&(t+=\" for-video\"),P(a,t)}}onInit(){var t;const e=this,i=e.instance,n=i.carousel;if(e.ref||!n)return;const s=e.option(\"parentEl\")||i.footer||i.container;if(!s)return;const o=u({},e.options,{parentEl:s,classes:{container:\"f-thumbs fancybox__thumbs\"},Carousel:{Sync:{friction:i.option(\"Carousel.friction\")||0}},on:{ready:t=>{const i=t.container;i&&this.hidden&&(e.refresh(),i.style.transition=\"none\",e.hide(),i.offsetHeight,queueMicrotask((()=>{i.style.transition=\"\",e.show()})))}}});o.Carousel=o.Carousel||{},o.Carousel.on=u((null===(t=e.options.Carousel)||void 0===t?void 0:t.on)||{},{click:this.onClick,createSlide:this.onCreateSlide}),n.options.Thumbs=o,n.attachPlugins({Thumbs:$t}),e.ref=n.plugins.Thumbs,e.option(\"showOnStart\")||(e.ref.state=jt.Hidden,e.hidden=!0)}onResize(){var t;const e=null===(t=this.ref)||void 0===t?void 0:t.container;e&&(e.style.maxHeight=\"\")}onKeydown(t,e){const i=this.option(\"key\");i&&i===e&&this.toggle()}toggle(){const t=this.ref;if(t&&!t.isDisabled())return t.state===jt.Hidden?(t.state=jt.Init,void t.build()):void(this.hidden?this.show():this.hide())}show(){const t=this.ref;if(!t||t.isDisabled())return;const e=t.container;e&&(this.refresh(),e.offsetHeight,e.removeAttribute(qt),e.classList.remove(Xt),this.hidden=!1)}hide(){const t=this.ref,e=t&&t.container;e&&(this.refresh(),e.offsetHeight,e.classList.add(Xt),e.setAttribute(qt,\"true\")),this.hidden=!0}refresh(){const t=this.ref;if(!t||!t.state)return;const e=t.container,i=(null==e?void 0:e.firstChild)||null;e&&i&&i.childNodes.length&&(e.style.maxHeight=`${i.getBoundingClientRect().height}px`)}attach(){const t=this,e=t.instance;e.state===rt.Init?e.on(\"Carousel.init\",t.onInit):t.onInit(),e.on(\"resize\",t.onResize),e.on(\"keydown\",t.onKeydown)}detach(){var t;const e=this,i=e.instance;i.off(\"Carousel.init\",e.onInit),i.off(\"resize\",e.onResize),i.off(\"keydown\",e.onKeydown),null===(t=i.carousel)||void 0===t||t.detachPlugins([\"Thumbs\"]),e.ref=null}}Object.defineProperty(Yt,\"defaults\",{enumerable:!0,configurable:!0,writable:!0,value:Wt});const Vt={panLeft:{icon:'',change:{panX:-100}},panRight:{icon:'',change:{panX:100}},panUp:{icon:'',change:{panY:-100}},panDown:{icon:'',change:{panY:100}},zoomIn:{icon:'',action:\"zoomIn\"},zoomOut:{icon:'',action:\"zoomOut\"},toggle1to1:{icon:'',action:\"toggleZoom\"},toggleZoom:{icon:'',action:\"toggleZoom\"},iterateZoom:{icon:'',action:\"iterateZoom\"},rotateCCW:{icon:'',action:\"rotateCCW\"},rotateCW:{icon:'',action:\"rotateCW\"},flipX:{icon:'',action:\"flipX\"},flipY:{icon:'',action:\"flipY\"},fitX:{icon:'',action:\"fitX\"},fitY:{icon:'',action:\"fitY\"},reset:{icon:'',action:\"reset\"},toggleFS:{icon:'',action:\"toggleFS\"}};var Zt;!function(t){t[t.Init=0]=\"Init\",t[t.Ready=1]=\"Ready\",t[t.Disabled=2]=\"Disabled\"}(Zt||(Zt={}));const Ut={absolute:\"auto\",display:{left:[\"infobar\"],middle:[],right:[\"iterateZoom\",\"slideshow\",\"fullscreen\",\"thumbs\",\"close\"]},enabled:\"auto\",items:{infobar:{tpl:'
/
'},download:{tpl:'
'},prev:{tpl:''},next:{tpl:''},slideshow:{tpl:''},fullscreen:{tpl:''},thumbs:{tpl:''},close:{tpl:''}},parentEl:null},Gt={tabindex:\"-1\",width:\"24\",height:\"24\",viewBox:\"0 0 24 24\",xmlns:\"http://www.w3.org/2000/svg\"},Kt=\"has-toolbar\",Jt=\"fancybox__toolbar\";class Qt extends _{constructor(){super(...arguments),Object.defineProperty(this,\"state\",{enumerable:!0,configurable:!0,writable:!0,value:Zt.Init}),Object.defineProperty(this,\"container\",{enumerable:!0,configurable:!0,writable:!0,value:null})}onReady(t){var e;if(!t.carousel)return;let i=this.option(\"display\"),n=this.option(\"absolute\"),s=this.option(\"enabled\");if(\"auto\"===s){const t=this.instance.carousel;let e=0;if(t)for(const i of t.slides)(i.panzoom||\"image\"===i.type)&&e++;e||(s=!1)}s||(i=void 0);let o=0;const a={left:[],middle:[],right:[]};if(i)for(const t of[\"left\",\"middle\",\"right\"])for(const n of i[t]){const i=this.createEl(n);i&&(null===(e=a[t])||void 0===e||e.push(i),o++)}let r=null;if(o&&(r=this.createContainer()),r){for(const[t,e]of Object.entries(a)){const i=document.createElement(\"div\");P(i,Jt+\"__column is-\"+t);for(const t of e)i.appendChild(t);\"auto\"!==n||\"middle\"!==t||e.length||(n=!0),r.appendChild(i)}!0===n&&P(r,\"is-absolute\"),this.state=Zt.Ready,this.onRefresh()}else this.state=Zt.Disabled}onClick(t){var e,i;const n=this.instance,s=n.getSlide(),o=null==s?void 0:s.panzoom,a=t.target,r=a&&E(a)?a.dataset:null;if(!r)return;if(void 0!==r.fancyboxToggleThumbs)return t.preventDefault(),t.stopPropagation(),void(null===(e=n.plugins.Thumbs)||void 0===e||e.toggle());if(void 0!==r.fancyboxToggleFullscreen)return t.preventDefault(),t.stopPropagation(),void this.instance.toggleFullscreen();if(void 0!==r.fancyboxToggleSlideshow){t.preventDefault(),t.stopPropagation();const e=null===(i=n.carousel)||void 0===i?void 0:i.plugins.Autoplay;let s=e.isActive;return o&&\"mousemove\"===o.panMode&&!s&&o.reset(),void(s?e.stop():e.start())}const l=r.panzoomAction,c=r.panzoomChange;if((c||l)&&(t.preventDefault(),t.stopPropagation()),c){let t={};try{t=JSON.parse(c)}catch(t){}o&&o.applyChange(t)}else l&&o&&o[l]&&o[l]()}onChange(){this.onRefresh()}onRefresh(){if(this.instance.isClosing())return;const t=this.container;if(!t)return;const e=this.instance.getSlide();if(!e||e.state!==lt.Ready)return;const i=e&&!e.error&&e.panzoom;for(const e of t.querySelectorAll(\"[data-panzoom-action]\"))i?(e.removeAttribute(\"disabled\"),e.removeAttribute(\"tabindex\")):(e.setAttribute(\"disabled\",\"\"),e.setAttribute(\"tabindex\",\"-1\"));let n=i&&i.canZoomIn(),s=i&&i.canZoomOut();for(const e of t.querySelectorAll('[data-panzoom-action=\"zoomIn\"]'))n?(e.removeAttribute(\"disabled\"),e.removeAttribute(\"tabindex\")):(e.setAttribute(\"disabled\",\"\"),e.setAttribute(\"tabindex\",\"-1\"));for(const e of t.querySelectorAll('[data-panzoom-action=\"zoomOut\"]'))s?(e.removeAttribute(\"disabled\"),e.removeAttribute(\"tabindex\")):(e.setAttribute(\"disabled\",\"\"),e.setAttribute(\"tabindex\",\"-1\"));for(const e of t.querySelectorAll('[data-panzoom-action=\"toggleZoom\"],[data-panzoom-action=\"iterateZoom\"]')){s||n?(e.removeAttribute(\"disabled\"),e.removeAttribute(\"tabindex\")):(e.setAttribute(\"disabled\",\"\"),e.setAttribute(\"tabindex\",\"-1\"));const t=e.querySelector(\"g\");t&&(t.style.display=n?\"\":\"none\")}}onDone(t,e){var i;null===(i=e.panzoom)||void 0===i||i.on(\"afterTransform\",(()=>{this.instance.isCurrentSlide(e)&&this.onRefresh()})),this.instance.isCurrentSlide(e)&&this.onRefresh()}createContainer(){const t=this.instance.container;if(!t)return null;const e=this.option(\"parentEl\")||t;let i=e.querySelector(\".\"+Jt);return i||(i=document.createElement(\"div\"),P(i,Jt),e.prepend(i)),i.addEventListener(\"click\",this.onClick,{passive:!1,capture:!0}),t&&P(t,Kt),this.container=i,i}createEl(t){const e=this.instance,i=e.carousel;if(!i)return null;if(\"toggleFS\"===t)return null;if(\"fullscreen\"===t&&!ot())return null;let s=null;const o=i.slides.length||0;let a=0,r=0;for(const t of i.slides)(t.panzoom||\"image\"===t.type)&&a++,(\"image\"===t.type||t.downloadSrc)&&r++;if(o<2&&[\"infobar\",\"prev\",\"next\"].includes(t))return s;if(void 0!==Vt[t]&&!a)return null;if(\"download\"===t&&!r)return null;if(\"thumbs\"===t){const t=e.plugins.Thumbs;if(!t||!t.isEnabled)return null}if(\"slideshow\"===t){if(!i.plugins.Autoplay||o<2)return null}if(void 0!==Vt[t]){const e=Vt[t];s=document.createElement(\"button\"),s.setAttribute(\"title\",this.instance.localize(`{{${t.toUpperCase()}}}`)),P(s,\"f-button\"),e.action&&(s.dataset.panzoomAction=e.action),e.change&&(s.dataset.panzoomChange=JSON.stringify(e.change)),s.appendChild(n(this.instance.localize(e.icon)))}else{const e=(this.option(\"items\")||[])[t];e&&(s=n(this.instance.localize(e.tpl)),\"function\"==typeof e.click&&s.addEventListener(\"click\",(t=>{t.preventDefault(),t.stopPropagation(),\"function\"==typeof e.click&&e.click.call(this,this,t)})))}const l=null==s?void 0:s.querySelector(\"svg\");if(l)for(const[t,e]of Object.entries(Gt))l.getAttribute(t)||l.setAttribute(t,String(e));return s}removeContainer(){const t=this.container;t&&t.remove(),this.container=null,this.state=Zt.Disabled;const e=this.instance.container;e&&S(e,Kt)}attach(){const t=this,e=t.instance;e.on(\"Carousel.initSlides\",t.onReady),e.on(\"done\",t.onDone),e.on([\"reveal\",\"Carousel.change\"],t.onChange),t.onReady(t.instance)}detach(){const t=this,e=t.instance;e.off(\"Carousel.initSlides\",t.onReady),e.off(\"done\",t.onDone),e.off([\"reveal\",\"Carousel.change\"],t.onChange),t.removeContainer()}}Object.defineProperty(Qt,\"defaults\",{enumerable:!0,configurable:!0,writable:!0,value:Ut});const te={Hash:class extends _{onReady(){ht=!1}onChange(t){ut&&clearTimeout(ut);const{hash:e}=pt(),{hash:i}=ft(),n=t.isOpeningSlide(t.getSlide());n&&(ct=i===e?\"\":i),e&&e!==i&&(ut=setTimeout((()=>{try{if(t.state===rt.Ready){let t=\"replaceState\";n&&!dt&&(t=\"pushState\",dt=!0),window.history[t]({},document.title,window.location.pathname+window.location.search+e)}}catch(t){}}),300))}onClose(t){if(ut&&clearTimeout(ut),!ht&&dt)return dt=!1,ht=!1,void window.history.back();if(!ht)try{window.history.replaceState({},document.title,window.location.pathname+window.location.search+(ct||\"\"))}catch(t){}}attach(){const t=this.instance;t.on(\"ready\",this.onReady),t.on([\"Carousel.ready\",\"Carousel.change\"],this.onChange),t.on(\"close\",this.onClose)}detach(){const t=this.instance;t.off(\"ready\",this.onReady),t.off([\"Carousel.ready\",\"Carousel.change\"],this.onChange),t.off(\"close\",this.onClose)}static parseURL(){return ft()}static startFromUrl(){gt()}static destroy(){window.removeEventListener(\"hashchange\",vt,!1)}},Html:Lt,Images:wt,Slideshow:Dt,Thumbs:Yt,Toolbar:Qt},ee=\"with-fancybox\",ie=\"hide-scrollbar\",ne=\"--fancybox-scrollbar-compensate\",se=\"--fancybox-body-margin\",oe=\"aria-hidden\",ae=\"is-using-tab\",re=\"is-animated\",le=\"is-compact\",ce=\"is-loading\",he=\"is-opening\",de=\"has-caption\",ue=\"disabled\",pe=\"tabindex\",fe=\"download\",ge=\"href\",me=\"src\",ve=t=>\"string\"==typeof t,be=function(){var t=window.getSelection();return!!t&&\"Range\"===t.type};let ye,we=null,xe=null,Ee=0,Se=0,Pe=0,Ce=0;const Te=new Map;let Me=0;class Oe extends g{get isIdle(){return this.idle}get isCompact(){return this.option(\"compact\")}constructor(t=[],e={},i={}){super(e),Object.defineProperty(this,\"userSlides\",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,\"userPlugins\",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,\"idle\",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,\"idleTimer\",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,\"clickTimer\",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,\"pwt\",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,\"ignoreFocusChange\",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,\"startedFs\",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,\"state\",{enumerable:!0,configurable:!0,writable:!0,value:rt.Init}),Object.defineProperty(this,\"id\",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,\"container\",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,\"caption\",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,\"footer\",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,\"carousel\",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,\"lastFocus\",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,\"prevMouseMoveEvent\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),ye||(ye=ot()),this.id=e.id||++Me,Te.set(this.id,this),this.userSlides=t,this.userPlugins=i,queueMicrotask((()=>{this.init()}))}init(){if(this.state===rt.Destroy)return;this.state=rt.Init,this.attachPlugins(Object.assign(Object.assign({},Oe.Plugins),this.userPlugins)),this.emit(\"init\"),this.emit(\"attachPlugins\"),!0===this.option(\"hideScrollbar\")&&(()=>{if(!et)return;const t=document,e=t.body,i=t.documentElement;if(e.classList.contains(ie))return;let n=window.innerWidth-i.getBoundingClientRect().width;const s=parseFloat(window.getComputedStyle(e).marginRight);n<0&&(n=0),i.style.setProperty(ne,`${n}px`),s&&e.style.setProperty(se,`${s}px`),e.classList.add(ie)})(),this.initLayout(),this.scale();const t=()=>{this.initCarousel(this.userSlides),this.state=rt.Ready,this.attachEvents(),this.emit(\"ready\"),setTimeout((()=>{this.container&&this.container.setAttribute(oe,\"false\")}),16)};this.option(\"Fullscreen.autoStart\")&&ye&&!ye.isFullscreen()?ye.request().then((()=>{this.startedFs=!0,t()})).catch((()=>t())):t()}initLayout(){var t,e;const i=this.option(\"parentEl\")||document.body,s=n(this.localize(this.option(\"tpl.main\")||\"\"));if(s){if(s.setAttribute(\"id\",`fancybox-${this.id}`),s.setAttribute(\"aria-label\",this.localize(\"{{MODAL}}\")),s.classList.toggle(le,this.isCompact),P(s,this.option(\"mainClass\")||\"\"),P(s,he),this.container=s,this.footer=s.querySelector(\".fancybox__footer\"),i.appendChild(s),P(document.documentElement,ee),we&&xe||(we=document.createElement(\"span\"),P(we,\"fancybox-focus-guard\"),we.setAttribute(pe,\"0\"),we.setAttribute(oe,\"true\"),we.setAttribute(\"aria-label\",\"Focus guard\"),xe=we.cloneNode(),null===(t=s.parentElement)||void 0===t||t.insertBefore(we,s),null===(e=s.parentElement)||void 0===e||e.append(xe)),s.addEventListener(\"mousedown\",(t=>{Ee=t.pageX,Se=t.pageY,S(s,ae)})),this.option(\"closeExisting\"))for(const t of Te.values())t.id!==this.id&&t.close();else this.option(\"animated\")&&(P(s,re),setTimeout((()=>{this.isClosing()||S(s,re)}),350));this.emit(\"initLayout\")}}initCarousel(t){const i=this.container;if(!i)return;const n=i.querySelector(\".fancybox__carousel\");if(!n)return;const s=this.carousel=new Q(n,u({},{slides:t,transition:\"fade\",Panzoom:{lockAxis:this.option(\"dragToClose\")?\"xy\":\"x\",infinite:!!this.option(\"dragToClose\")&&\"y\"},Dots:!1,Navigation:{classes:{container:\"fancybox__nav\",button:\"f-button\",isNext:\"is-next\",isPrev:\"is-prev\"}},initialPage:this.option(\"startIndex\"),l10n:this.option(\"l10n\")},this.option(\"Carousel\")||{}));s.on(\"*\",((t,e,...i)=>{this.emit(`Carousel.${e}`,t,...i)})),s.on([\"ready\",\"change\"],(()=>{this.manageCaption()})),this.on(\"Carousel.removeSlide\",((t,e,i)=>{this.clearContent(i),i.state=void 0})),s.on(\"Panzoom.touchStart\",(()=>{var t,e;this.isCompact||this.endIdle(),(null===(t=document.activeElement)||void 0===t?void 0:t.closest(\".f-thumbs\"))&&(null===(e=this.container)||void 0===e||e.focus())})),s.on(\"settle\",(()=>{this.idleTimer||this.isCompact||!this.option(\"idle\")||this.setIdle(),this.option(\"autoFocus\")&&!this.isClosing&&this.checkFocus()})),this.option(\"dragToClose\")&&(s.on(\"Panzoom.afterTransform\",((t,i)=>{const n=this.getSlide();if(n&&e(n.el))return;const s=this.container;if(s){const t=Math.abs(i.current.f),e=t<1?\"\":Math.max(.5,Math.min(1,1-t/i.contentRect.fitHeight*1.5));s.style.setProperty(\"--fancybox-ts\",e?\"0s\":\"\"),s.style.setProperty(\"--fancybox-opacity\",e+\"\")}})),s.on(\"Panzoom.touchEnd\",((t,i,n)=>{var s;const o=this.getSlide();if(o&&e(o.el))return;if(i.isMobile&&document.activeElement&&-1!==[\"TEXTAREA\",\"INPUT\"].indexOf(null===(s=document.activeElement)||void 0===s?void 0:s.nodeName))return;const a=Math.abs(i.dragOffset.y);\"y\"===i.lockedAxis&&(a>=200||a>=50&&i.dragOffset.time<300)&&(n&&n.cancelable&&n.preventDefault(),this.close(n,\"f-throwOut\"+(i.current.f<0?\"Up\":\"Down\")))}))),s.on(\"change\",(t=>{var e;let i=null===(e=this.getSlide())||void 0===e?void 0:e.triggerEl;if(i){const e=new CustomEvent(\"slideTo\",{bubbles:!0,cancelable:!0,detail:t.page});i.dispatchEvent(e)}})),s.on([\"refresh\",\"change\"],(t=>{const e=this.container;if(!e)return;for(const i of e.querySelectorAll(\"[data-fancybox-current-index]\"))i.innerHTML=t.page+1;for(const i of e.querySelectorAll(\"[data-fancybox-count]\"))i.innerHTML=t.pages.length;if(!t.isInfinite){for(const i of e.querySelectorAll(\"[data-fancybox-next]\"))t.page0?(i.removeAttribute(ue),i.removeAttribute(pe)):(i.setAttribute(ue,\"\"),i.setAttribute(pe,\"-1\"))}const i=this.getSlide();if(!i)return;let n=i.downloadSrc||\"\";n||\"image\"!==i.type||i.error||!ve(i[me])||(n=i[me]);for(const t of e.querySelectorAll(\"[data-fancybox-download]\")){const e=i.downloadFilename;n?(t.removeAttribute(ue),t.removeAttribute(pe),t.setAttribute(ge,n),t.setAttribute(fe,e||n),t.setAttribute(\"target\",\"_blank\")):(t.setAttribute(ue,\"\"),t.setAttribute(pe,\"-1\"),t.removeAttribute(ge),t.removeAttribute(fe))}})),this.emit(\"initCarousel\")}attachEvents(){const t=this,e=t.container;if(!e)return;e.addEventListener(\"click\",t.onClick,{passive:!1,capture:!1}),e.addEventListener(\"wheel\",t.onWheel,{passive:!1,capture:!1}),document.addEventListener(\"keydown\",t.onKeydown,{passive:!1,capture:!0}),document.addEventListener(\"visibilitychange\",t.onVisibilityChange,!1),document.addEventListener(\"mousemove\",t.onMousemove),t.option(\"trapFocus\")&&document.addEventListener(\"focus\",t.onFocus,!0),window.addEventListener(\"resize\",t.onResize);const i=window.visualViewport;i&&(i.addEventListener(\"scroll\",t.onResize),i.addEventListener(\"resize\",t.onResize))}detachEvents(){const t=this,e=t.container;if(!e)return;document.removeEventListener(\"keydown\",t.onKeydown,{passive:!1,capture:!0}),e.removeEventListener(\"wheel\",t.onWheel,{passive:!1,capture:!1}),e.removeEventListener(\"click\",t.onClick,{passive:!1,capture:!1}),document.removeEventListener(\"mousemove\",t.onMousemove),window.removeEventListener(\"resize\",t.onResize);const i=window.visualViewport;i&&(i.removeEventListener(\"resize\",t.onResize),i.removeEventListener(\"scroll\",t.onResize)),document.removeEventListener(\"visibilitychange\",t.onVisibilityChange,!1),document.removeEventListener(\"focus\",t.onFocus,!0)}scale(){const t=this.container;if(!t)return;const e=window.visualViewport,i=Math.max(1,(null==e?void 0:e.scale)||1);let n=\"\",s=\"\",o=\"\";if(e&&i>1){let t=`${e.offsetLeft}px`,a=`${e.offsetTop}px`;n=e.width*i+\"px\",s=e.height*i+\"px\",o=`translate3d(${t}, ${a}, 0) scale(${1/i})`}t.style.transform=o,t.style.width=n,t.style.height=s}onClick(t){var e;const{container:i,isCompact:n}=this;if(!i||this.isClosing())return;!n&&this.option(\"idle\")&&this.resetIdle();const s=t.composedPath()[0];if(s.closest(\".fancybox-spinner\")||s.closest(\"[data-fancybox-close]\"))return t.preventDefault(),void this.close(t);if(s.closest(\"[data-fancybox-prev]\"))return t.preventDefault(),void this.prev();if(s.closest(\"[data-fancybox-next]\"))return t.preventDefault(),void this.next();if(\"click\"===t.type&&0===t.detail)return;if(Math.abs(t.pageX-Ee)>30||Math.abs(t.pageY-Se)>30)return;const o=document.activeElement;if(be()&&o&&i.contains(o))return;if(n&&\"image\"===(null===(e=this.getSlide())||void 0===e?void 0:e.type))return void(this.clickTimer?(clearTimeout(this.clickTimer),this.clickTimer=null):this.clickTimer=setTimeout((()=>{this.toggleIdle(),this.clickTimer=null}),350));if(this.emit(\"click\",t),t.defaultPrevented)return;let a=!1;if(s.closest(\".fancybox__content\")){if(o){if(o.closest(\"[contenteditable]\"))return;s.matches(nt)||o.blur()}if(be())return;a=this.option(\"contentClick\")}else s.closest(\".fancybox__carousel\")&&!s.matches(nt)&&(a=this.option(\"backdropClick\"));\"close\"===a?(t.preventDefault(),this.close(t)):\"next\"===a?(t.preventDefault(),this.next()):\"prev\"===a&&(t.preventDefault(),this.prev())}onWheel(t){const e=t.target;let n=this.option(\"wheel\",t);e.closest(\".fancybox__thumbs\")&&(n=\"slide\");const s=\"slide\"===n,o=[-t.deltaX||0,-t.deltaY||0,-t.detail||0].reduce((function(t,e){return Math.abs(e)>Math.abs(t)?e:t})),a=Math.max(-1,Math.min(1,o)),r=Date.now();this.pwt&&r-this.pwt<300?s&&t.preventDefault():(this.pwt=r,this.emit(\"wheel\",t,a),t.defaultPrevented||(\"close\"===n?(t.preventDefault(),this.close(t)):\"slide\"===n&&(i(e)||(t.preventDefault(),this[a>0?\"prev\":\"next\"]()))))}onScroll(){window.scrollTo(Pe,Ce)}onKeydown(t){if(!this.isTopmost())return;this.isCompact||!this.option(\"idle\")||this.isClosing()||this.resetIdle();const e=t.key,i=this.option(\"keyboard\");if(!i)return;const n=t.composedPath()[0],s=document.activeElement&&document.activeElement.classList,o=s&&s.contains(\"f-button\")||n.dataset.carouselPage||n.dataset.carouselIndex;if(\"Escape\"!==e&&!o&&E(n)){if(n.isContentEditable||-1!==[\"TEXTAREA\",\"OPTION\",\"INPUT\",\"SELECT\",\"VIDEO\"].indexOf(n.nodeName))return}if(\"Tab\"===t.key?P(this.container,ae):S(this.container,ae),t.ctrlKey||t.altKey||t.shiftKey)return;this.emit(\"keydown\",e,t);const a=i[e];a&&\"function\"==typeof this[a]&&(t.preventDefault(),this[a]())}onResize(){const t=this.container;if(!t)return;const e=this.isCompact;t.classList.toggle(le,e),this.manageCaption(this.getSlide()),this.isCompact?this.clearIdle():this.endIdle(),this.scale(),this.emit(\"resize\")}onFocus(t){this.isTopmost()&&this.checkFocus(t)}onMousemove(t){this.prevMouseMoveEvent=t,!this.isCompact&&this.option(\"idle\")&&this.resetIdle()}onVisibilityChange(){\"visible\"===document.visibilityState?this.checkFocus():this.endIdle()}manageCloseBtn(t){const e=this.optionFor(t,\"closeButton\")||!1;if(\"auto\"===e){const t=this.plugins.Toolbar;if(t&&t.state===Zt.Ready)return}if(!e)return;if(!t.contentEl||t.closeBtnEl)return;const i=this.option(\"tpl.closeButton\");if(i){const e=n(this.localize(i));t.closeBtnEl=t.contentEl.appendChild(e),t.el&&P(t.el,\"has-close-btn\")}}manageCaption(t=void 0){var e,i;const n=\"fancybox__caption\",s=this.container;if(!s)return;S(s,de);const o=this.isCompact||this.option(\"commonCaption\"),a=!o;if(this.caption&&this.stop(this.caption),a&&this.caption&&(this.caption.remove(),this.caption=null),o&&!this.caption)for(const t of(null===(e=this.carousel)||void 0===e?void 0:e.slides)||[])t.captionEl&&(t.captionEl.remove(),t.captionEl=void 0,S(t.el,de),null===(i=t.el)||void 0===i||i.removeAttribute(\"aria-labelledby\"));if(t||(t=this.getSlide()),!t||o&&!this.isCurrentSlide(t))return;const r=t.el;let l=this.optionFor(t,\"caption\",\"\");if(!l)return void(o&&this.caption&&this.animate(this.caption,\"f-fadeOut\",(()=>{this.caption&&(this.caption.innerHTML=\"\")})));let c=null;if(a){if(c=t.captionEl||null,r&&!c){const e=n+`_${this.id}_${t.index}`;c=document.createElement(\"div\"),P(c,n),c.setAttribute(\"id\",e),t.captionEl=r.appendChild(c),P(r,de),r.setAttribute(\"aria-labelledby\",e)}}else{if(c=this.caption,c||(c=s.querySelector(\".\"+n)),!c){c=document.createElement(\"div\"),c.dataset.fancyboxCaption=\"\",P(c,n);(this.footer||s).prepend(c)}P(s,de),this.caption=c}c&&(c.innerHTML=\"\",ve(l)||\"number\"==typeof l?c.innerHTML=l+\"\":l instanceof HTMLElement&&c.appendChild(l))}checkFocus(t){this.focus(t)}focus(t){var e;if(this.ignoreFocusChange)return;const i=document.activeElement||null,n=(null==t?void 0:t.target)||null,s=this.container,o=null===(e=this.carousel)||void 0===e?void 0:e.viewport;if(!s||!o)return;if(!t&&i&&s.contains(i))return;const a=this.getSlide(),r=a&&a.state===lt.Ready?a.el:null;if(!r||r.contains(i)||s===i)return;t&&t.cancelable&&t.preventDefault(),this.ignoreFocusChange=!0;const l=Array.from(s.querySelectorAll(nt));let c=[],h=null;for(let t of l){const e=!t.offsetParent||!!t.closest('[aria-hidden=\"true\"]'),i=r&&r.contains(t),n=!o.contains(t);if(t===s||(i||n)&&!e){c.push(t);const e=t.dataset.origTabindex;void 0!==e&&e&&(t.tabIndex=parseFloat(e)),t.removeAttribute(\"data-orig-tabindex\"),!t.hasAttribute(\"autoFocus\")&&h||(h=t)}else{const e=void 0===t.dataset.origTabindex?t.getAttribute(\"tabindex\")||\"\":t.dataset.origTabindex;e&&(t.dataset.origTabindex=e),t.tabIndex=-1}}let d=null;t?(!n||c.indexOf(n)<0)&&(d=h||s,c.length&&(i===xe?d=c[0]:this.lastFocus!==s&&i!==we||(d=c[c.length-1]))):d=a&&\"image\"===a.type?s:h||s,d&&st(d),this.lastFocus=document.activeElement,this.ignoreFocusChange=!1}next(){const t=this.carousel;t&&t.pages.length>1&&t.slideNext()}prev(){const t=this.carousel;t&&t.pages.length>1&&t.slidePrev()}jumpTo(...t){this.carousel&&this.carousel.slideTo(...t)}isTopmost(){var t;return(null===(t=Oe.getInstance())||void 0===t?void 0:t.id)==this.id}animate(t=null,e=\"\",i){if(!t||!e)return void(i&&i());this.stop(t);const n=s=>{s.target===t&&t.dataset.animationName&&(t.removeEventListener(\"animationend\",n),delete t.dataset.animationName,i&&i(),S(t,e))};t.dataset.animationName=e,t.addEventListener(\"animationend\",n),P(t,e)}stop(t){t&&t.dispatchEvent(new CustomEvent(\"animationend\",{bubbles:!1,cancelable:!0,currentTarget:t}))}setContent(t,e=\"\",i=!0){if(this.isClosing())return;const s=t.el;if(!s)return;let o=null;if(E(e)?o=e:(o=n(e+\"\"),E(o)||(o=document.createElement(\"div\"),o.innerHTML=e+\"\")),[\"img\",\"picture\",\"iframe\",\"video\",\"audio\"].includes(o.nodeName.toLowerCase())){const t=document.createElement(\"div\");t.appendChild(o),o=t}E(o)&&t.filter&&!t.error&&(o=o.querySelector(t.filter)),o&&E(o)?(P(o,\"fancybox__content\"),t.id&&o.setAttribute(\"id\",t.id),s.classList.add(`has-${t.error?\"error\":t.type||\"unknown\"}`),s.prepend(o),\"none\"===o.style.display&&(o.style.display=\"\"),\"none\"===getComputedStyle(o).getPropertyValue(\"display\")&&(o.style.display=t.display||this.option(\"defaultDisplay\")||\"flex\"),t.contentEl=o,i&&this.revealContent(t),this.manageCloseBtn(t),this.manageCaption(t)):this.setError(t,\"{{ELEMENT_NOT_FOUND}}\")}revealContent(t,e){const i=t.el,n=t.contentEl;i&&n&&(this.emit(\"reveal\",t),this.hideLoading(t),t.state=lt.Opening,(e=this.isOpeningSlide(t)?void 0===e?this.optionFor(t,\"showClass\"):e:\"f-fadeIn\")?this.animate(n,e,(()=>{this.done(t)})):this.done(t))}done(t){this.isClosing()||(t.state=lt.Ready,this.emit(\"done\",t),P(t.el,\"is-done\"),this.isCurrentSlide(t)&&this.option(\"autoFocus\")&&queueMicrotask((()=>{var e;null===(e=t.panzoom)||void 0===e||e.updateControls(),this.option(\"autoFocus\")&&this.focus()})),this.isOpeningSlide(t)&&(S(this.container,he),!this.isCompact&&this.option(\"idle\")&&this.setIdle()))}isCurrentSlide(t){const e=this.getSlide();return!(!t||!e)&&e.index===t.index}isOpeningSlide(t){var e,i;return null===(null===(e=this.carousel)||void 0===e?void 0:e.prevPage)&&t&&t.index===(null===(i=this.getSlide())||void 0===i?void 0:i.index)}showLoading(t){t.state=lt.Loading;const e=t.el;if(!e)return;P(e,ce),this.emit(\"loading\",t),t.spinnerEl||setTimeout((()=>{if(!this.isClosing()&&!t.spinnerEl&&t.state===lt.Loading){let i=n(x);P(i,\"fancybox-spinner\"),t.spinnerEl=i,e.prepend(i),this.animate(i,\"f-fadeIn\")}}),250)}hideLoading(t){const e=t.el;if(!e)return;const i=t.spinnerEl;this.isClosing()?null==i||i.remove():(S(e,ce),i&&this.animate(i,\"f-fadeOut\",(()=>{i.remove()})),t.state===lt.Loading&&(this.emit(\"loaded\",t),t.state=lt.Ready))}setError(t,e){if(this.isClosing())return;const i=new Event(\"error\",{bubbles:!0,cancelable:!0});if(this.emit(\"error\",i,t),i.defaultPrevented)return;t.error=e,this.hideLoading(t),this.clearContent(t);const n=document.createElement(\"div\");n.classList.add(\"fancybox-error\"),n.innerHTML=this.localize(e||\"

{{ERROR}}

\"),this.setContent(t,n)}clearContent(t){if(void 0===t.state)return;this.emit(\"clearContent\",t),t.contentEl&&(t.contentEl.remove(),t.contentEl=void 0);const e=t.el;e&&(S(e,\"has-error\"),S(e,\"has-unknown\"),S(e,`has-${t.type||\"unknown\"}`)),t.closeBtnEl&&t.closeBtnEl.remove(),t.closeBtnEl=void 0,t.captionEl&&t.captionEl.remove(),t.captionEl=void 0,t.spinnerEl&&t.spinnerEl.remove(),t.spinnerEl=void 0}getSlide(){var t;const e=this.carousel;return(null===(t=null==e?void 0:e.pages[null==e?void 0:e.page])||void 0===t?void 0:t.slides[0])||void 0}close(t,e){if(this.isClosing())return;const i=new Event(\"shouldClose\",{bubbles:!0,cancelable:!0});if(this.emit(\"shouldClose\",i,t),i.defaultPrevented)return;t&&t.cancelable&&(t.preventDefault(),t.stopPropagation());const n=()=>{this.proceedClose(t,e)};this.startedFs&&ye&&ye.isFullscreen()?Promise.resolve(ye.exit()).then((()=>n())):n()}clearIdle(){this.idleTimer&&clearTimeout(this.idleTimer),this.idleTimer=null}setIdle(t=!1){const e=()=>{this.clearIdle(),this.idle=!0,P(this.container,\"is-idle\"),this.emit(\"setIdle\")};if(this.clearIdle(),!this.isClosing())if(t)e();else{const t=this.option(\"idle\");t&&(this.idleTimer=setTimeout(e,t))}}endIdle(){this.clearIdle(),this.idle&&!this.isClosing()&&(this.idle=!1,S(this.container,\"is-idle\"),this.emit(\"endIdle\"))}resetIdle(){this.endIdle(),this.setIdle()}toggleIdle(){this.idle?this.endIdle():this.setIdle(!0)}toggleFullscreen(){ye&&(ye.isFullscreen()?ye.exit():ye.request().then((()=>{this.startedFs=!0})))}isClosing(){return[rt.Closing,rt.CustomClosing,rt.Destroy].includes(this.state)}proceedClose(t,e){var i,n;this.state=rt.Closing,this.clearIdle(),this.detachEvents();const s=this.container,o=this.carousel,a=this.getSlide(),r=a&&this.option(\"placeFocusBack\")?a.triggerEl||this.option(\"triggerEl\"):null;if(r&&(tt(r)?st(r):r.focus()),s&&(S(s,he),P(s,\"is-closing\"),s.setAttribute(oe,\"true\"),this.option(\"animated\")&&P(s,re),s.style.pointerEvents=\"none\"),o){o.clearTransitions(),null===(i=o.panzoom)||void 0===i||i.destroy(),null===(n=o.plugins.Navigation)||void 0===n||n.detach();for(const t of o.slides){t.state=lt.Closing,this.hideLoading(t);const e=t.contentEl;e&&this.stop(e);const i=null==t?void 0:t.panzoom;i&&(i.stop(),i.detachEvents(),i.detachObserver()),this.isCurrentSlide(t)||o.emit(\"removeSlide\",t)}}Pe=window.scrollX,Ce=window.scrollY,window.addEventListener(\"scroll\",this.onScroll),this.emit(\"close\",t),this.state!==rt.CustomClosing?(void 0===e&&a&&(e=this.optionFor(a,\"hideClass\")),e&&a?(this.animate(a.contentEl,e,(()=>{o&&o.emit(\"removeSlide\",a)})),setTimeout((()=>{this.destroy()}),500)):this.destroy()):setTimeout((()=>{this.destroy()}),500)}destroy(){var t;if(this.state===rt.Destroy)return;window.removeEventListener(\"scroll\",this.onScroll),this.state=rt.Destroy,null===(t=this.carousel)||void 0===t||t.destroy();const e=this.container;e&&e.remove(),Te.delete(this.id);const i=Oe.getInstance();i?i.focus():(we&&(we.remove(),we=null),xe&&(xe.remove(),xe=null),S(document.documentElement,ee),(()=>{if(!et)return;const t=document,e=t.body;e.classList.remove(ie),e.style.setProperty(se,\"\"),t.documentElement.style.setProperty(ne,\"\")})(),this.emit(\"destroy\"))}static bind(t,e,i){if(!et)return;let n,s=\"\",o={};if(void 0===t?n=document.body:ve(t)?(n=document.body,s=t,\"object\"==typeof e&&(o=e||{})):(n=t,ve(e)&&(s=e),\"object\"==typeof i&&(o=i||{})),!n||!E(n))return;s=s||\"[data-fancybox]\";const a=Oe.openers.get(n)||new Map;a.set(s,o),Oe.openers.set(n,a),1===a.size&&n.addEventListener(\"click\",Oe.fromEvent)}static unbind(t,e){let i,n=\"\";if(ve(t)?(i=document.body,n=t):(i=t,ve(e)&&(n=e)),!i)return;const s=Oe.openers.get(i);s&&n&&s.delete(n),n&&s||(Oe.openers.delete(i),i.removeEventListener(\"click\",Oe.fromEvent))}static destroy(){let t;for(;t=Oe.getInstance();)t.destroy();for(const t of Oe.openers.keys())t.removeEventListener(\"click\",Oe.fromEvent);Oe.openers=new Map}static fromEvent(t){if(t.defaultPrevented)return;if(t.button&&0!==t.button)return;if(t.ctrlKey||t.metaKey||t.shiftKey)return;let e=t.composedPath()[0];const i=e.closest(\"[data-fancybox-trigger]\");if(i){const t=i.dataset.fancyboxTrigger||\"\",n=document.querySelectorAll(`[data-fancybox=\"${t}\"]`),s=parseInt(i.dataset.fancyboxIndex||\"\",10)||0;e=n[s]||e}if(!(e&&e instanceof Element))return;let n,s,o,a;if([...Oe.openers].reverse().find((([t,i])=>!(!t.contains(e)||![...i].reverse().find((([i,r])=>{let l=e.closest(i);return!!l&&(n=t,s=i,o=l,a=r,!0)}))))),!n||!s||!o)return;a=a||{},t.preventDefault(),e=o;let r=[],l=u({},at,a);l.event=t,l.triggerEl=e,l.delegate=i;const c=l.groupAll,h=l.groupAttr,d=h&&e?e.getAttribute(`${h}`):\"\";if((!e||d||c)&&(r=[].slice.call(n.querySelectorAll(s))),e&&!c&&(r=d?r.filter((t=>t.getAttribute(`${h}`)===d)):[e]),!r.length)return;const p=Oe.getInstance();return p&&p.options.triggerEl&&r.indexOf(p.options.triggerEl)>-1?void 0:(e&&(l.startIndex=r.indexOf(e)),Oe.fromNodes(r,l))}static fromSelector(t,e,i){let n=null,s=\"\",o={};if(ve(t)?(n=document.body,s=t,\"object\"==typeof e&&(o=e||{})):t instanceof HTMLElement&&ve(e)&&(n=t,s=e,\"object\"==typeof i&&(o=i||{})),!n||!s)return!1;const a=Oe.openers.get(n);return!!a&&(o=u({},a.get(s)||{},o),!!o&&Oe.fromNodes(Array.from(n.querySelectorAll(s)),o))}static fromNodes(t,e){e=u({},at,e||{});const i=[];for(const n of t){const t=n.dataset||{},s=t[me]||n.getAttribute(ge)||n.getAttribute(\"currentSrc\")||n.getAttribute(me)||void 0;let o;const a=e.delegate;let r;a&&i.length===e.startIndex&&(o=a instanceof HTMLImageElement?a:a.querySelector(\"img:not([aria-hidden])\")),o||(o=n instanceof HTMLImageElement?n:n.querySelector(\"img:not([aria-hidden])\")),o&&(r=o.currentSrc||o[me]||void 0,!r&&o.dataset&&(r=o.dataset.lazySrc||o.dataset[me]||void 0));const l={src:s,triggerEl:n,thumbEl:o,thumbElSrc:r,thumbSrc:r};for(const e in t){let i=t[e]+\"\";i=\"false\"!==i&&(\"true\"===i||i),l[e]=i}i.push(l)}return new Oe(i,e)}static getInstance(t){if(t)return Te.get(t);return Array.from(Te.values()).reverse().find((t=>!t.isClosing()&&t))||null}static getSlide(){var t;return(null===(t=Oe.getInstance())||void 0===t?void 0:t.getSlide())||null}static show(t=[],e={}){return new Oe(t,e)}static next(){const t=Oe.getInstance();t&&t.next()}static prev(){const t=Oe.getInstance();t&&t.prev()}static close(t=!0,...e){if(t)for(const t of Te.values())t.close(...e);else{const t=Oe.getInstance();t&&t.close(...e)}}}Object.defineProperty(Oe,\"version\",{enumerable:!0,configurable:!0,writable:!0,value:\"5.0.36\"}),Object.defineProperty(Oe,\"defaults\",{enumerable:!0,configurable:!0,writable:!0,value:at}),Object.defineProperty(Oe,\"Plugins\",{enumerable:!0,configurable:!0,writable:!0,value:te}),Object.defineProperty(Oe,\"openers\",{enumerable:!0,configurable:!0,writable:!0,value:new Map});export{Q as Carousel,Oe as Fancybox,I as Panzoom};\n","import app from 'flarum/forum/app';\r\nimport { extend } from 'flarum/common/extend';\r\nimport CommentPost from 'flarum/forum/components/CommentPost';\r\nimport { Fancybox, Carousel } from '@fancyapps/ui';\r\n\r\napp.initializers.add('darkle/fancybox', () => {\r\n extend(CommentPost.prototype, 'oncreate', function () {\r\n // Initialize Fancybox for individual images\r\n this.element\r\n .querySelectorAll('.Post-body img:not(.emoji):not(.Avatar):not(.PostMeta-ip img):not([data-reaction]):not([data-link-preview]):not(.flamoji img):not(.countryFlag):not(.no-fancybox)')\r\n .forEach((node) => {\r\n const src = node.getAttribute('data-src') || node.getAttribute('src');\r\n const fancyboxEl = document.createElement('a');\r\n fancyboxEl.setAttribute('data-fancybox', 'gallery');\r\n fancyboxEl.href = src;\r\n node.parentNode.insertBefore(fancyboxEl, node);\r\n fancyboxEl.appendChild(node);\r\n });\r\n\r\n Fancybox.bind('[data-fancybox=\"gallery\"]', {\r\n Images: {\r\n zoom: false,\r\n },\r\n });\r\n\r\n // Initialize Carousel for galleries\r\n this.element\r\n .querySelectorAll('.f-carousel[data-fancybox=\"gallery\"]')\r\n .forEach((carousel) => {\r\n new Carousel(carousel, {\r\n infinite: false,\r\n });\r\n });\r\n });\r\n});\r\n"],"names":["__webpack_require__","module","getter","__esModule","d","a","exports","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","value","flarum","core","compat","_defineProperties","target","props","i","length","descriptor","configurable","writable","_createClass","Constructor","protoProps","staticProps","_assertThisInitialized","self","ReferenceError","_setPrototypeOf","p","setPrototypeOf","__proto__","_inheritsLoose","subClass","superClass","create","constructor","t","e","parseFloat","Math","round","Number","EPSILON","Element","offsetParent","scrollHeight","clientHeight","window","getComputedStyle","overflowY","n","indexOf","s","document","body","parentElement","DOMParser","parseFromString","childElementCount","createElement","firstChild","appendChild","split","filter","forEach","classList","toggle","this","nativePointer","pageX","pageY","clientX","clientY","id","Touch","identifier","time","Date","now","r","passive","l","start","move","end","element","startCallback","moveCallback","endCallback","bind","addEventListener","onPointerStart","onTouchStart","onMove","onTouchEnd","buttons","button","currentPointers","some","triggerPointerStart","onPointerEnd","onWindowBlur","Array","from","changedTouches","slice","map","findIndex","push","triggerPointerEnd","removeEventListener","startPointers","splice","clear","Event","bubbles","cancelable","stop","c","sqrt","pow","h","toString","u","entries","isArray","assign","reduce","f","Map","setOptions","getOwnPropertyNames","getPrototypeOf","startsWith","options","defaults","option","on","optionFor","isNaN","cn","classes","localize","String","replace","toLowerCase","substring","join","events","set","includes","off","emit","m","g","attachPlugins","plugins","detach","attach","detachPlugins","keys","Init","Error","Ready","Panning","Mousemove","Destroy","v","b","PANUP","PANDOWN","PANLEFT","PANRIGHT","ZOOMIN","ZOOMOUT","TOGGLEZOOM","TOGGLE1TO1","ITERATEZOOM","ROTATECCW","ROTATECW","FLIPX","FLIPY","FITX","FITY","RESET","TOGGLEFS","y","content","width","height","panMode","touch","dragMinThreshold","lockAxis","mouseMoveFactor","mouseMoveFriction","zoom","pinchToZoom","panOnlyZoomed","minScale","maxScale","friction","dragFriction","decelFriction","click","dblClick","wheel","wheelLimit","spinner","bounds","infinite","rubberband","bounce","maxVelocity","transformParent","isLoading","canZoomIn","canZoomOut","isDraggable","isDragging","inFullscreen","htmlHasFullscreen","l10n","w","x","E","S","remove","P","add","C","M","O","A","L","z","R","k","I","innerWidth","innerHeight","top","right","bottom","left","fullWidth","fullHeight","fitWidth","fitHeight","container","initContent","Plugins","onLoad","onError","isContentLoading","contains","HTMLPictureElement","insertBefore","queueMicrotask","enable","querySelector","firstElementChild","state","updateMetrics","detachEvents","getNextScale","fullScale","targetScale","coverScale","sort","attachObserver","containerRect","abs","getBoundingClientRect","resizeObserver","ResizeObserver","updateTimer","onResize","isMobile","setTimeout","clearTimeout","observe","detachObserver","disconnect","attachEvents","onClick","capture","onWheel","pointerTracker","onPointerDown","onPointerMove","onPointerUp","onMouseMove","onKeydown","clickTimer","animate","setTargetForce","velocity","isScaling","max","min","current","setTransform","setEdgeForce","isResting","rAF","requestAnimationFrame","isBouncingX","isBouncingY","checkBounds","getBounds","xDiff","yDiff","inBounds","clampTargetBounds","calculateContentDim","contentRect","angle","HTMLImageElement","maxWidth","maxHeight","getMatrix","DOMPoint","matrixTransform","contentWidth","contentHeight","ignoreBounds","scale","DOMMatrixReadOnly","transform","type","detail","dragOffset","trackingPoints","startDecelAnim","defaultPrevented","hasAttribute","preventDefault","stopPropagation","getSelection","closest","dataset","panzoomChange","panzoomAction","JSON","parse","console","warn","applyChange","dragStart","test","event","clicks","addTrackingPoint","pwt","composedPath","nodeName","removeAllRanges","lockedAxis","atan2","PI","isInfinite","originX","originY","panX","panY","cancelAnimationFrame","isTicking","visualViewport","deltaX","deltaY","zoomWithWheel","panWithMouse","toggleFS","requestTick","style","paddingTop","paddingBottom","paddingLeft","paddingRight","naturalWidth","SVGElement","baseVal","offsetWidth","scrollWidth","naturalHeight","offsetHeight","getAttribute","setProperty","T","cssText","zoomTo","updateControls","calculateBounds","querySelectorAll","display","removeAttribute","setAttribute","panTo","flipX","flipY","DOMMatrix","translate","multiply","rotate","pmme","cwd","zoomIn","zoomOut","zoomToFit","zoomToCover","zoomToFull","zoomToMax","toggleZoom","toggleMax","toggleCover","iterateZoom","rotateCCW","rotateCW","fitX","fitY","documentElement","reset","destroy","values","matchMedia","matches","navigator","userAgent","isTouchDevice","complete","B","D","F","childNodes","nodeType","Node","ELEMENT_NODE","H","HTMLElement","html","thumb","thumbSrc","thumbEl","thumbElSrc","src","el","isDom","class","customClass","index","dim","gap","pos","transition","N","slides","_","W","arguments","onRefresh","refresh","build","list","instance","pages","cleanup","isDynamic","children","append","createItem","page","previousElementSibling","nextElementSibling","hasDots","dot","isBeforePrev","isPrev","isCurrent","isNext","isAfterNext","dotTpl","dynamicFrom","maxCount","minCount","X","q","Y","V","prev","next","addBtn","toUpperCase","isRTL","innerHTML","match","charAt","nextTpl","prevTpl","Z","addAsTargetFor","nav","addAsNavFor","initialSlide","initialPage","onNavReady","onTargetReady","onNavCreateSlide","onNavClick","onNavTouch","onTargetChange","panzoom","parseInt","getPageForSlide","slideTo","Sync","markSelectedSlide","selectedIndex","prevPage","U","Navigation","Dots","G","K","J","Q","Set","slideNext","slidePrev","userOptions","userPlugins","processOptions","breakpoints","bp","init","initLayout","initSlides","setInitialPosition","initPanzoom","isLTR","isVertical","isHorizontal","viewport","slide","prepend","onScroll","track","setInitialPage","setViewportHeight","axis","viewportDim","onDecel","onBeforeTransform","onEndAnimation","onSlideTo","createPages","contentDim","processPages","getPageFromIndex","getSlideMetrics","parentNode","visibility","boxSizing","removeChild","repositionSlides","inTransition","has","createSlideEl","nextSibling","removeSlideEl","CustomEvent","dispatchEvent","transitionTo","clearTransitions","onAnimationEnd","onChange","manageSlideVisiblity","getVisibleSlides","lazyLoadSlide","markSelectedSlides","flipInfiniteTrack","lazyLoadImg","lazySrcset","lazySrc","backgroundImage","animationName","size","setPageFromPosition","getPageFromPosition","pageIndex","carouselPage","carouselNext","carouselPrev","scroll","lp","reInit","floor","slideToClosest","addSlide","prependSlide","appendSlide","removeSlide","getProgress","find","replaceWith","enabled","preload","slidesPerPage","Panzoom","center","fill","dragFree","adaptiveHeight","direction","isSelected","NEXT","PREV","GOTO","it","rt","lt","tt","scrollY","et","nt","st","focus","preventScroll","scrollTop","scrollX","scrollLeft","scrollTo","behavior","ot","fullscreenEnabled","webkitFullscreenEnabled","request","ALLOW_KEYBOARD_INPUT","exit","isFullscreen","at","animated","autoFocus","backdropClick","Carousel","closeButton","closeExisting","commonCaption","compact","contentClick","contentDblClick","defaultType","defaultDisplay","dragToClose","Fullscreen","autoStart","groupAll","groupAttr","hideClass","hideScrollbar","idle","keyboard","Escape","Delete","Backspace","PageUp","PageDown","ArrowUp","ArrowDown","ArrowRight","ArrowLeft","CLOSE","MODAL","ERROR","IMAGE_ERROR","ELEMENT_NOT_FOUND","AJAX_NOT_FOUND","AJAX_FORBIDDEN","IFRAME_ERROR","TOGGLE_ZOOM","TOGGLE_THUMBS","TOGGLE_SLIDESHOW","TOGGLE_FULLSCREEN","DOWNLOAD","parentEl","placeFocusBack","showClass","startIndex","tpl","main","trapFocus","Closing","CustomClosing","Loading","Opening","ct","ht","dt","ut","pt","Oe","getInstance","carousel","getSlide","slug","triggerEl","fancybox","hash","ft","URL","pop","gt","mt","Hash","jumpTo","close","vt","bt","readyState","yt","wt","onCreateSlide","setImage","onRemoveSlide","imageEl","onClose","contentEl","getZoomInfo","position","offsetTop","offsetLeft","overflow","opacity","process","then","isClosing","isOpeningSlide","Promise","Image","onload","onerror","hideLoading","done","revealContent","prevMouseMoveEvent","setError","clearContent","showLoading","caption","alt","draggable","srcset","fetchPriority","sizes","setContent","isCompact","ready","error","getPropertyValue","initialSize","protected","zoomOpacity","SuppressedError","xt","Et","St","Pt","Ct","Tt","Mt","URLSearchParams","search","At","Lt","onBeforeInitSlide","processType","onClearContent","xhr","abort","iframeEl","placeholderEl","onSelectSlide","playVideo","onUnselectSlide","method","func","contentWindow","postMessage","stringify","poller","pause","onDone","isCurrentSlide","resizeIframe","setAspectRatio","onMessage","data","origin","getElementsByClassName","HTMLIFrameElement","source","getElementById","loadAjaxContent","XMLHttpRequest","onreadystatechange","DONE","status","responseText","ajax","open","setRequestHeader","send","setInlineContent","cloneNode","setIframeContent","className","autoSize","getElementsByTagName","flex","play","muted","nocookie","getOwnPropertySymbols","propertyIsEnumerable","encodeURIComponent","videoId","videoFormat","poster","aspectRatio","iframeAttr","allow","scrolling","videoAutoplay","videoRatio","videoTpl","vimeo","byline","color","controls","dnt","youtube","enablejsapi","rel","fs","zt","Rt","kt","It","onReady","removeProgressBar","onSettle","resume","onVisibilityChange","visibilityState","onMouseEnter","inHover","onMouseLeave","onTimerEnd","progressBar","createProgressBar","timer","transitionDuration","pauseOnHover","progressParentEl","showProgress","timeout","Dt","onPrepare","Autoplay","endIdle","ref","activeElement","playOnStart","jt","Ft","hasThumbs","thumbTpl","Hidden","Bt","Ht","Nt","_t","$t","onInitSlide","thumbHeight","onInitSlides","isModern","thumbGap","shiftModern","updateProps","resizeModernSlide","isDisabled","getThumb","getSlides","thumbExtraGap","after","setProps","carouselIndex","elementFromPoint","getShift","Wt","showOnStart","Xt","qt","Yt","onInit","footer","hidden","hide","show","createSlide","Thumbs","Zt","Vt","panLeft","icon","change","panRight","panUp","panDown","action","toggle1to1","Disabled","Gt","tabindex","viewBox","xmlns","Kt","Jt","Qt","middle","createEl","createContainer","fancyboxToggleThumbs","fancyboxToggleFullscreen","toggleFullscreen","fancyboxToggleSlideshow","isActive","downloadSrc","isEnabled","removeContainer","absolute","items","infobar","download","slideshow","fullscreen","thumbs","ye","te","history","title","location","pathname","back","replaceState","parseURL","startFromUrl","Html","Images","Slideshow","Toolbar","ee","ie","ne","se","oe","ae","re","le","ce","he","de","ue","pe","fe","ge","ve","be","we","xe","Ee","Se","Pe","Ce","Te","Me","userSlides","marginRight","initCarousel","startedFs","manageCaption","idleTimer","setIdle","checkFocus","downloadFilename","onMousemove","onFocus","resetIdle","toggleIdle","blur","isTopmost","isContentEditable","ctrlKey","altKey","shiftKey","clearIdle","manageCloseBtn","closeBtnEl","captionEl","fancyboxCaption","ignoreFocusChange","origTabindex","tabIndex","lastFocus","currentTarget","spinnerEl","proceedClose","resolve","pointerEvents","openers","fromEvent","unbind","metaKey","fancyboxTrigger","fancyboxIndex","reverse","delegate","fromNodes","fromSelector","currentSrc","app","extend","CommentPost","node","fancyboxEl","href","Fancybox"],"sourceRoot":""} \ No newline at end of file diff --git a/js/src/forum/index.js b/js/src/forum/index.js index eaf8148..a661a42 100644 --- a/js/src/forum/index.js +++ b/js/src/forum/index.js @@ -1,11 +1,11 @@ import app from 'flarum/forum/app'; import { extend } from 'flarum/common/extend'; import CommentPost from 'flarum/forum/components/CommentPost'; -import { Fancybox } from '@fancyapps/ui'; +import { Fancybox, Carousel } from '@fancyapps/ui'; app.initializers.add('darkle/fancybox', () => { extend(CommentPost.prototype, 'oncreate', function () { - // Handle individual images + // Initialize Fancybox for individual images this.element .querySelectorAll('.Post-body img:not(.emoji):not(.Avatar):not(.PostMeta-ip img):not([data-reaction]):not([data-link-preview]):not(.flamoji img):not(.countryFlag):not(.no-fancybox)') .forEach((node) => { @@ -17,35 +17,18 @@ app.initializers.add('darkle/fancybox', () => { fancyboxEl.appendChild(node); }); - // Initialize fancybox for individual images Fancybox.bind('[data-fancybox="gallery"]', { Images: { zoom: false, }, }); - // Handle galleries (carousels) + // Initialize Carousel for galleries this.element .querySelectorAll('.f-carousel[data-fancybox="gallery"]') .forEach((carousel) => { - Fancybox.bind(carousel, { - Carousel: { - infinite: false, - }, - Slideshow: { - playOnStart: true, - timeout: 3000, - }, - Toolbar: { - display: { - left: [], - middle: [], - right: ["slideshow", "close"], - }, - }, - Images: { - zoom: false, - }, + new Carousel(carousel, { + infinite: false, }); }); });